Black Mesa

Black Mesa

35 ratings
Quick Grenade Button (Roll/Throw w/ Cooking)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
462.000 B
Dec 28, 2020 @ 9:39am
1 Change Note ( view )

Subscribe to download
Quick Grenade Button (Roll/Throw w/ Cooking)

Description
A simple script for quick grenade throws and rolls, with support for cooking grenades. It quickly switches to grenades and then to the last weapon after throwing one.

-EDIT 2-
GraceCB asked some good questions, so see comments 6-10 (GraceCB's question, followup, and my four replies) to get a bit more understanding of how the script works if you feel like doing it for other weapons or changing it in some way, and also for why the weapon you have equipped fires when you have no grenades and press the button.
Also know that edits to the script timing (again, see the comments) can be tested line by line in the developer console. Although each time I would overwrite the same alias name because you don't want to have to restart the game to reset them, also "unbind" (button name) unbinds buttons, too.


-EDIT-
If you DO use it and like it, kindly do me a favor and leave a comment, a favorite, anything, just so I have the satisfaction of knowing I helped you out, and so I know posting this wasn't a TOTAL waste of time.
I don't plan on doing anything else with this, but if you have ideas to make it better, throw 'em my way so I can either (1) post a link to your version here OR (2) just update this page with it, whichever you prefer.
-END OF EDITS-

-ORIGINAL POST- Due to the way it's scripted, don't click the button super fast, (like, really, really fast), or some weird stuff happens with weapon switching and the grenade won't be thrown. On the plus side, if you didn't mean to press the button and only bumped it, the grenade wouldn't be thrown.
To enable, subscribe and enter "exec QuickGrenade" into the console when you load your game after opening the game.
To throw/roll press the corresponding button and release it, to cook the grenade hold it down for a moment longer.
It's mapped to MOUSE5 for throwing, MOUSE4 for rolling. To change this, don't subscribe to the mod, just create a text file called QuickGrenade.cfg in (the folder i wrote before, "%\steamapps\common\Black Mesa\bms\cfg\", may get overwritten with updates, so actually us this-->) "%\steamapps\common\Black Mesa\bms\custom\QuickGrenade\cfg\" (or just add it to your autoexec.cfg and "exec autoexec" on loading instead) , and paste the following script with MOUSE5 (keep all inner quotes) replaced with your desired throw button found on (https://developer.valvesoftware.com/wiki/Bind), and MOUSE4 with your desired roll button:

alias "+grenaderoll" "use weapon_frag;wait 30;+attack2;"
alias "-grenaderoll" "wait 40;-attack2;wait 115;lastinv"
bind "MOUSE4" "+grenaderoll"
alias "+grenadethrow" "use weapon_frag;wait 30;+attack"
alias "-grenadethrow" "wait 40;-attack;wait 115;lastinv"
bind "MOUSE5" "+grenadethrow"
23 Comments
just some game cheater Feb 5, 2022 @ 11:38pm 
alias "+grenaderoll" "use weapon_frag;wait 30;+attack2;"
alias "-grenaderoll" "wait 40;-attack2;wait 115;lastinv"
bind "MOUSE4" "+grenaderoll"
alias "+grenadethrow" "use weapon_frag;wait 30;+attack"
alias "-grenadethrow" "wait 40;-attack;wait 115;lastinv"
bind "MOUSE5" "+grenadethrow"
XIIICte Sep 17, 2021 @ 7:38am 
dear bryant thanks for really game improving add on. Is there any way to make it works auto when you open game anything without wirte exec QuickGrenade to console?
magazine permafrost Mar 13, 2021 @ 3:35am 
alias "+quickcrowbar" "use weapon_crowbar;wait 30;+attack;"
alias "-quickcrowbar" "wait 20;-attack;wait 50;lastinv"
bind "F" "+quickcrowbar"

:0
magazine permafrost Mar 13, 2021 @ 3:26am 
do you think this could also be edited slightly to work as a quick crowbar? :lunar2020thinkingtiger:
magazine permafrost Mar 9, 2021 @ 10:58pm 
i love this so much
ArcTheWolf Feb 24, 2021 @ 4:10pm 
I never understood why they had quick grenade throwing in the game and then took it out. It was one of the best QoL improvements in my opinion because grenades go almost entirely unused because of how much of a pain in the ass it is to equip and then throw them given how massive HL1's arsenal is compared to future HL games.
bryantn3  [author] Jan 4, 2021 @ 12:16pm 
Thanks, though, for your op.
bryantn3  [author] Jan 4, 2021 @ 12:15pm 
I expected a worse reply. My apologies, I was very tired, and very drunk... Holiday season is rough for me...
λ LIFE IS PAIN! λ Jan 3, 2021 @ 9:01am 
\ :
λ LIFE IS PAIN! λ Jan 2, 2021 @ 5:24pm 
nice