-float SpawnPoint_Send(entity to, float sf)
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qh"
+ #include "../dpdefs/dpextensions.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "mutators/mutators_include.qh"
+ #include "spawnpoints.qh"
+ #include "race.qh"
+#endif
+
+float SpawnPoint_Send(entity to, int sf)
{
WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNPOINT);
WriteShort(MSG_ENTITY, self.origin.y);
WriteShort(MSG_ENTITY, self.origin.z);
- return TRUE;
+ return true;
}
-float SpawnEvent_Send(entity to, float sf)
+float SpawnEvent_Send(entity to, int sf)
{
float send;
WriteShort(MSG_ENTITY, self.owner.origin.x);
WriteShort(MSG_ENTITY, self.owner.origin.y);
WriteShort(MSG_ENTITY, self.owner.origin.z);
- send = TRUE;
+ send = true;
}
else if((to == self.owner) || (IS_SPEC(to) && (to.enemy == self.owner)) )
{
WriteByte(MSG_ENTITY, 0);
- send = TRUE;
+ send = true;
}
- else { send = FALSE; }
+ else { send = false; }
return send;
}
// nudge off the floor
setorigin(self, self.origin + '0 0 1');
- tracebox(self.origin, PL_MIN, PL_MAX, self.origin, TRUE, self);
+ tracebox(self.origin, PL_MIN, PL_MAX, self.origin, true, self);
if (trace_startsolid)
{
vector o;
||
autocvar_g_spawn_useallspawns
)
- { Net_LinkEntity(self, FALSE, 0, SpawnPoint_Send); }
+ { Net_LinkEntity(self, false, 0, SpawnPoint_Send); }
}
void spawnfunc_info_player_survivor (void)