Raised This Month: $51 Target: $400
 12% 

Quickly Throwing Grenade (With grenade cooking ability!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
LunaTheReborn
Junior Member
Join Date: Feb 2020
Old 02-24-2020 , 05:07   Quickly Throwing Grenade (With grenade cooking ability!)
Reply With Quote #1

Description
This plugin is simple. It allows you to assign a key to 1-key throwing HE grenade, just like what COD and R6:S do. You may also hold it, but remember, you are also COOKING it just what would happen in those two games.

Settings
If you wish to use your own model instead of my friend's, you may open the sma file then edit line 12~22: you can simply change from HE to FB or SG, and fill your model animation data.

Keybind
Although I registered two cmds, but you only need to bind one:
"+qtg"
for example:
bind MOUSE3 "+qtg" // this will allow you to throw grenades by pressing your mouse wheel.
bind MOUSE4 "+qtg" // this will allow you to throw grenades by pressing your mouse side key.

CVAR
QTG_ProgressBarLength [Int. Default: 20] // [<=0 : Hide progress bar.] [Otherwise: The progressbar length.]
QTG_FuseLengthInSec [Float. Default: -1] // [<=0 : Don't touch anything regarding fuse length.] [Otherwise: Set the fuse length as it says.]

Includes
Just an offset.inc from ....like 7 or 8 years ago? I only edit it once to fix some naming problems.

Tested & Works on
AmxModX 1.8.1
AmxModX 1.8.2
AmxModX 1.9.0 beta

Supported Games
CS:CZ (Latest Steam Ver.)
CS (Latest Steam Ver.)

Reference Books
ReGameDLL_CS project. I take my learning note (in English) inside the plugin, hope you don't mind.

Credits
Matoilet (used to my model partner, who is no longer interested in original CS anymore) for the models included in .zip file.

Bugs you might meet
As I am Chinese, I am saving this .sma in UTF-8 format with Notepad++. This MIGHT cause some compiling problems.
When you suffering from this:
1. Please do accept my apology. I just don't know to convert it to ANSI encoding. My NP++ always turns it back to UTF-8 whenever I re-open it.
2. Delete the first line(remove any non-Latin characters) of my .sma and click "Save As" with Windows Notepad, choose "ANSI" encoding from the lower part of the panel. After re-saved it, try it again, it should be fine now.
3. There is a UTF8 character in line 211 of the source file. I chose the character for the customized progress bar. Should you met any compiling problem, replace that character with an ASCII character will do.
Attached Files
File Type: zip QuickGrenade.zip (502.0 KB, 130 views)

Last edited by LunaTheReborn; 03-23-2021 at 04:34. Reason: Edit the title with update.
LunaTheReborn is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode