- setattachment(self.tur_head, self, "tag_head");
-
- self.tur_head.classname = "turret_head";
- self.tur_head.owner = self;
- self.tur_head.move_movetype = MOVETYPE_NOCLIP;
- self.move_movetype = MOVETYPE_NOCLIP;
- self.tur_head.angles = self.angles;
- self.health = 255;
- self.solid = SOLID_BBOX;
- self.tur_head.solid = SOLID_NOT;
- self.movetype = MOVETYPE_NOCLIP;
- self.tur_head.movetype = MOVETYPE_NOCLIP;
- self.draw = turret_draw;
- self.entremove = turret_remove;
- self.drawmask = MASK_NORMAL;
- self.tur_head.drawmask = MASK_NORMAL;
- self.anim_start_time = 0;
- self.draw2d = turret_draw2d;
- self.maxdistance = autocvar_g_waypointsprite_turrets_maxdist;
- self.teamradar_color = '1 0 0';
- self.alpha = 1;
-
- tur.tr_setup(tur, self);
+ setattachment(this.tur_head, this, "tag_head");
+
+ this.tur_head.classname = "turret_head";
+ this.tur_head.owner = this;
+ set_movetype(this.tur_head, MOVETYPE_NOCLIP);
+ set_movetype(this, MOVETYPE_NOCLIP);
+ this.tur_head.angles = this.angles;
+ this.health = 255;
+ this.solid = SOLID_BBOX;
+ this.tur_head.solid = SOLID_NOT;
+ set_movetype(this, MOVETYPE_NOCLIP);
+ set_movetype(this.tur_head, MOVETYPE_NOCLIP);
+ this.draw = turret_draw;
+ this.entremove = turret_remove;
+ this.drawmask = MASK_NORMAL;
+ this.tur_head.drawmask = MASK_NORMAL;
+ this.anim_start_time = 0;
+ this.draw2d = turret_draw2d;
+ IL_PUSH(g_drawables_2d, this);
+ this.maxdistance = autocvar_g_waypointsprite_turrets_maxdist;
+ this.teamradar_color = '1 0 0';
+ this.alpha = 1;
+
+ tur.tr_setup(tur, this);