X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fonslaught.qc;h=66ae14db424dfb64a0f36124c3ca7ba1e686c72f;hb=991de5e6922cd3c283de56c3249624f0f1bfe767;hp=afbd31842978a332d81c4a3d914a2202799fddae;hpb=8c965aa90470cfa8cbfaff88db71b6b5899a90ce;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc index afbd31842..66ae14db4 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc +++ b/qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc @@ -1,6 +1,6 @@ #include "onslaught.qh" -#ifndef MENUQC +#ifdef GAMEQC REGISTER_NET_LINKED(ENT_ONSCAMERA) #endif @@ -9,9 +9,7 @@ REGISTER_NET_LINKED(ENT_ONSCAMERA) 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(); @@ -38,7 +36,7 @@ MUTATOR_HOOKFUNCTION(cl_ons, WantEventchase) entity gen = NULL; if(ons_roundlost) { - IL_EACH(g_onsgenerators, it.health <= 0, + IL_EACH(g_onsgenerators, GetResource(it, RES_HEALTH) <= 0, { gen = it; break;