Xonotic
all.inc File Reference
#include "../teams.qh"
+ Include dependency graph for all.inc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity EFFECT_CAP (int teamid)
 
entity EFFECT_FLAG_TOUCH (int teamid)
 
entity EFFECT_PASS (int teamid)
 
entity EFFECT_ROCKETMINSTA_LASER (int teamid)
 
entity EFFECT_SPAWN (int teamid)
 
entity EFFECT_SPAWNPOINT (int teamid)
 
entity EFFECT_VAPORIZER (int teamid)
 
entity EFFECT_VAPORIZER_HIT (int teamid)
 

Function Documentation

◆ EFFECT_CAP()

entity EFFECT_CAP ( int  teamid)

Definition at line 221 of file all.inc.

References EF_FLAME, EF_STARDUST, EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, and TE_EXPLOSION.

Referenced by ctf_FlagSetup(), and ons_ControlPoint_Icon_BuildThink().

222 {
223  switch (teamid) {
224  case NUM_TEAM_1: return EFFECT_CAP_RED;
225  case NUM_TEAM_2: return EFFECT_CAP_BLUE;
226  case NUM_TEAM_3: return EFFECT_CAP_YELLOW;
227  case NUM_TEAM_4: return EFFECT_CAP_PINK;
228  default: return EFFECT_CAP_NEUTRAL;
229  }
230 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20
+ Here is the caller graph for this function:

◆ EFFECT_FLAG_TOUCH()

entity EFFECT_FLAG_TOUCH ( int  teamid)

Definition at line 189 of file all.inc.

References EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by ctf_FlagSetup(), and ons_ControlPoint_Icon_Spawn().

190 {
191  switch (teamid) {
192  case NUM_TEAM_1: return EFFECT_FLAG_TOUCH_RED;
193  case NUM_TEAM_2: return EFFECT_FLAG_TOUCH_BLUE;
194  case NUM_TEAM_3: return EFFECT_FLAG_TOUCH_YELLOW;
195  case NUM_TEAM_4: return EFFECT_FLAG_TOUCH_PINK;
196  default: return EFFECT_FLAG_TOUCH_NEUTRAL;
197  }
198 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20
+ Here is the caller graph for this function:

◆ EFFECT_PASS()

entity EFFECT_PASS ( int  teamid)

Definition at line 205 of file all.inc.

References EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by ctf_FlagSetup().

206 {
207  switch (teamid) {
208  case NUM_TEAM_1: return EFFECT_PASS_RED;
209  case NUM_TEAM_2: return EFFECT_PASS_BLUE;
210  case NUM_TEAM_3: return EFFECT_PASS_YELLOW;
211  case NUM_TEAM_4: return EFFECT_PASS_PINK;
212  default: return EFFECT_PASS_NEUTRAL;
213  }
214 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20
+ Here is the caller graph for this function:

◆ EFFECT_ROCKETMINSTA_LASER()

entity EFFECT_ROCKETMINSTA_LASER ( int  teamid)

Definition at line 274 of file all.inc.

References entity(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, particleeffectnum, and Team_IsValidTeam().

Referenced by NET_HANDLE().

275 {
276  entity e;
277  switch (teamid) {
278  case NUM_TEAM_1: e = EFFECT_ROCKETMINSTA_LASER_RED; break;
279  case NUM_TEAM_2: e = EFFECT_ROCKETMINSTA_LASER_BLUE; break;
280  case NUM_TEAM_3: e = EFFECT_ROCKETMINSTA_LASER_YELLOW; break;
281  case NUM_TEAM_4: e = EFFECT_ROCKETMINSTA_LASER_PINK; break;
282  default: e = EFFECT_ROCKETMINSTA_LASER_NEUTRAL; break;
283  }
284  if (particleeffectnum(e) < 0 || !Team_IsValidTeam(teamid)) { e = EFFECT_TR_NEXUIZPLASMA; }
285  return e;
286 }
const int NUM_TEAM_2
Definition: teams.qh:19
entity() spawn
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
bool Team_IsValidTeam(int team_num)
Returns whether team value is valid.
Definition: teams.qh:133
const int NUM_TEAM_3
Definition: teams.qh:20
#define particleeffectnum(e)
Definition: effect.qh:3
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EFFECT_SPAWN()

entity EFFECT_SPAWN ( int  teamid)

Definition at line 164 of file all.inc.

References EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

165 {
166  switch (teamid) {
167  case NUM_TEAM_1: return EFFECT_SPAWN_RED;
168  case NUM_TEAM_2: return EFFECT_SPAWN_BLUE;
169  case NUM_TEAM_3: return EFFECT_SPAWN_YELLOW;
170  case NUM_TEAM_4: return EFFECT_SPAWN_PINK;
171  default: return EFFECT_SPAWN_NEUTRAL;
172  }
173 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20

◆ EFFECT_SPAWNPOINT()

entity EFFECT_SPAWNPOINT ( int  teamid)

Definition at line 148 of file all.inc.

References EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by Spawn_Draw().

149 {
150  switch (teamid) {
151  case NUM_TEAM_1: return EFFECT_SPAWNPOINT_RED;
152  case NUM_TEAM_2: return EFFECT_SPAWNPOINT_BLUE;
153  case NUM_TEAM_3: return EFFECT_SPAWNPOINT_YELLOW;
154  case NUM_TEAM_4: return EFFECT_SPAWNPOINT_PINK;
155  default: return EFFECT_SPAWNPOINT_NEUTRAL;
156  }
157 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20
+ Here is the caller graph for this function:

◆ EFFECT_VAPORIZER()

entity EFFECT_VAPORIZER ( int  teamid)

Definition at line 67 of file all.inc.

References NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

68 {
69  switch (teamid) {
70  case NUM_TEAM_1: return EFFECT_VAPORIZER_RED;
71  case NUM_TEAM_2: return EFFECT_VAPORIZER_BLUE;
72  case NUM_TEAM_3: return EFFECT_VAPORIZER_YELLOW;
73  case NUM_TEAM_4: return EFFECT_VAPORIZER_PINK;
74  default: return EFFECT_VAPORIZER_NEUTRAL;
75  }
76 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20

◆ EFFECT_VAPORIZER_HIT()

entity EFFECT_VAPORIZER_HIT ( int  teamid)

Definition at line 77 of file all.inc.

References EFFECT, NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

78 {
79  switch (teamid) {
80  case NUM_TEAM_1: return EFFECT_VAPORIZER_HIT_RED;
81  case NUM_TEAM_2: return EFFECT_VAPORIZER_HIT_BLUE;
82  case NUM_TEAM_3: return EFFECT_VAPORIZER_HIT_YELLOW;
83  case NUM_TEAM_4: return EFFECT_VAPORIZER_HIT_PINK;
84  default: return EFFECT_VAPORIZER_HIT_NEUTRAL;
85  }
86 }
const int NUM_TEAM_2
Definition: teams.qh:19
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
const int NUM_TEAM_3
Definition: teams.qh:20