Xonotic
effects.inc
Go to the documentation of this file.
1 #include <common/effects/all.qh>
2 
3 EFFECT(0, NADE_EXPLODE_RED, "nade_red_explode")
4 EFFECT(0, NADE_EXPLODE_BLUE, "nade_blue_explode")
5 EFFECT(0, NADE_EXPLODE_YELLOW, "nade_yellow_explode")
6 EFFECT(0, NADE_EXPLODE_PINK, "nade_pink_explode")
7 EFFECT(0, NADE_EXPLODE_NEUTRAL, "nade_neutral_explode")
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 }
18 
19 EFFECT(1, NADE_TRAIL_RED, "nade_red")
20 EFFECT(1, NADE_TRAIL_BLUE, "nade_blue")
21 EFFECT(1, NADE_TRAIL_YELLOW, "nade_yellow")
22 EFFECT(1, NADE_TRAIL_PINK, "nade_pink")
23 EFFECT(1, NADE_TRAIL_NEUTRAL, "nade_neutral")
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 }
34 
35 EFFECT(1, NADE_TRAIL_BURN_RED, "nade_red_burn")
36 EFFECT(1, NADE_TRAIL_BURN_BLUE, "nade_blue_burn")
37 EFFECT(1, NADE_TRAIL_BURN_YELLOW, "nade_yellow_burn")
38 EFFECT(1, NADE_TRAIL_BURN_PINK, "nade_pink_burn")
39 EFFECT(1, NADE_TRAIL_BURN_NEUTRAL, "nade_neutral_burn")
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
entity() spawn
entity EFFECT_NADE_TRAIL(int teamid)
Definition: effects.inc:24
entity EFFECT_NADE_EXPLODE(int teamid)
Definition: effects.inc:8
#define EFFECT(istrail, name, realname)
Definition: all.qh:14
const int NUM_TEAM_4
Definition: teams.qh:21
const int NUM_TEAM_1
Definition: teams.qh:18
entity EFFECT_NADE_TRAIL_BURN(int teamid)
Definition: effects.inc:40
const int NUM_TEAM_3
Definition: teams.qh:20