]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Cvar the amount of health dead bodies must take in order to get gibbed.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 Mar 2011 23:17:21 +0000 (01:17 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 Mar 2011 23:17:21 +0000 (01:17 +0200)
data/defaultVoretournament.cfg
data/qcsrc/server/cl_player.qc

index 158558ca98e043951e1ac23680b90e3757911ebd..af89103c43381f25e69110466b4558c3073af51c 100644 (file)
@@ -272,6 +272,8 @@ set g_telefrags 1
 set g_telefrags_avoid 0\r
 set g_teleport_maxspeed 0 "maximum speed that a player can keep when going through a teleporter (if a misc_teleporter_dest also has a cap the smallest one of these will be used), 0 = don't limit, -1 = keep no speed"\r
 \r
+set sv_gibhealth 75 "Minus health a dead body must have in order to get gibbed"\r
+\r
 // fragmessage: This allows extra information to be displayed with the frag centerprints. \r
 set sv_fragmessage_information_ping 0 "Enable ping display information, 0 = Never display; 1 = Always display (If the player is a bot, it will say bot instead of the ping.)"\r
 set sv_fragmessage_information_handicap 1 "Enable handicap display information, 0 = Never display; 1 = Only when the player has handicap on; 2 = Always display (Displays Off if off)"\r
index 6aaffd28bfdfa9b2f207f4a717dded1ed317e1b3..36542cf7a760f29c6e0363399b7386803bf3008a 100644 (file)
@@ -402,7 +402,7 @@ void PlayerCorpseDamage (entity inflictor, entity attacker, float damage, float
        self.dmg_take = self.dmg_take + take;//max(take - 10, 0);\r
        self.dmg_inflictor = inflictor;\r
 \r
-       if (self.health <= -75 && self.modelindex != 0)\r
+       if (self.health <= -cvar("sv_gibhealth") && self.modelindex != 0)\r
        {\r
                // don't use any animations as a gib\r
                self.frame = 0;\r