Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NEED HELP] grenade type switching

#1
(Not sure how "official" this should be...)
Can somebody share their key bind of the grenade type switching?
Reply

#2
I didn't know you could do a keybind to switch grenade types. Sounds like something someone would do to be even more annoying than usual, ha ha.  All I know is you hit F8 while in a game that allows grenades and the grenade type settings are in there along with some other settings.
iMac OS Monterey 12.1
Xonotic 0.8.2 autobuild
Reply

#3
Here's one approach that includes all of them on a single bind:


Code:
bind X "toggle cl_nade_type 1 2 3 4 5 6 7 8; show_message; sendcvar cl_nade_type"

alias show_message "nade_message_${cl_nade_type}"

alias nade_message_1 "cprint ^7Normal^7!"
alias nade_message_2 "cprint ^1Napalm^7!"
alias nade_message_3 "cprint ^4Nitro^7!"
alias nade_message_4 "cprint ^6Translocate^7!"
alias nade_message_5 "cprint ^3Spawn^7!"
alias nade_message_6 "cprint ^5Heal^7!"
alias nade_message_7 "cprint ^2Pokenade^7!"
alias nade_message_8 "cprint ^9Entrap^7!"

Alternatively, a single bind could look like this:

Code:
bind X "setreport cl_nade_type 3; cprint ^4Nitro^7!"

There is also a trick that could put them on the number keys temporarily and switch back to weapons after use, but that would take a lot more setup, and I'm not sure if it would be viable for gameplay.
[Image: 230.png]
Reply

#4
(08-13-2017, 05:50 AM)Lyberta Wrote: Is this in master? I thought different grenades are only on the Jeff server.

yes

Code:
~/xonotic/xonotic (master=)% grep "case NADE_TYPE" **/*.qc
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_NAPALM:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_ICE:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_TRANSLOCATE:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_MONSTER:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_SPAWN:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_HEAL:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_ENTRAP:
data/xonotic-data.pk3dir/qcsrc/common/mutators/mutator/nades/nades.qc: case NADE_TYPE_NORMAL:
Reply

#5
Thanks, @Mario.
-z-, your username is "xonotic"? lol
Reply

#6
I asked @Arch_[guh-noo+linox] about his bind, while forgetting that I actually had this in my keybind already but never got used to use it. Anyway, Arch's bind is slightly different and useful:
Code:
# offensive (fire, ice, teleport, and monster):
toggle cl_nade_type 2 3 4 7; sendcvar cl_nade_type

# defensive (healing, spawn, slowmo, and veil)
toggle cl_nade_type 6 5 8 9; sendcvar cl_nade_type


Some extra stuff he shared with me, although unrelated to nades:

Code:
# adjust zoom
bind MWHEELUP "toggle cl_zoomfactor 10 8 6 4 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2
bind MWHEELDOWN "toggle cl_zoomfactor 4 6 8 10 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8"
I've been using fov instead. Not sure how they differ.

Code:
# in-game private message helper (shows player ID number)
bind APOSTROPHE "status 2; commandmode tell"
Reply

#7
xonotic granade
nade-type keyboard shortcuts
[Image: jaNiFtx.png]

In settings > input
choose an empty userbind## > Change Key > choose a key for your new shortcut.
For example, choose the letter 'n' for Napalm-Nade.
Choose Edit, to edit your new keybind shortcut.
Type in a Name such as Napalm Nade
Then in the Command When Pressed line put:
  setreport cl_nade_type 2
> Save

That's it.

To change your Monster Nade to different kinds of Monsters, you will need additional shortcut keys for that, as per below.



setreport cl_nade_type 1 = Normal

setreport cl_nade_type 2 = Napalm

setreport cl_nade_type 3 = Nitro

setreport cl_nade_type 4 = Translocate

setreport cl_nade_type 5 = Spawn

setreport cl_nade_type 6 = Healing

setreport cl_nade_type 7 = Pokenade

setreport cl_nade_type 8 = Entrap

setreport cl_nade_type 9 = veil


Change Monster Pokenade to different Monsters:

cl_pokenade_type anyrandom

cl_pokenade_type zombie

cl_pokenade_type spider

cl_pokenade_type shambler

cl_pokenade_type mage

cl_pokenade_type enforcer

cl_pokenade_type ogre

cl_pokenade_type afrit

cl_pokenade_type creeper

cl_pokenade_type scrag

cl_pokenade_type soldier

cl_pokenade_type demon
iMac OS Monterey 12.1
Xonotic 0.8.2 autobuild
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Slower weapon switching in latest autobuild? Maddin 3 4,108 05-31-2013, 06:21 AM
Last Post: Maddin

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-