- this.nextthink = time +
- (
- // bound the length, inflictor may be in a galaxy far far away (warpzones)
- min(
- WEP_CVAR(electro, combo_radius),
- vlen(this.origin - inflictor.origin)
- )
- /
- // delay combo chains, looks cooler
- WEP_CVAR(electro, combo_speed)
- );
+ // delay combo chains, looks cooler
+ // bound the length, inflictor may be in a galaxy far far away (warpzones)
+ float len = min(WEP_CVAR(electro, combo_radius), vlen(this.origin - inflictor.origin));
+ float delay = len / WEP_CVAR(electro, combo_speed);
+ this.nextthink = time + delay;