set sv_damageeffect_tick 0.05 "how often the damage effect is updated (particles per second), low values might cause lag"
set sv_damageeffect_lifetime 0.1 "how much a damage effect lasts, multiplied by damage amount"
set cl_damageeffect 1 "enable weapon damage effects on players"
+set cl_damageeffect_gib_probability 0.15 "probability of effect showing on gibs each tick (used to reduce the effect on gibs)"
set g_respawn_ghosts 1 "if 1 dead bodies become ghosts and float away when the player respawns"
set g_respawn_ghosts_speed 5 "the speed with which respawn ghosts float and rotate"
float autocvar_cl_hitsound;
float autocvar_cl_hitsound_antispam_time;
float autocvar_cl_damageeffect;
+float autocvar_cl_damageeffect_gib_probability;
for(head = world; (head = find(head, classname, "gib")); )
{
if(head.team == entnumber)
+ if(random() < autocvar_cl_damageeffect_gib_probability)
{
pointparticles(particleeffectnum(effectnum), head.origin, '0 0 0', 1);
foundgib = TRUE;