//==================
// Cvars in phatMOD 1.0 & JediMod 1.2
//==================

all added cvars start with mod_ so you can do cvarlist mod_ to see them all.

Note:  The first number listed under a variable is the default value for that variable.

-You can do exec "jk2104.cfg" to set the game to be like version 1.04 (disables dualsabers and features of JediMod that
 change the gameplay but leaves hilts and other graphical enahnacements on)

-If your saber color reverts back to a default blueish purpleish color everytime the game restarts just delete the 
 file autoexec.cfg in your JediMod directory

-phatMod v 1.0 cvars

mod_jetpack
-"0" Disable
-"1" You can use the jetpack by binding it to a key


-Version 1.2 cvars

mod_infotime
-"500" This is a wait period in milliseconds to protect from people changeing models/extended saber/dualsaber rapidly
-increase for a longer wait period.  Decrease for a shorter waitperiod.  If 0 then there is no wait period.

mod_cheatprotection
-"50" You can not change models if you are this close to another person. 50 is about 4 feet in the game.  
-Increase to expand the no model change radius.  Decrease to allow players to change models when they are close

mod_boxing
-"0" Disable
-"1" You can use the /punch emote and punch people

mod_duelshields
-"0" Get 0 shields after a duel
-Any other number, Get that much shields after a duel (I like 25 since thats what players start with)

mod_pushall
-"1" Items can be pushed like in single player
-"0" Disable

mod_clientscale
-"0" Disable 
-"1" Clients can type /size somenumber to change their size. ex. /size 0.5 makes you the size 0.5

mod_maxsize
-"1.5" Default max size, if a player does /size 2.3 their size will only change to 1.5 because of the maximum
-Any other number changes the maximum size a player can become through the /size command

mod_minsize
-"0.6" Default min size, if a player does /size 0.2 their size will only change to 0.6 because of the minimum
-Any other number changes the minimum size a player can become through the /size command

mod_grapple
-"1" Grappleing hook is useable only by mercs and only in Jedi Vs. Merc mode. (+use to activate hook)
-"2" Grappleing hook is useable by all players in all game modes. (+use to activate hook, default for +use is the e key)
-"0" Grappleing hook is not useable.

/mod_timescale
-"1.0" This isn't really a variable, its actually a command that changes the timescale variable so that you dont have to
           have cheats activated to change the timescale. 
-Any other number, change the timescale.  0.4 is good for slow mo fights.

-End v1.2 cvars
-Version 1.1 cvars:

mod_skillMode
-"1" damage will be increased or decreased depending on which region of the body was hit.
       a hit to the head does 2x damage while a hit to the legs does 0.9x damage
-"0" Disable

mod_allStances
-"0" Disable
-"1" All stances can be used with dual sabers and the dual bladed saber

mod_nerfDualBlade
"1" Players are slowed down when attacking with the double bladed saber.
      This is done to make the game more balanced.
"0" Disable

mod_hilts 
-"1" Custom hilts may be used.
-"0" Disable

-End v1.1 cvars
-Version 1.0 cvars

mod_nerfbs
-"2" Backstab damage is like in 1.04
-"1" Backstab damage is mid way between 1.03 and 1.04
-"0" Backstab damage is like in 1.03
-"3" Backstab damage is set to the backstab damage variables (mod_lbsmin etc)

mod_blockThrow
-"1" Saber throws can be blocked like in single player
-"0" Disable

mod_scaleModels	
-"1" Models will be scaled by the scale factor set in tckmodel.cfg
-"0" Disable

mod_scaleDamage
-"1" Damage will be scaled based on the attacker's saber size and the defender's model size
-"0" Disable

mod_scaleKicks	
-"1" Kick damage and knock back will be scaled based on the attackers model size and the defenders model size.
-"0" Disable

mod_dualbsScale
-"1.0" Scales dualsaber style's backstab damage by this factor.
-Any other number changes the scale factor.

mod_gib
-"0" Disable
-"1" As far as I can tell if this is 1 then people sometimes disintegrate when you kill them

mod_blockScale
"1.0" The amount of blocking is scaled by this factor.
-Higher numbers mean less blocking.  0 means no auto blocking

mod_funSize
-if mod_funMode is 1 this sets all players to the same size eg. mod_funSize 0.2 for small models 

mod_funKick
-if mod_funMode is 1 then this scales the kick dammage and knock back factor 1.0 is normal

mod_funMode
-"0" Disable
-"1" funKick and funSize will now work

mod_nerfspin
-"1" Disables spinning during backstabs
-"0" Enables spinning

mod_nerflunge
-"1" Disables lungeing while in the air like in 1.04
-"0" Enables air lunge like in 1.04

mod_debugcheats
-"1" Can use cheats like /g2animent to spawn stormtroopers.  First you must use the cheataccess
	command with your client number to give yourself access to these cheats.  So if you were the
	server in non dedicated mode you would do /cheatacces 0 in console to give client 0 (you)
	access to the cheats.  You could then do /g2animent to spawn a stormtrooper  There is also
	/g2platoon to spawn a group of stormtroopers
-"0" Disable (no real reason to have it disabled since you need cheataccess to do anything with it

mod_dualblade
-"1" Allow players to use the "thedestroyer" cheat without cheats on
-"2" Players can have two dualbladed sabers at once (providing dualsaber is on)
-"0" No dual bladed sabers.

mod_dualsaber
-"1" Allows players to use two sabers at once.  Dualsabers are activated using the command /twosaber
-"0" Disable

mod_emotes
-"1" Emotes may be used
-"2" The sleep emote may also be used (makes you look sortof dead though)
-"0" No emotes

mod_tag
-kicktag, once this is set to 1 if someone is kicked then he becomes "it" and he has to tag someone
 else by kicking them.  Set this to 0 and then kick one last person and the game will end and show
 who was tagged the most and the least

mod_tagBacks
-"0" You can't tag the person who taged you
-"1" You can tag someone right after they tag you

mod_funWallRun
-"0" Does even less
-"1" Does nothing but you need funMode on to use it

mod_multiduels
-"1" Multiple duels can happen at once
-"0" Disable

mod_cangod
-"1" Players are allowed to use god mode when cheats are enabled
-"0" Players can't use god mode when cheats are enabled

mod_lbsmin;	the minimum dammage that a light style backstab does

mod_lbsmax;	the maximum dammage

mod_mbsmin;	the minimum dammage that a medium style backstab does

mod_mbsmax;	the maximum dammage

mod_hbsmin;	the minimum dammage that a heavy style backstab does

mod_hbsmax;	the maximum dammage

mod_tckcolors
-"1" Tchouky's rgb saber colors are enabled
-"0" Disable

mod_scaleSabers
-"1" Sabers are scaled in the same way that models are
-"0" Sabers are not scaled

g_enableextended 
-"0" Disable
-"1" Clients will be able to have an extended saber. (you can bind your key to tck_dualphase or goto the controls 
      setup screen) 

bot_honorableduelacceptance 
-"1" Cheat protection have been removed. if you have you saber off and chalenge a bot in a saber duel he will accept.
-"0" Disable

//===============
Clientside variables

tck_saber "1" or "0"
if 0 then the sabers will not have custom colors.

tck_dualcolor "1" or "0"
if 1 then you will have 2 colors one for the normal saber and one for when it s extended.
the second color is also used for the second blade on a double saber

tck_red1	1->255
tck_green1	1->255
tck_blue1	1->255
these 3 cvar will define the color n1 of your saber.

tck_red2	1->255
tck_green2	1->255
tck_blue2	1->255
these 3 cvar will define the color n2 of your saber.

cmod_multipletaunts 
-"1" You will hear multiple taunt sounds
-"0" Disable

cmod_teamrgb
-"0" Disable
-"1" You will see rgb colored sabers in team games.

//============
//Commands====
//============

ban <playername> -bans the player with this name
clientban <clientNumber> -bans the player with this client number.  Use "status" to find their client number

how to use the /g2animent and /g2platoon commands
g2animent takes 7 arguments: type, alignment, weapon, model, sounds, health, and owner number.

here is an example that spawns an ent that looks and sounds like a rodian, has 100 health, is friendly, and has a blaster
/g2animent 3 2 4 models/players/rodian/model.glm sound/chars/rodian/misc 100 0

type: 
there are 4 types of animents.  0 spawns a storm trooper, 1 spawns a rodian, 2 spawns a jan, and 3 spawns a custom one.
the rest of the arguments only matter if this is 3, otherwise it sets the model and gun and stuff on its own.

alignment:
1 = bad
2 = good
8 = creates one that stands still and only attacks bots unless attacked
9 = creates one that attacks everything except its owner (owner set by owner num, the last argument)

weapon:
0 = none
1 = stun batton
2 = saber (gives them a saber but they cant use it at all)
3 = bryar pistol
... it keeps going in order 13 is the last one
13 = det pack (they dont know how to use it)

model:
the path of the player model
dont put in a bad model or it gets mad.

sounds:
path to the sounds for that model

health:
the health of the animent

owner:
the owner of the animent.  If alignment is 9 then it wont attack its owner.


/g2platoon
this command is just like /g2animent except it doesn't have a health or owner argument.
it spawns a group of ents.


//==================
//     Tchouky      
//==================

All of the model scaling code and saber color code was done by Tchouky.
I just fixed some stuff and added a few of my own modifications like being 
able to sidekick off walls when your not on the ground.  The saber scaling 
code also would have been done by Tchouky if he hadn't left for a month
but he did so I did it instead.
