Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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)

Function Documentation

◆ EFFECT_CAP()

entity EFFECT_CAP ( int teamid)

Definition at line 207 of file all.inc.

208{
209 switch (teamid) {
210 case NUM_TEAM_1: return EFFECT_CAP_RED;
211 case NUM_TEAM_2: return EFFECT_CAP_BLUE;
212 case NUM_TEAM_3: return EFFECT_CAP_YELLOW;
213 case NUM_TEAM_4: return EFFECT_CAP_PINK;
214 default: return EFFECT_CAP_NEUTRAL;
215 }
216}
const int NUM_TEAM_2
Definition teams.qh:14
const int NUM_TEAM_4
Definition teams.qh:16
const int NUM_TEAM_3
Definition teams.qh:15
const int NUM_TEAM_1
Definition teams.qh:13

References EFFECT_CAP(), entity(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by ctf_FlagSetup(), EFFECT_CAP(), and ons_ControlPoint_Icon_BuildThink().

◆ EFFECT_FLAG_TOUCH()

entity EFFECT_FLAG_TOUCH ( int teamid)

Definition at line 175 of file all.inc.

176{
177 switch (teamid) {
178 case NUM_TEAM_1: return EFFECT_FLAG_TOUCH_RED;
179 case NUM_TEAM_2: return EFFECT_FLAG_TOUCH_BLUE;
180 case NUM_TEAM_3: return EFFECT_FLAG_TOUCH_YELLOW;
181 case NUM_TEAM_4: return EFFECT_FLAG_TOUCH_PINK;
182 default: return EFFECT_FLAG_TOUCH_NEUTRAL;
183 }
184}

References EFFECT_FLAG_TOUCH(), entity(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by ctf_FlagSetup(), EFFECT_FLAG_TOUCH(), and ons_ControlPoint_Icon_Spawn().

◆ EFFECT_PASS()

entity EFFECT_PASS ( int teamid)

Definition at line 191 of file all.inc.

192{
193 switch (teamid) {
194 case NUM_TEAM_1: return EFFECT_PASS_RED;
195 case NUM_TEAM_2: return EFFECT_PASS_BLUE;
196 case NUM_TEAM_3: return EFFECT_PASS_YELLOW;
197 case NUM_TEAM_4: return EFFECT_PASS_PINK;
198 default: return EFFECT_PASS_NEUTRAL;
199 }
200}

References EFFECT_PASS(), entity(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, and NUM_TEAM_4.

Referenced by ctf_FlagSetup(), and EFFECT_PASS().