Raised This Month: $32 Target: $400
 8% 

Ultimate Grenade Control (Nomexous)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Zenith77 (33)
Nomexous
Member
Join Date: Oct 2007
Old 01-12-2008 , 01:57   Ultimate Grenade Control (Nomexous)
Reply With Quote #1

Ultimate Grenade Control (by Nomexous)

Updated to version 2.0

Allows an admin with ADMIN_SLAY level access to control what happens when grenades are used.

Access the settings menu with the console command "amx_grenade_control". It's not recommended that you alter the "grenade_*_mode" cvars via the console. New settings will be applied at the start of the next round. The admin can choose whether or not to alert players when the grenade settings change.

HE Grenades:
(0) Normal. Grenade acts as expected.
(1) HE will vanish when thrown.
(2) HE will not explode, no matter how long you wait.
(3) HE will explode only when it's not possible to damage other players.
(4) HE will explode as soon as it can damage the thrower and no one else.
(5) HE will stick to the chest of the thrower and explode when no one else is in range.

Flashbangs:
(0) Normal.
(1) Flash will vanish when thrown.
(2) Flash won't go off, no matter how long you wait.
(3) Flash will go off only if it can't blind other players.
(4) Flash will go off only if it can blind the thrower and no one else.
(5) Flash will stick to the chest of the thrower and go off only when no one else can be blinded by it.

Smoke grenades:
(0) Normal.
(1) Vanish.
(2) No detonation.

This is a Fakemeta heavy plugin. There's lots of EngFunc_FindEntityInSphere and EngFunc_TraceLine, especially with the more severe grenade controls.

CVARS (all controllable through "amx_grenade_control" menu):

grenade_he_mode (0|1|2|3|4|5)
grenade_flash_mode (0|1|2|3|4|5)
grenade_smoke_mode (0|1|2)
grenade_announce_changes (0|1)
grenade_allow_teamnade (0|1)
grenade_allow_teamflash (0|1)

Feel free to suggest optimizations, new grenade modes, or other features.

The source code is heavily commented; check there if you need more information on grenade modes.

Versions:
[1.0]
- Initial release.
[2.0]
- Forward unregistered when all grenades are in normal mode.
- Removed colored announcement messages.
- Now determines grenade type by checking offset 114 instead of model.
- Option to allow team attack with grenades or team flash (only in modes other than normal).
- Grenade modes are now aware of friendly fire.
- Various optimizations.
Attached Files
File Type: sma Get Plugin or Get Source (u_gren_ctrl.sma - 4199 views - 17.3 KB)

Last edited by Nomexous; 01-18-2008 at 21:15.
Nomexous is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 01-12-2008 , 03:12   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #2

nice mod i like it
__________________
mando127 is offline
Send a message via Skype™ to mando127
adidas
BANNED
Join Date: Jan 2007
Old 01-12-2008 , 04:04   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #3

error code :
/home/groups/amxmodx/tmp3/phpVcEs4I.sma(119) : error 088: number of arguments does not match definition

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpVcEs4I.amx (compile failed).
adidas is offline
Old 01-12-2008, 04:05
adidas
This message has been deleted by adidas. Reason: working
ali_zkz
Member
Join Date: Jan 2006
Old 01-12-2008 , 10:34   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #4

maybe it's better to write your default cvars values
ali_zkz is offline
Nomexous
Member
Join Date: Oct 2007
Old 01-12-2008 , 13:54   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #5

Quote:
Originally Posted by ali_zkz View Post
maybe it's better to write your default cvars values
Sorry, I don't understand. Could you explain?
Nomexous is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 01-12-2008 , 23:43   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #6

Quote:
Originally Posted by ali_zkz View Post
maybe it's better to write your default cvars values
Hey means to list what the default cvars are for this plug in with out changing anything and just installing the plugin
FuZ!on is offline
ali_zkz
Member
Join Date: Jan 2006
Old 01-13-2008 , 00:25   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #7

Quote:
Originally Posted by FuZ!on View Post
Hey means to list what the default cvars are for this plug in with out changing anything and just installing the plugin
yeah u r so clever
ali_zkz is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 01-13-2008 , 01:19   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #8

Quote:
Originally Posted by ali_zkz View Post
yeah u r so clever
Why thank you kid sir. I do what I can

By the way, nice plug in
FuZ!on is offline
ABC3Q
Junior Member
Join Date: Mar 2007
Old 01-13-2008 , 05:13   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #9

A better idea for the flash would be, only effective towards the opposite team.
__________________
| Account has been abandoned |
ABC3Q is offline
Nomexous
Member
Join Date: Oct 2007
Old 01-18-2008 , 20:22   Re: Ultimate Grenade Control (Nomexous)
Reply With Quote #10

Plugin has been updated.
Nomexous is offline
Old 01-18-2008, 20:27
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: forum bug, post was unavaible
Reply


Thread Tools
Display Modes

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 12:01.


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