Xonotic
nades.inc
Go to the documentation of this file.
1 #ifdef GAMEQC
2 #define NADE_PROJECTILE(i, projectile, trail) MACRO_BEGIN \
3  this.m_projectile[i] = projectile; \
4  this.m_trail[i] = trail; \
5 MACRO_END
6 #endif
7 
8 REGISTER_NADE(NORMAL) {
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 }
15 
16 REGISTER_NADE(NAPALM) {
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 }
25 
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 }
35 
36 REGISTER_NADE(TRANSLOCATE) {
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 }
45 
46 REGISTER_NADE(SPAWN) {
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 }
55 
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 }
65 
66 REGISTER_NADE(MONSTER) {
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 }
75 
76 REGISTER_NADE(ENTRAP) {
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 }
85 
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 }
const int PROJECTILE_NADE_NAPALM
Definition: nades.qh:74
const int PROJECTILE_NADE_ENTRAP_BURN
Definition: nades.qh:86
const int PROJECTILE_NADE
Definition: nades.qh:72
const int PROJECTILE_NADE_SPAWN
Definition: nades.qh:80
REGISTER_NADE(NORMAL)
Definition: nades.inc:8
float m_alpha
Definition: weaponsystem.qc:74
const int PROJECTILE_NADE_MONSTER
Definition: nades.qh:83
const int PROJECTILE_NADE_HEAL
Definition: nades.qh:81
const int PROJECTILE_NADE_TRANSLOCATE
Definition: nades.qh:79
const int PROJECTILE_NADE_NAPALM_BURN
Definition: nades.qh:75
const int PROJECTILE_NADE_ENTRAP
Definition: nades.qh:85
const int PROJECTILE_NADE_HEAL_BURN
Definition: nades.qh:82
const int PROJECTILE_NADE_VEIL
Definition: nades.qh:87
const int PROJECTILE_NADE_BURN
Definition: nades.qh:73
const int PROJECTILE_NADE_ICE
Definition: nades.qh:77
const int PROJECTILE_NADE_ICE_BURN
Definition: nades.qh:78
const int PROJECTILE_NADE_VEIL_BURN
Definition: nades.qh:88
const int PROJECTILE_NADE_MONSTER_BURN
Definition: nades.qh:84
string m_name
Definition: scores.qh:135