set cl_damageeffect 0.05 "enable weapon damage effects on players, value specifies how often to show the effect"
set cl_damageeffect_limit 3 "how many damages to show on a player at once"
-set cl_damageeffect_lifetime 0.04 "how much a damage effect lasts, multiplied by damage amount"
-set cl_damageeffect_lifetime_max 5 "maximum amount of lifetime a damage effect may have at a time"
+set cl_damageeffect_lifetime 0.1 "how much a damage effect lasts, multiplied by damage amount"
+set cl_damageeffect_lifetime_min 2 "minimum amount of life a damage effect may have"
+set cl_damageeffect_lifetime_max 6 "maximum amount of life a damage effect may have"
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_damageeffect;
float autocvar_cl_damageeffect_limit;
float autocvar_cl_damageeffect_lifetime;
+float autocvar_cl_damageeffect_lifetime_min;
float autocvar_cl_damageeffect_lifetime_max;
float autocvar_cl_playerdetailreduction;
float autocvar_cl_loddistance1 = 1024;
return;
specstr = species_prefix(specnum);
- life = bound(0, dmg * autocvar_cl_damageeffect_lifetime, autocvar_cl_damageeffect_lifetime_max);
+ life = bound(autocvar_cl_damageeffect_lifetime_min, dmg * autocvar_cl_damageeffect_lifetime, autocvar_cl_damageeffect_lifetime_max);
e = get_weaponinfo(type);
effectnum = strcat("weapondamage_", e.netname);