Xonotic
effects.inc File Reference
+ Include dependency graph for effects.inc:

Go to the source code of this file.

Functions

entity EFFECT_NADE_EXPLODE (int teamid)
 
entity EFFECT_NADE_TRAIL (int teamid)
 
entity EFFECT_NADE_TRAIL_BURN (int teamid)
 

Function Documentation

◆ EFFECT_NADE_EXPLODE()

entity EFFECT_NADE_EXPLODE ( int  teamid)

Definition at line 8 of file effects.inc.

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

9 {
10  switch (teamid) {
11  case NUM_TEAM_1: return EFFECT_NADE_EXPLODE_RED;
12  case NUM_TEAM_2: return EFFECT_NADE_EXPLODE_BLUE;
13  case NUM_TEAM_3: return EFFECT_NADE_EXPLODE_YELLOW;
14  case NUM_TEAM_4: return EFFECT_NADE_EXPLODE_PINK;
15  default: return EFFECT_NADE_EXPLODE_NEUTRAL;
16  }
17 }
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_NADE_TRAIL()

entity EFFECT_NADE_TRAIL ( int  teamid)

Definition at line 24 of file effects.inc.

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

25 {
26  switch (teamid) {
27  case NUM_TEAM_1: return EFFECT_NADE_TRAIL_RED;
28  case NUM_TEAM_2: return EFFECT_NADE_TRAIL_BLUE;
29  case NUM_TEAM_3: return EFFECT_NADE_TRAIL_YELLOW;
30  case NUM_TEAM_4: return EFFECT_NADE_TRAIL_PINK;
31  default: return EFFECT_NADE_TRAIL_NEUTRAL;
32  }
33 }
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_NADE_TRAIL_BURN()

entity EFFECT_NADE_TRAIL_BURN ( int  teamid)

Definition at line 40 of file effects.inc.

References NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

41 {
42  switch (teamid) {
43  case NUM_TEAM_1: return EFFECT_NADE_TRAIL_BURN_RED;
44  case NUM_TEAM_2: return EFFECT_NADE_TRAIL_BURN_BLUE;
45  case NUM_TEAM_3: return EFFECT_NADE_TRAIL_BURN_YELLOW;
46  case NUM_TEAM_4: return EFFECT_NADE_TRAIL_BURN_PINK;
47  default: return EFFECT_NADE_TRAIL_BURN_NEUTRAL;
48  }
49 }
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