#elif defined(MENUQC)
#elif defined(SVQC)
#include <lib/warpzone/util_server.qh>
- #include <server/defs.qh>
+ #include <common/mapobjects/triggers.qh>
+ #include <common/weapons/_all.qh>
+ #include <common/stats.qh>
#endif
REGISTER_NET_LINKED(ENT_CLIENT_VIEWLOC)
WriteVector(MSG_ENTITY, this.origin);
- WriteAngle(MSG_ENTITY, this.angles_x);
- WriteAngle(MSG_ENTITY, this.angles_y);
- WriteAngle(MSG_ENTITY, this.angles_z);
+ WriteAngleVector(MSG_ENTITY, this.angles);
return true;
}
spawnfunc(target_viewlocation_start)
{
- this.classname = "target_viewlocation_start";
this.cnt = 1;
viewloc_link(this);
}
spawnfunc(target_viewlocation_end)
{
- this.classname = "target_viewlocation_end";
this.cnt = 2;
viewloc_link(this);
}
setthink(this, trigger_viewloc_updatelink);
this.nextthink = time + 1; // we need to delay this or else
- this.classname = "trigger_viewlocation";
this.drawmask = MASK_NORMAL; // not so concerned, but better keep it alive
}
this.origin = ReadVector();
setorigin(this, this.origin);
- this.movedir_x = ReadAngle();
- this.movedir_y = ReadAngle();
- this.movedir_z = ReadAngle();
+ this.movedir = ReadAngleVector();
return = true;