+#include "tturrets.qh"
+#include "waypointsprites.qh"
+
+#include "../server/movelib.qh"
+
string tid2info_base;
string tid2info_head;
string tid2info_name;
turret_precache(TID_COMMON);
}
-void turret_precache(float _tid)
+void turret_precache(int _tid)
{
if (!turret_is_precache[TID_COMMON])
{
|| o.x > (vid_conwidth - (vid_conwidth * waypointsprite_edgeoffset_right))
|| o.y > (vid_conheight - (vid_conheight * waypointsprite_edgeoffset_bottom)))
return; // Dont draw wp's for turrets out of view
- o_z = 0;
+ o.z = 0;
if(hud != HUD_NORMAL)
{
switch(hud)
|| o.y > (vid_conheight - (vid_conheight * waypointsprite_edgeoffset_bottom)))
return; // Dont draw wp's for turrets out of view
- o_z = 0;
+ o.z = 0;
float edgedistance_min, crosshairdistance;
edgedistance_min = min((o.y - (vid_conheight * waypointsprite_edgeoffset_top)),
te_spark(self.origin + '0 0 40', randomvec() * 256 + '0 0 256', 16);
}
-void(entity e, entity tagentity, string tagname) setattachment = #443;
void turret_construct()
{
if(self.tur_head == world)
void ent_turret()
{
- float sf;
- sf = ReadByte();
+ int sf = ReadByte();
if(sf & TNSF_SETUP)
{
if(sf & TNSF_STATUS)
{
- float _tmp;
- _tmp = ReadByte();
+ int _tmp = ReadByte();
if(_tmp != self.team)
{
self.team = _tmp;