this.idle_aim = this.tur_head.angles + angleofs(this.tur_head, targ);
}
+void turret_reset(entity this)
+{
+ turret_respawn(this);
+}
+
bool turret_initialize(entity this, Turret tur)
{
if(!autocvar_g_turrets)
setsize(this, tur.m_mins, tur.m_maxs);
this.m_id = tur.m_id;
- this.classname = "turret_main";
this.active = ACTIVE_ACTIVE;
this.effects = EF_NODRAW;
this.netname = tur.turret_name;
this.event_heal = turret_heal;
this.use = turret_use;
this.bot_attack = true;
- this.nextthink = time + 1;
- this.nextthink += turret_count * sys_frametime;
+ this.nextthink = time + 1 + turret_count * sys_frametime;
+ this.reset = turret_reset;
this.tur_head = new(turret_head);
_setmodel(this.tur_head, tur.head_model);