//==================
//     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.


//==================
//    Cvars in JediMod++
//==================
all added cvars star with mod_ so you can do a cvarlist mod_ to see them all.
mod_nerfbs;	if this is 0 then backstab damage is like in 1.03 if it is 1 then it is mid way between 1.03 and 1.04
		if it is 2 then it is like in 1.04 if it is 4 then it is set to the backstab damage variables

mod_blockThrow;	if this is 1 then saber throws can be blocked like in single player

mod_scaleModels;	if this is 1 then models will be scaled by the scale factor set in tckmodel.cfg

mod_scaleDamage	if this is 1 then damage will be scaled based on the attacker's saber size and the defender's 
		model size

mod_scaleKicks	if this is 1 then kick damage and knock back will be scaled based on the attackers model size
		and the defenders model size.

mod_dualbsScale	scales dualsaber style's backstab damage by this factor.  1 is default.

mod_gib		as far as I can tell if this is 1 then people sometimes disintegrate when you kill them

mod_blockScale	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 
		1.0 is normal size scaleModels might have to be on for this to work

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

mod_funMode;	turn funKick and funSize on and off

mod_nerfspin;	if this is 1 then you cant spin during backstabs

mod_debugcheats;	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

mod_dualblade;	allow players to use the "thedestroyer" cheat without cheats on If it is 2 then players can have
		two dualbladed sabers at once (providing dualsaber is on)

mod_dualsaber;	Allows players to use two sabers at once.  Dualsabers are activated using the command /twosaber
		match must be restarted for this variable to take affect

mod_emotes;	allows emotes to be used some emotes are /nod /shake /kiss /sit /taunt

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;	are tagbacks allowed for kick tag

mod_funWallRun;	does nothing but you need funMode on to use it

mod_infotime;	does nothing

mod_multiduels;	if set to 1 then multiple duels can happen at once

mod_cangod;	if set to 0 then players cant 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;	if 1 then tck colors are enabled

mod_scaleSabers;	if 1 then sabers will be scaled

ban and clientban:  there is also a ban and clientban command that work the same was as kick and clientkick except it just adds
the person's ip to the ban list.  You	then have to kick them.

g_botdoublesaber "1" or "0"
if 1, when you add a bot, he will automatically have a double bladed saber.

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

g_enablesblock "1" or "0" 
if 1 the saberlockings can happen in ffa, team ffa, and all the gametypes...

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

//===============
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 n°1 of your saber.

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

g_allowForceDuel "1" or "0"
Allows Force Powers other than Mind Trick during Duel

g_allowThrowDuel "1" or "0"
Allows Throwing Saber during Duel

mod_skillMode "0" or "1"
if 1 then 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

mod_allStances "0" or "1"
if 1 then all stances can be used with dual sabers and the dual bladed saber

mod_nerfDualBlade "0" or "1"
if 1 then players are slowed down when attacking with the double bladed saber.
This is done to make the game more balanced.

mod_hilts "0" or "1"
if 1 then custom hilts may be used.

New Commands:
/hilt "hiltmodelname"
/hilt2 "hiltmodelname"
you can change the hilt for your right hand in the player setup menu
but to change the hilt in the left hand you have to do /hilt2 hiltmodelname

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.






