Hello y'all
I have a question regarding dynamic binding.
Suppose I have the keyboard key "k" bound to the "screenshot" command. But At times, I would like to have it bound to "dropweapon". I would like these dunctions to be toggled by the key "o".
Could anyone suggest me how to go about this.
Regards
Duke
dynamic key binding
Moderator: Moderators
-
{R.E.D}**Duke Justice**
- Lance Corporal
- Posts: 23
- Joined: Thu Aug 07, 2003 9:09 pm
dynamic key binding
Last edited by {R.E.D}**Duke Justice** on Thu Aug 21, 2003 12:47 am, edited 1 time in total.

-
{R.E.D}**Duke Justice**
- Lance Corporal
- Posts: 23
- Joined: Thu Aug 07, 2003 9:09 pm
Thank you Alcoholic for your prompt answer.
It works just fine.
Is there a way to use the same key and use it as a toggle? Like a fast nades script that exists?
Here is an example:
alias hf1 "hud_fastswitch 1"
alias hf0 "hud_fastswitch 0"
alias fgren grenadeon
alias grenadeon "bind mouse2 +gren; alias fgren grenadeoff; locationprint 10 360 "*****Fast-Nades-On*******"
alias grenadeoff "bind mouse2 +attacksecondary; alias fgren grenadeon; locationprint 10 360 "*****Fast-Nades-Off*******"
alias +gren "hf1; useweaponclass grenade; hf0"
alias -gren "hf1; uselast; hf0"
bind x "fgren"
Thanks in advance if you can help. And thanks again for your post.
Regards
Duke
It works just fine.
Is there a way to use the same key and use it as a toggle? Like a fast nades script that exists?
Here is an example:
alias hf1 "hud_fastswitch 1"
alias hf0 "hud_fastswitch 0"
alias fgren grenadeon
alias grenadeon "bind mouse2 +gren; alias fgren grenadeoff; locationprint 10 360 "*****Fast-Nades-On*******"
alias grenadeoff "bind mouse2 +attacksecondary; alias fgren grenadeon; locationprint 10 360 "*****Fast-Nades-Off*******"
alias +gren "hf1; useweaponclass grenade; hf0"
alias -gren "hf1; uselast; hf0"
bind x "fgren"
Thanks in advance if you can help. And thanks again for your post.
Regards
Duke
Last edited by {R.E.D}**Duke Justice** on Thu Aug 21, 2003 12:47 am, edited 1 time in total.

- CorporalPunishment
- Sergeant
- Posts: 62
- Joined: Mon May 19, 2003 5:25 am
-
{R.E.D}**Duke Justice**
- Lance Corporal
- Posts: 23
- Joined: Thu Aug 07, 2003 9:09 pm