+#include "impulse.qh"
// targeted (directional) mode
void trigger_impulse_touch1(entity this, entity toucher)
{
if(!targ)
{
objerror(this, "trigger_force without a (valid) .target!\n");
- remove(this);
+ delete(this);
return;
}
if(!pushdeltatime) return;
// div0: ticrate independent, 1 = identity (not 20)
- toucher.velocity = toucher.velocity * pow(this.strength, pushdeltatime);
+ toucher.velocity = toucher.velocity * (this.strength ** pushdeltatime);
#ifdef SVQC
UpdateCSQCProjectile(toucher);
else
{
if(!this.strength) this.strength = 0.9;
- this.strength = pow(this.strength, autocvar_g_triggerimpulse_accel_power) * autocvar_g_triggerimpulse_accel_multiplier;
+ this.strength = (this.strength ** autocvar_g_triggerimpulse_accel_power) * autocvar_g_triggerimpulse_accel_multiplier;
settouch(this, trigger_impulse_touch2);
}
}