#include "../warpzonelib/util_server.qh"
float SpawnPoint_Send(entity to, int sf)
-{
+{SELFPARAM();
WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNPOINT);
WriteByte(MSG_ENTITY, self.team);
}
float SpawnEvent_Send(entity to, int sf)
-{
+{SELFPARAM();
float send;
WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNEVENT);
}
void spawnpoint_use()
-{
+{SELFPARAM();
if(teamplay)
if(have_team_spawns > 0)
{
}
void relocate_spawnpoint()
-{
+{SELFPARAM();
// nudge off the floor
setorigin(self, self.origin + '0 0 1');
}
void spawnfunc_info_player_deathmatch (void)
-{
+{SELFPARAM();
self.classname = "info_player_deathmatch";
relocate_spawnpoint();
}
Starting point for a player in team one (Red).
Keys: "angle" viewing angle when spawning. */
void spawnfunc_info_player_team1()
-{
+{SELFPARAM();
if(g_assault) { remove(self); return; }
self.team = NUM_TEAM_1; // red
Starting point for a player in team two (Blue).
Keys: "angle" viewing angle when spawning. */
void spawnfunc_info_player_team2()
-{
+{SELFPARAM();
if(g_assault) { remove(self); return; }
self.team = NUM_TEAM_2; // blue
Starting point for a player in team three (Yellow).
Keys: "angle" viewing angle when spawning. */
void spawnfunc_info_player_team3()
-{
+{SELFPARAM();
if(g_assault) { remove(self); return; }
self.team = NUM_TEAM_3; // yellow
Starting point for a player in team four (Purple).
Keys: "angle" viewing angle when spawning. */
void spawnfunc_info_player_team4()
-{
+{SELFPARAM();
if(g_assault) { remove(self); return; }
self.team = NUM_TEAM_4; // purple
// _x: prio (-1 if unusable)
// _y: weight
vector Spawn_Score(entity spot, float mindist, float teamcheck)
-{
+{SELFPARAM();
float shortest, thisdist;
float prio;
entity player;
=============
*/
entity SelectSpawnPoint (float anypoint)
-{
+{SELFPARAM();
float teamcheck;
entity spot, firstspot;