set g_respawn_ghosts_speed 5 "the speed with which respawn ghosts float and rotate"\r
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"\r
\r
-set sv_gibhealth 75 "Minus health a dead body must have in order to get gibbed"\r
+set sv_gibhealth -75 "Amount of 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
if(e.stat_eaten)\r
return; // you can't gib outside of the stomach\r
\r
- if (e.health <= -cvar("sv_gibhealth") && e.modelindex != 0)\r
+ float gib_health;\r
+ gib_health = cvar("sv_gibhealth");\r
+ if(gib_health > 0) // someone is being stupid\r
+ gib_health = 0;\r
+ if(cvar("g_healthsize")) // smaller bodies are more likely to gib, and vice versa\r
+ gib_health *= e.scale;\r
+\r
+ if (e.health <= gib_health && e.modelindex != 0)\r
{\r
// don't use any animations as a gib\r
e.frame = 0;\r