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.
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
Is this in master? I thought different grenades are only on the Jeff server.
Reply

#5
(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

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



Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] Slower weapon switching in latest autobuild? Maddin 3 2,131 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-