]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Cvar the amount of health dead bodies must take in order to get gibbed. I thought...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 Mar 2011 22:53:44 +0000 (00:53 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 20 Mar 2011 22:53:44 +0000 (00:53 +0200)
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_player.qc

index a500cec9e1de073eb1ee156411b092c5ff1e0b69..c31a27b008272fe0e89a49d595b1ca61e3b4ce44 100644 (file)
@@ -354,6 +354,8 @@ set g_respawn_ghosts 1 "if 1 dead bodies become ghosts and float away when the p
 set g_respawn_ghosts_speed 5 "the speed with which respawn ghosts float and rotate"
 set g_respawn_ghosts_maxtime 6 "maximum amount of time a respawn ghost can last, minimum time is half this value. 0 disables and ghosts fade when the body would"
 
+set sv_gibhealth 100 "Minus health a dead body must have in order to get gibbed"
+
 // fragmessage: This allows extra information to be displayed with the frag centerprints. 
 set sv_fragmessage_information_ping 1 "Enable ping display information, 0 = Never display; 1 = Always display (If the player is a bot, it will say bot instead of the ping.)"
 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)"
index c78460c17391b4cebfdd0cce5f6b8e55a57d5db3..ddef2e8e8fbef4078265506a39889e37b440fee3 100644 (file)
@@ -1209,6 +1209,7 @@ float autocvar_sv_warsowbunny_backtosideratio;
 float autocvar_sv_warsowbunny_topspeed;
 float autocvar_sv_warsowbunny_turnaccel;
 string autocvar_sv_weaponstats_file;
+float autocvar_sv_gibhealth;
 float autocvar_sys_ticrate;
 float autocvar_teamplay_lockonrestart;
 float autocvar_teamplay_mode;
index f1d290a9b0ae40bccc3b03730e34820d14327739..035114b25f23a9e62b34885927e9269c6330e003 100644 (file)
@@ -358,7 +358,7 @@ void PlayerCorpseDamage (entity inflictor, entity attacker, float damage, float
        self.dmg_take = self.dmg_take + take;//max(take - 10, 0);
        self.dmg_inflictor = inflictor;
 
-       if (self.health <= -150 && self.modelindex != 0)
+       if (self.health <= -autocvar_sv_gibhealth && self.modelindex != 0)
        {
                // don't use any animations as a gib
                self.frame = 0;