#include "onslaught.qh"
-#ifndef MENUQC
+#ifdef GAMEQC
REGISTER_NET_LINKED(ENT_ONSCAMERA)
#endif
entity generator_camera;
NET_HANDLE(ENT_ONSCAMERA, bool isnew)
{
- this.origin_x = ReadCoord();
- this.origin_y = ReadCoord();
- this.origin_z = ReadCoord();
+ this.origin = ReadVector();
setorigin(this, this.origin);
this.angles_x = ReadAngle();
entity gen = NULL;
if(ons_roundlost)
{
- IL_EACH(g_onsgenerators, it.health <= 0,
+ IL_EACH(g_onsgenerators, GetResourceAmount(it, RESOURCE_HEALTH) <= 0,
{
gen = it;
break;