Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
nades.qc File Reference
Include dependency graph for nades.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity Nade_TrailEffect (int proj, int nade_team)
 REPLICATE (cvar_cl_nade_type, string, "cl_nade_type")
 REPLICATE (cvar_cl_pokenade_type, string, "cl_pokenade_type")

Variables

bool autocvar_g_nades_nade_small
float autocvar_g_nades_spread = 0.04

Function Documentation

◆ Nade_TrailEffect()

entity Nade_TrailEffect ( int proj,
int nade_team )

Definition at line 17 of file nades.qc.

18{
19 switch (proj)
20 {
21 case PROJECTILE_NADE: return EFFECT_NADE_TRAIL(nade_team);
22 case PROJECTILE_NADE_BURN: return EFFECT_NADE_TRAIL_BURN(nade_team);
23 }
24
25 FOREACH(Nades, true, {
26 for (int j = 0; j < 2; ++j)
27 {
28 if (it.m_projectile[j] == proj)
29 {
30 string trail = it.m_trail[j].eent_eff_name;
31 if (trail) return it.m_trail[j];
32 break;
33 }
34 }
35 });
36
37 return EFFECT_Null;
38}
entity EFFECT_NADE_TRAIL_BURN(int teamid)
Definition effects.inc:41
entity EFFECT_NADE_TRAIL(int teamid)
Definition effects.inc:23
#define FOREACH(list, cond, body)
Definition iter.qh:19
const int PROJECTILE_NADE_BURN
Definition nades.qh:48
const int PROJECTILE_NADE
Definition nades.qh:47

References EFFECT_NADE_TRAIL(), EFFECT_NADE_TRAIL_BURN(), entity(), FOREACH, PROJECTILE_NADE, and PROJECTILE_NADE_BURN.

Referenced by MUTATOR_HOOKFUNCTION(), nade_customize(), and spawn_held_nade().

◆ REPLICATE() [1/2]

REPLICATE ( cvar_cl_nade_type ,
string ,
"cl_nade_type"  )

References cvar_cl_nade_type.

◆ REPLICATE() [2/2]

REPLICATE ( cvar_cl_pokenade_type ,
string ,
"cl_pokenade_type"  )

References cvar_cl_pokenade_type.

Variable Documentation

◆ autocvar_g_nades_nade_small

bool autocvar_g_nades_nade_small

Definition at line 6 of file nades.qc.

◆ autocvar_g_nades_spread

float autocvar_g_nades_spread = 0.04

Definition at line 7 of file nades.qc.

Referenced by nades_CheckThrow().