Xonotic
nades.inc File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 REGISTER_NADE (NORMAL)
 
 REGISTER_NADE (NAPALM)
 
 REGISTER_NADE (ICE)
 
 REGISTER_NADE (TRANSLOCATE)
 
 REGISTER_NADE (SPAWN)
 
 REGISTER_NADE (HEAL)
 
 REGISTER_NADE (MONSTER)
 
 REGISTER_NADE (ENTRAP)
 
 REGISTER_NADE (VEIL)
 

Function Documentation

◆ REGISTER_NADE() [1/9]

REGISTER_NADE ( NORMAL  )

Definition at line 8 of file nades.inc.

References PROJECTILE_NADE, and PROJECTILE_NADE_BURN.

8  {
9  this.m_color = '1 1 1';
10 #ifdef GAMEQC
11  NADE_PROJECTILE(0, PROJECTILE_NADE, EFFECT_Null);
12  NADE_PROJECTILE(1, PROJECTILE_NADE_BURN, EFFECT_Null);
13 #endif
14 }
const int PROJECTILE_NADE
Definition: nades.qh:72
const int PROJECTILE_NADE_BURN
Definition: nades.qh:73

◆ REGISTER_NADE() [2/9]

REGISTER_NADE ( NAPALM  )

Definition at line 16 of file nades.inc.

References m_name.

16  {
17  this.m_color = '2 0.5 0';
18  this.m_name = _("Napalm grenade");
19  this.m_icon = "nade_napalm";
20 #ifdef GAMEQC
21  NADE_PROJECTILE(0, PROJECTILE_NADE_NAPALM, EFFECT_TR_ROCKET);
22  NADE_PROJECTILE(1, PROJECTILE_NADE_NAPALM_BURN, EFFECT_SPIDERBOT_ROCKET_TRAIL);
23 #endif
24 }
const int PROJECTILE_NADE_NAPALM
Definition: nades.qh:74
const int PROJECTILE_NADE_NAPALM_BURN
Definition: nades.qh:75
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [3/9]

REGISTER_NADE ( ICE  )

Definition at line 26 of file nades.inc.

References m_name.

26  {
27  this.m_color = '0 0.5 2';
28  this.m_name = _("Ice grenade");
29  this.m_icon = "nade_ice";
30 #ifdef GAMEQC
31  NADE_PROJECTILE(0, PROJECTILE_NADE_ICE, EFFECT_TR_NEXUIZPLASMA);
32  NADE_PROJECTILE(1, PROJECTILE_NADE_ICE_BURN, EFFECT_RACER_ROCKET_TRAIL);
33 #endif
34 }
const int PROJECTILE_NADE_ICE
Definition: nades.qh:77
const int PROJECTILE_NADE_ICE_BURN
Definition: nades.qh:78
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [4/9]

REGISTER_NADE ( TRANSLOCATE  )

Definition at line 36 of file nades.inc.

References m_name.

36  {
37  this.m_color = '1 0 1';
38  this.m_name = _("Translocate grenade");
39  this.m_icon = "nade_translocate";
40 #ifdef GAMEQC
41  NADE_PROJECTILE(0, PROJECTILE_NADE_TRANSLOCATE, EFFECT_TR_CRYLINKPLASMA);
42  NADE_PROJECTILE(1, PROJECTILE_NADE_TRANSLOCATE, EFFECT_TR_CRYLINKPLASMA);
43 #endif
44 }
const int PROJECTILE_NADE_TRANSLOCATE
Definition: nades.qh:79
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [5/9]

REGISTER_NADE ( SPAWN  )

Definition at line 46 of file nades.inc.

References m_name.

46  {
47  this.m_color = '1 0.9 0';
48  this.m_name = _("Spawn grenade");
49  this.m_icon = "nade_spawn";
50 #ifdef GAMEQC
51  NADE_PROJECTILE(0, PROJECTILE_NADE_SPAWN, EFFECT_NADE_TRAIL_YELLOW);
52  NADE_PROJECTILE(1, PROJECTILE_NADE_SPAWN, EFFECT_NADE_TRAIL_YELLOW);
53 #endif
54 }
const int PROJECTILE_NADE_SPAWN
Definition: nades.qh:80
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [6/9]

REGISTER_NADE ( HEAL  )

Definition at line 56 of file nades.inc.

References m_name.

56  {
57  this.m_color = '1 0 0';
58  this.m_name = _("Heal grenade");
59  this.m_icon = "nade_heal";
60 #ifdef GAMEQC
61  NADE_PROJECTILE(0, PROJECTILE_NADE_HEAL, EFFECT_NADE_TRAIL_RED);
62  NADE_PROJECTILE(1, PROJECTILE_NADE_HEAL_BURN, EFFECT_NADE_TRAIL_BURN_RED);
63 #endif
64 }
const int PROJECTILE_NADE_HEAL
Definition: nades.qh:81
const int PROJECTILE_NADE_HEAL_BURN
Definition: nades.qh:82
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [7/9]

REGISTER_NADE ( MONSTER  )

Definition at line 66 of file nades.inc.

References m_name.

66  {
67  this.m_color = '0.25 0.75 0';
68  this.m_name = _("Monster grenade");
69  this.m_icon = "nade_monster";
70 #ifdef GAMEQC
71  NADE_PROJECTILE(0, PROJECTILE_NADE_MONSTER, EFFECT_NADE_TRAIL_RED);
72  NADE_PROJECTILE(1, PROJECTILE_NADE_MONSTER_BURN, EFFECT_NADE_TRAIL_BURN_RED);
73 #endif
74 }
const int PROJECTILE_NADE_MONSTER
Definition: nades.qh:83
const int PROJECTILE_NADE_MONSTER_BURN
Definition: nades.qh:84
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [8/9]

REGISTER_NADE ( ENTRAP  )

Definition at line 76 of file nades.inc.

References m_name.

76  {
77  this.m_color = '0.15 0.85 0';
78  this.m_name = _("Entrap grenade");
79  this.m_icon = "nade_entrap";
80 #ifdef GAMEQC
81  NADE_PROJECTILE(0, PROJECTILE_NADE_ENTRAP, EFFECT_NADE_TRAIL_YELLOW);
82  NADE_PROJECTILE(1, PROJECTILE_NADE_ENTRAP_BURN, EFFECT_NADE_TRAIL_BURN_YELLOW);
83 #endif
84 }
const int PROJECTILE_NADE_ENTRAP_BURN
Definition: nades.qh:86
const int PROJECTILE_NADE_ENTRAP
Definition: nades.qh:85
string m_name
Definition: scores.qh:135

◆ REGISTER_NADE() [9/9]

REGISTER_NADE ( VEIL  )

Definition at line 86 of file nades.inc.

References m_name.

86  {
87  this.m_color = '0.65 0.85 0.65';
88  this.m_name = _("Veil grenade");
89  this.m_icon = "nade_veil";
90  this.m_alpha = 0.45;
91 #ifdef GAMEQC
92  NADE_PROJECTILE(0, PROJECTILE_NADE_VEIL, EFFECT_NADE_TRAIL_NEUTRAL);
93  NADE_PROJECTILE(1, PROJECTILE_NADE_VEIL_BURN, EFFECT_NADE_TRAIL_BURN_NEUTRAL);
94 #endif
95 }
float m_alpha
Definition: weaponsystem.qc:74
const int PROJECTILE_NADE_VEIL
Definition: nades.qh:87
const int PROJECTILE_NADE_VEIL_BURN
Definition: nades.qh:88
string m_name
Definition: scores.qh:135