]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Nades.md
Update Compiling: add libtool dependency
[xonotic/xonotic.wiki.git] / Nades.md
1 # Nades
2
3 Come in a variety of types. The offhand hook bind or drop weapon bind throws the grenade. Hold the throw key E to throw the nade. (*NOTE: If you have a Grappling Hook weapon with you, you will have to press the G key once to throw it and then press it again when you want to throw the nade. Due to development reasons, the Grappling Hook only can be used with the E key as the main key, so it was developed to avoid errors in the game.*) Press F8 to switch nade types.
4
5 # Nade types
6
7 ## Normal
8
9 <img src="uploads/7e75ed16f04358a1297c0cd1363a5e03/normal.jpg" alt="normalnade" width="450"/>
10
11 <img src="uploads/f087361a52e91df6459df22e3926f412/normalboom.jpg" alt="normalboom" width="450"/>
12
13 Frag grenade. Explodes.
14
15 ## Napalm
16
17 <img src="uploads/eab7d20707a37db964faeca5b624648a/napalm.jpg" alt="napalm" width="450"/>
18
19 <img src="uploads/07e424e85718e7f40cf524183384b0e6/napalmboom.jpg" alt="napalmboom" width="450"/>
20
21 Shoots several napalm globs in a circle around the nade. Touching these will ignite players and likely kill them.
22
23 ## Nitro
24
25 <img src="uploads/d5c18cbaed37fc98b28a3fc2d8b3f8ed/nitro.jpg" alt="nitro" width="450"/>
26
27 <img src="uploads/4790da4757c57d879be55493c95b6857/nitroboom.jpg" alt="nitroboom" width="450"/>
28
29 Freezes enemies in a large radius. Lethal.
30
31 ## Translocate 
32
33 <img src="uploads/ee94f06409a122191a74d70e1e2250bd/translocate.jpg" alt="translocate" width="450"/>
34
35 <img src="uploads/1487c855c09637affb13c6cfeaaae994/translocateboom.jpg" alt="translocateboom" width="450"/>
36
37 Teleports the player to where the nade "explodes".
38
39 ## Spawn
40
41 <img src="uploads/77f2c9768bec14f7b5c5cfd68452886f/spawnnade.jpg" alt="spawnnade" width="450"/>
42
43 Creates a spawn point that can be respawned on three times. It's useful when you need to go back in the point where you want to start after died, instead starting in the main points.
44
45 ## Healing
46
47 <img src="uploads/22b3273ceedc7cbf526f7b7e8a719828/healing.jpg" alt="healing" width="450"/>
48
49 <img src="uploads/606e3175f20a9274b9c651f5b8fea151/healingboom.jpg" alt="healingboom" width="450"/>
50
51 Regenerates health in a large radius around the nade.
52
53 ## Entrap
54
55 <img src="uploads/15add5938094995589a7d569e9195f24/entrap.jpg" alt="entrap" width="450"/>
56
57 <img src="uploads/e846c4dac00937a4bcef89c5fe961291/entrapboom.jpg" alt="entrapboom" width="450"/>
58
59 Slows movement within a large radius for 12 seconds. Makes the balls' gravity fall faster when they are inside the orb. In the orb, you will see that the electro balls fall quicker inside and rockets / bullets are slowing down.
60
61 ## Veil
62
63 <img src="uploads/9ad5f03fe196de135e03f281cdd4cc62/veil.jpg" alt="veil" width="450"/>
64
65 <img src="uploads/88071dccb47d650aacd31c719eadb6b6/veilboom.jpg" alt="veilboom" width="450"/>
66
67 It creates an orb which makes invisible to the players whose are on the side of the one who has thrown(in TDM, CTF, team gamemodes) during a time.
68
69 # Pokenade 
70
71 <img src="uploads/3a0322703abb471d604d3b65b778bd53/monsternade.jpg" alt="monsternade" width="450"/>
72
73 <img src="uploads/f453f36f7b04dd48c0747fc9075f4895/monsternadeboom.jpg" alt="monsternadeboom" width="450"/>
74
75 Spawns a monster. Four monsters can be alive at one time. Options include:
76
77 ## Zombie
78
79 Medium speed melee attacker. Can be ridden for movement speed higher than running (but not as fast as strafe jumping).
80
81 ## Spider
82
83 High speed melee attacker. Drops 25 health on death.
84
85 ## Wyvern
86
87 Flying monster.
88
89 ## Shambler
90
91 Large, slow melee attacker. Drops 100 health on death.
92
93 ## Random
94
95 Spawns all of the above and a marine at random.
96
97 **More info about monsters are in [this link](Monsters).**
98
99 ## Notes for developers
100
101 **Nades source codes are in this [directory](https://gitlab.com/xonotic/xonotic-data.pk3dir/-/tree/master/qcsrc/common/mutators/mutator/nades).**
102
103 If you are creating a server for yourself, to play with the nades, you need to activate the nades and it is recommended to set those variables (you can toggle in the console while writing `g_nades` and pressing TAB to display info of these cvars):
104
105 `g_nades 1 // activate nades in the game`
106
107 `set g_nades_nade_damage 150 // normal nade explosion damage`
108
109 `set g_nades_bonus 1 // adding number of extra nades when it's obtained after time bonus`
110
111 `set g_nades_bonus_client_select 1 // allow client side selection of bonus nade type`
112
113 `set g_nades_bonus_max 3 // maximum number of bonus grenades`
114
115 `set g_nades_bonus_type 3 // type of the bonus grenade. 1:normal 2:napalm 3:ice 4:translocate 5:spawn 6:heal 7:pokenade 8:entrap`
116
117 `set g_nades_bonus_score_time 5 // time when someone is scoring, makes adding fast one nade extra more`
118
119 `set g_nades_heal_foe -5 // when someone is not ally of the healing orb will take damage during a certain time if this is inside the orb`
120
121 `set g_nades_nade_lifetime 3.5`
122
123 `set g_nades_nade_maxforce 2000`
124
125 `set g_nades_nade_minforce 400`
126
127 `set g_nades_nade_newton_style 0 // 0 is absolute, 1 is relative (takes into account player speed), 2 is something in between`
128
129 `set g_nades_napalm_ball_damage 110 // napalm explosion damage`
130
131 `set g_nades_napalm_ball_lifetime 4 // napalm burning time after exploded`
132
133 `set g_nades_napalm_burntime 3 // napalm burn time when someone is burning with those flames`
134
135 `set g_nades_entrap_time 15 // entrap orb time`
136
137 `set g_nades_nade_refire 10`
138
139 `set g_nades_veil_radius 720 // veil orb radius size`
140
141 `set g_nades_veil_time 6 // veil orb time`
142
143 `set g_nades_ice_freeze_time 2 // How long the ice field will last`
144
145 `set g_nades_ice_health 1 // How much health the player will have after being unfrozen`
146
147 `set g_nades_ice_teamcheck 0 // Don't freeze teammates`
148
149 `set g_nades_ice_explode 1 // Whether the ice nade should explode again once the ice field dissipated`
150
151 `set g_nades_spawn_count 1 // number of times player will spawn at their spawn nade explosion location`
152
153 `set g_nades_spread 0.04 // random spread offset of throw direction`
154
155
156 After setting all this, it can be necessary to restart the server, use `restart` command to apply the changes. Instead doing this manually, you can put those variables in a *.cfg* file. Save the variables inside *nades.cfg* empty file and save it in *xonotic/data* folder. In the game, when you are playing in your own server, execute in the console: `exec nades.cfg` and restart if necessary.