]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Nades.md
Link to Creating-bot-waypoints
[xonotic/xonotic.wiki.git] / Nades.md
index 85b6d45ad8aa895716b2aaa27da26c0612ce1cc3..925d131b9aae29b41c799bad9b2cc7cff85ff6cb 100644 (file)
--- a/Nades.md
+++ b/Nades.md
@@ -1,68 +1,76 @@
 # Nades
 
-Come in a variety of types. The offhand hook bind or drop weapon bind throws the grenade. Hold the throw key E to cook 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.
+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.
 
 # Nade types
 
 ## Normal
 
-![Normal nade](uploads/49d1fa684ecd673367b4f3294195a37f/normal.png)
-![Normal boom](uploads/1b9a2ab2a1f5a3138b45d12830910c02/normalboom.png)
+<img src="uploads/7e75ed16f04358a1297c0cd1363a5e03/normal.jpg" alt="normalnade" width="450"/>
+
+<img src="uploads/f087361a52e91df6459df22e3926f412/normalboom.jpg" alt="normalboom" width="450"/>
 
 Frag grenade. Explodes.
 
 ## Napalm
 
-![Napalm nade](uploads/a90778308bad9c09bf02be9cdb760f76/napalm.png)
-![Napalm boom](uploads/ca2ff9f964f1836eaa2550c5ab918c85/napalmboom.png)
+<img src="uploads/eab7d20707a37db964faeca5b624648a/napalm.jpg" alt="napalm" width="450"/>
+
+<img src="uploads/07e424e85718e7f40cf524183384b0e6/napalmboom.jpg" alt="napalmboom" width="450"/>
 
 Shoots several napalm globs in a circle around the nade. Touching these will ignite players and likely kill them.
 
 ## Nitro
 
-![Nitro nade](uploads/7deb9e6cb017bcc91ab2e4687a358b6a/nitro.png)
-![Nitro boom](uploads/8195594de91adce2c8f62f9819c8e861/nitroboom.png)
+<img src="uploads/d5c18cbaed37fc98b28a3fc2d8b3f8ed/nitro.jpg" alt="nitro" width="450"/>
+
+<img src="uploads/4790da4757c57d879be55493c95b6857/nitroboom.jpg" alt="nitroboom" width="450"/>
 
 Freezes enemies in a large radius. Lethal.
 
 ## Translocate 
 
-![Translocate nade](uploads/dbc9799a7d5caa91d6172b21e61f205e/translocate.png)
-![Translocate boom](uploads/a686abf53ed2a7c0c39d264fce1a15bc/translocateboom.png)
+<img src="uploads/ee94f06409a122191a74d70e1e2250bd/translocate.jpg" alt="translocate" width="450"/>
+
+<img src="uploads/1487c855c09637affb13c6cfeaaae994/translocateboom.jpg" alt="translocateboom" width="450"/>
 
 Teleports the player to where the nade "explodes".
 
 ## Spawn
 
-![Spawn nade](uploads/3042d31bb8a054ea7e177f6110570fb7/spawnnade.png)
+<img src="uploads/77f2c9768bec14f7b5c5cfd68452886f/spawnnade.jpg" alt="spawnnade" width="450"/>
 
 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.
 
 ## Healing
 
-![Healing nade](uploads/a6789a82865f41522bfaa150e9c2bbc8/healing.png)
-![Healing boom](uploads/5df5aca2975cb939a9f091574ea12d6f/healingboom.png)
+<img src="uploads/22b3273ceedc7cbf526f7b7e8a719828/healing.jpg" alt="healing" width="450"/>
+
+<img src="uploads/606e3175f20a9274b9c651f5b8fea151/healingboom.jpg" alt="healingboom" width="450"/>
 
 Regenerates health in a large radius around the nade.
 
 ## Entrap
 
-![Entrap nade](uploads/01d68ab92d511e0a8ee5c0e0905609ab/entrap.png)
-![Entrap boom](uploads/b88705357f80b8216aff7fd545baa94f/entrapboom.png)
+<img src="uploads/15add5938094995589a7d569e9195f24/entrap.jpg" alt="entrap" width="450"/>
+
+<img src="uploads/e846c4dac00937a4bcef89c5fe961291/entrapboom.jpg" alt="entrapboom" width="450"/>
 
 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.
 
 ## Veil
 
-![Veil nade](uploads/e1f01cf95af8e73403a7652836427195/veil.png)
-![Veil boom](uploads/a696bd29d305c0d58ec1a6c18cbaae0b/veilboom.png)
+<img src="uploads/9ad5f03fe196de135e03f281cdd4cc62/veil.jpg" alt="veil" width="450"/>
+
+<img src="uploads/88071dccb47d650aacd31c719eadb6b6/veilboom.jpg" alt="veilboom" width="450"/>
 
 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.
 
 # Pokenade 
 
-![Monster nade](uploads/fbdb7eb49088219c3acc3095e4254a6a/monsternade.png)
-![Monster boom](uploads/6441f147f90aba34812ebc3cb733caa7/monsternadeboom.png)
+<img src="uploads/3a0322703abb471d604d3b65b778bd53/monsternade.jpg" alt="monsternade" width="450"/>
+
+<img src="uploads/f453f36f7b04dd48c0747fc9075f4895/monsternadeboom.jpg" alt="monsternadeboom" width="450"/>
 
 Spawns a monster. Four monsters can be alive at one time. Options include:
 
@@ -90,7 +98,9 @@ Spawns all of the above and a marine at random.
 
 ## Notes for developers
 
-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:
+**Nades source codes are in this [directory](https://gitlab.com/xonotic/xonotic-data.pk3dir/-/tree/master/qcsrc/common/mutators/mutator/nades).**
+
+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):
 
 `g_nades 1 // activate nades in the game`
 
@@ -98,14 +108,24 @@ If you are creating a server for yourself, to play with the nades, you need to a
 
 `set g_nades_bonus 1 // adding number of extra nades when it's obtained after time bonus`
 
-`set g_nades_bonus_client_select 1`
+`set g_nades_bonus_client_select 1 // allow client side selection of bonus nade type`
 
-`set g_nades_bonus_type 3 // limit of number of nades when a player had`
+`set g_nades_bonus_max 3 // maximum number of bonus grenades`
+
+`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`
 
 `set g_nades_bonus_score_time 5 // time when someone is scoring, makes adding fast one nade extra more`
 
 `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`
 
+`set g_nades_nade_lifetime 3.5`
+
+`set g_nades_nade_maxforce 2000`
+
+`set g_nades_nade_minforce 400`
+
+`set g_nades_nade_newton_style 0 // 0 is absolute, 1 is relative (takes into account player speed), 2 is something in between`
+
 `set g_nades_napalm_ball_damage 110 // napalm explosion damage`
 
 `set g_nades_napalm_ball_lifetime 4 // napalm burning time after exploded`
@@ -116,8 +136,6 @@ If you are creating a server for yourself, to play with the nades, you need to a
 
 `set g_nades_nade_refire 10`
 
-`set g_nades_spawn_count 1`
-
 `set g_nades_veil_radius 720 // veil orb radius size`
 
 `set g_nades_veil_time 6 // veil orb time`
@@ -130,6 +148,9 @@ If you are creating a server for yourself, to play with the nades, you need to a
 
 `set g_nades_ice_explode 1 // Whether the ice nade should explode again once the ice field dissipated`
 
-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 it's necessary.
+`set g_nades_spawn_count 1 // number of times player will spawn at their spawn nade explosion location`
+
+`set g_nades_spread 0.04 // random spread offset of throw direction`
+
 
-**Nades source codes are in this [directory](https://gitlab.com/xonotic/xonotic-data.pk3dir/-/tree/master/qcsrc/common/mutators/mutator/nades).**
\ No newline at end of file
+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.
\ No newline at end of file