set cl_damageeffect 1 "enable weapon damage effects. 1 enables the effect on skeletal models, 2 on all objects"
set cl_damageeffect_ticrate 0.1 "particles spawn rate"
-set cl_damageeffect_limit 5 "how many damages to allow on a player at once (objects are limited to one)"
+set cl_damageeffect_bones 5 "how many damages to allow on a rigged mesh at once (non-skeletal objects are limited to one)"
set cl_damageeffect_distribute 1 "divide particle intensity if multiple damages are present on a player"
set cl_damageeffect_lifetime 0.1 "how much a damage effect lasts, multiplied by damage amount"
set cl_damageeffect_lifetime_min 3 "minimum lifetime a damage effect may have"
string autocvar__togglezoom;
float autocvar_cl_damageeffect;
float autocvar_cl_damageeffect_ticrate;
-float autocvar_cl_damageeffect_limit;
+float autocvar_cl_damageeffect_bones;
float autocvar_cl_damageeffect_distribute;
float autocvar_cl_damageeffect_lifetime;
float autocvar_cl_damageeffect_lifetime_min;
// return if we reached our damage effect limit or damages are disabled
if(skeletal)
{
- if(autocvar_cl_damageeffect < 1 || self.total_damages >= autocvar_cl_damageeffect_limit)
+ if(autocvar_cl_damageeffect < 1 || self.total_damages >= autocvar_cl_damageeffect_bones)
return; // allow multiple damages on skeletal models
}
else