void spawnfunc_turret_tesla() { SELFPARAM(); if(!turret_initialize(TUR_TESLA.m_id)) remove(self); }
- METHOD(TeslaCoil, tr_attack, bool(TeslaCoil thistur))
+ METHOD(TeslaCoil, tr_attack, void(TeslaCoil thistur))
{
entity e, t;
float d, r, i;
t = toast(e,r,d);
remove(e);
- if (t == world) return true;
+ if (t == world) return;
self.target_validate_flags = TFL_TARGETSELECT_PLAYERS | TFL_TARGETSELECT_MISSILES | TFL_TARGETSELECT_TEAMCHECK;
e.railgunhit = 0;
e = e.chain;
}
-
- return true;
}
METHOD(TeslaCoil, tr_think, bool(TeslaCoil thistur))
{