//========================
//    Cvars in forceMod
//========================

All forceMod cvars start with f_ so you can do cvarlist f_ to see them all.
All JediMod 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 run "jk2104.cfg" to set the game to be like version 1.04 (disables dualsabers and features of JediMod and forceMod that
 change the gameplay but leaves hilts and other graphical enahnacements on)

//===================================
  forceMod beta Version 1.0 cvars
//===================================

f_forcemod
-"0" No changes
-"1" Adds 4th level to all force powers

f_forcerank
-"0" No changes
-"1" Allows five new force rankings

f_lightdarkmod
-"0" No changes
-"1" Both Light and Dark Side force powers are available (Selectable from menu)

f_protectmod
-"0" No changes
-"1" Only drains force when hit

f_absorbmod
-"0" No changes
-"1" Force cost reverted to v1.02 amounts

f_mindtrickmod
-"0" No changes
-"1" ForceSeeing only reveals Jedi of equal or lesser rank

f_ragemod
-"0" No changes
-"1" Speed and damage adjusted as outlined in forcemod_readMe.txt

f_jumpmod
-"0" No changes
-"1" Level 3 & 4 Jumps cost less, falling damage reduced
-"2" Level 3 & 4 Jumps cost less only
-"3" Level 3 & 4 Jumps falling damage reduced only

f_lightningmod
-"0" No changes
-"1" Lightning radius reduced slightly

f_speedmod
-"0" No changes
-"1" Short, powerful burst of speed instead of extended jogging

f_scalespeed
-"0" No changes
-"5.0" Scale speed of models based on size (bigger == faster)
	Note - Making this number smaller will increase the ratio of speed to size, making it bigger will lessen the ratio

f_invertscalespeed
-"0" No changes
-"5.0" Scale speed of models based on size (smaller == faster)
	Note - Making this number smaller will increase the ratio of speed to size, making it bigger will lessen the ratio

f_changespeed
-"0" No changes
-"1.0" Speed for all players on server multiplied by this number 

f_speedbackwards
- "0.65" Value for % of normal running speed of players running in backwards (normally 0.75)

f_scaleDefense
-"0" No changes
-"1.0" Bigger characters take proportionally less damage, smaller get hurt more
	Note - Making this number smaller will increase the ratio of damage reduction to size, making it bigger will lessen the ratio

f_invertScaleDefense
-"0" No changes
-"1.0" Smaller characters take proportionally less damage, bigger get hurt more
	Note - Making this number smaller will increase the ratio of damage reduction to size, making it bigger will lessen the ratio

f_scaleDamage
-"0" No changes
-"1.0" Scale saber damage based only on length of saber (longer sabers == more damage, shorter == less)
	Note: different from Dest's mod_scaleDamage in that the target's size has no bearing,
		Making this number smaller will increase the ratio of damage amplification to size, making it bigger will lessen the ratio

f_invertScaleDamage
-"0" No changes
-"1.0" Scale saber damage inversely (shorter sabers == more damage, longer == less)
	Note - Making this number smaller will increase the ratio of damage reduction to size, making it bigger will lessen the ratio

f_jetpackmod
-"0" Jetpack not available
-"1" Only a True Non-Jedi Fett model may use the jetpack
-"2" Any Fett model (Jedi or Non-Jedi) may use it
-"3" Any True Non-Jedi may use it (Mercs)
-"4" Non-Lightsaber carriers can use the jetpack (i.e. if SaberAttack level is 0)
-"5" Everybody can use the jetpack

f_jetcarryflag
-"0" Flag carrier's jetpack is disabled
-"1" Can carry the flag with the jetpack on

f_jetpackfuel
-"0" Fly for free
-"1" Force power is consumed as gas
-"2" Force power is consumed as gas only when thrusting

f_jetpackflighttime
-"200" Flight time unit: milliseconds to determine how often fuel is consumed
	(i.e. 1000 means it will consume the fuel values once per second)

f_jetpackfuelcost
-"1" Fuel cost per flight time unit while airborne with jetpack

f_jetpackthrustfuelcost
-"0" Fuel cost per flight time unit when thrusting with jetpack	

f_powerbots
-"0" No changes
-"1" Bot force powers will all be upgraded by one Level (Unless Level 0)
-"2" Bots will be given unlimited force points on any force rank (Not all powers, just the ability to be a Jedi Master on a Padawan server)
-"3" Bots given all Force Powers of highest level on their force side (Light or Dark) 
-"4" Bots given all Force Powers of highest level on both Light and Dark sides if f_lightdarkmod is on

f_skillStances
-"0" No changes - JediMod defaults
-"1" Level 1 SaberAttack allows:
	Single Blade - Light Style
	Double & Dual Blades - Tavion One-Handed Style
    Level 2 SaberAttack adds:
	Single Blade - Medium Style
    Level 3 SaberAttack adds:
	Single Blade - Strong Style
	 Double & Dual Blades - Desann One-Handed Style
    Level 4 SaberAttack allows:
	All stances with any type of lightsaber	
-"2" Level 1 SaberAttack allows:
	Single Blade - Medium Style
    Level 2 SaberAttack adds:
	Single Blade - Light Style
    Level 3 SaberAttack adds:
	Single Blade - Strong Style
	Double & Dual Blades - Styles 4-5
    Level 4 SaberAttack allows:
	All stances with any type of lightsaber		

f_level4Stances
-"0" Only Purple and Green (Orange) stances available to Level 4 SaberAttackers
-"1" All stances available to dualblade/lightsaber users on Level 4 SaberAttack

f_nerfgrip4
-"0" Level 4 forceGrip can only be broken by level 4 push/pull 
-"1" Level 4 forceGrip can be broken by level 3 push/pull

f_kicklevel
-"2" Minimum forceJump level that kicks can be used on.	(Level 2 is default)

f_wallflipspeed
-"1" No changes
-"1.5" Speed multiplier for when player pushes off wall when flipping (1.5 is a good number)

f_forceregenerate
-"1" Value at which force pool regenerates. (default is one)

f_rocketjumps
-"0" Explosion splash damage is the same for both attacker and defender
-"1" Explosion splash damage is reduced %50 for attacker (Standard in game)

f_reducefalldamage
-"0.00" % by which fall damage reduced/increased universally.		

f_nofalldamage
-"0" No changes
-"1" No fall damage.

f_nerfbackblock
-"0" No changes
-"1" No more blocking from behind

f_saberidledamage
-"0" No changes (default setting of 5 is used)
-"5" Value of saber idle damage 

f_hideteamicon
-"0" No changes
-"1" Team icons over player's heads are not shown

f_hideshield
-"0" Shield doesn't flash when hit.
-"1" No changes

f_hidegriphand
-"0" Red ForceGrip hand not rendered
-"1" No changes	


- End of forceMod cvars

- JediMod 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.
