Real_PUA
May 8 2005, 10:03 AM
I use this medpack script:
alias +med "say_team I need a medpack!"
alias -med "impulse 10"
bind "z" "+med"
Sometime when I open console and then close it I call for a medpack (But I dont say "I need a medpack"). Its confusing, and im sure annoying for comms. Any ideas?
obuh
May 8 2005, 10:39 AM
| CODE |
alias med "say_team I need a medpack!; impulse 10" bind "z" "med" |
That should fix it. It's because when you leave the console, the "-" part of the script is executed if you have a "+" something bound.
Real_PUA
May 8 2005, 07:04 PM
Okay you are correct that opening and closing the console activates the minus (-) commands. I changed the medpack script so there is no minus command in it and now I call for ammo! haha I need to change that one too. Also, my gun fires a bullet due to my pistol script. Why does the console activate the minus commands? Is there some purpose that it serves?
Real_PUA
May 8 2005, 07:06 PM
oops {double post}. Thanks for your help too.
a_civilian
May 8 2005, 08:21 PM
| QUOTE |
| Also, my gun fires a bullet due to my pistol script. |
You can prevent this by having your console key unbind your attack key as well as close the console, and then creating an alias that rebinds it on the unpress and binding that alias to some unused key like joy1.
Like so:
| CODE |
alias unbindm1 "unbind mouse1" bind "`" "toggleconsole;unbindm1" alias +rebindm1 alias -rebindm1 "bind mouse1 +pshot" bind joy1 +rebindm1 |
(Change +pshot to whatever your pistol script alias is named.)
The same problem occurs with the escape key, but this fix cannot be applied there because Half-Life/Steam does not allow the escape key to be rebound.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.