Raised This Month: $7 Target: $400
 1% 

Hobo Nade Management ( FINAL )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Emp` (115)
hoboman
Senior Member
Join Date: Jul 2007
Old 03-27-2008 , 20:21   Hobo Nade Management ( FINAL )
Reply With Quote #1

Hobo Nade Management

Description
:
This plugin was made with "nade drops" in mind and will prevent a player on a team from buying more than x nades per round and also prevent players from throwing a nade x seconds since the beginning of a new round.
Requirements:
Cvars:
hobo_t_maxhe x ( default is 2 ) - prevent a Terrorist player from buying more than x HE Grenades a round
hobo_ct_maxhe x ( default is 2 ) - prevent a Counter Terrorist player from buying more than x HE Grenades a round
hobo_t_maxflash x ( default is 3 ) - prevent a Terrorist player from buying more than x Flash Bangs a round
hobo_ct_maxflash x ( default is 3 ) - prevent a Counter Terrorist player from buying more than x Flash Bangs a round
hobo_t_maxsmoke x ( default is -1 ) - prevent a Terrorist from buying more than x Smoke Grenades a round
hobo_ct_maxsmoke x ( default is -1 ) - prevent a Counter Terrorist from buying more than x Smoke Grenades a round
hobo_slap_damage x ( default 10 ) - slap a player for x damage after he exceeded his maxnade limit
hobo_HE_time x ( default 6 ) - a player may only throw a HE Grenade after x seconds of a new round
hobo_flash_time x ( default 6 ) - a player may only throw a Flash Bang after x seconds of a new round
hobo_smoke_time x ( default 6 ) - a player may start smoking only throw a Smoke Grenade after x seconds of a new round
Plugin Notes:
- setting any of the hobo_(c)t_max(nade) cvars bellow zero will stop the plugin from limiting the nades of the team
- this plugin was made with nade drops in mind, but if you don't run that plugin on your server then you may comment out the NADE_DROPS define for slightly better plugin efficiency

Credits:
VEN - for his "new round/spawn/round start/ round end tutorial"

Changelog:
  • 1.1
    • completely rewritten the plugin using hamsandwich for MUCH better efficiency
    • fixed an annoying, rare bug where a player could get punished for nade spamming when he would kill someone or shoot a hostage while in the buyzone
  • 1.2
    • minor optimizations
    • removed the cstrike module and replaced the natives with fakemeta

THE WEB COMPILER IS TOO OLD TO COMPILE THE NEWEST VERSION OF THIS PLUGIN. IF YOU CANNOT COMPILE LOCALLY THEN DOWNLOAD THE .AMXX FILE AND DO NOT BUG ME ABOUT IT.
Attached Files
File Type: amxx hobo_nade_manager.amxx (7.8 KB, 928 views)
File Type: sma Get Plugin or Get Source (hobo_nade_manager.sma - 2812 views - 7.7 KB)
__________________

Last edited by hoboman; 07-23-2008 at 20:52. Reason: update
hoboman is offline
Old 03-28-2008, 05:41
ConnorMcLeod
This message has been deleted by Emp`. Reason: BUMPING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 03-29-2008 , 19:26   Re: Hobo Nade Management
Reply With Quote #2

GJ nice plugin.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 04-01-2008 , 13:07   Re: Hobo Nade Management
Reply With Quote #3

Seems to be a great plugin! It also forbid buying by the rebuy commands?
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 04-01-2008 , 13:33   Re: Hobo Nade Management
Reply With Quote #4

well it doesn't technically forbid...it slaps the player and takes away his newly bought nades

and yes, it works with buy, autobuy and rebuy
__________________
hoboman is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 04-01-2008 , 15:40   Re: Hobo Nade Management
Reply With Quote #5

I just tested the plugin and it indeed prevent 100% grenade spam or to use more grenades as allowed. I will use this plugin on my public server, thanks hoboman for releasing this usefull plugin!
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.

Last edited by Maurice; 04-01-2008 at 15:58.
Maurice is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 04-03-2008 , 00:48   Re: Hobo Nade Management
Reply With Quote #6

Is this an error? Max smoke grenade value is -1?

Code:
t_nadeCount[2] = register_cvar("hobo_t_maxsmoke", "-1")
ct_nadeCount[2] = register_cvar("hobo_ct_maxsmoke", "-1")
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-03-2008 , 01:09   Re: Hobo Nade Management
Reply With Quote #7

Quote:
Originally Posted by hoboman's notes
- setting any of the hobo_(c)t_max(nade) cvars bellow zero will stop the plugin from limiting the nades of the team
__________________
Arkshine is offline
Vm|Mayhem
Senior Member
Join Date: Feb 2005
Location: Murrieta, CA.
Old 04-04-2008 , 03:23   Re: Hobo Nade Management
Reply With Quote #8

ah, missed that..thanks.
Vm|Mayhem is offline
Send a message via AIM to Vm|Mayhem
tentative
Junior Member
Join Date: Feb 2007
Old 04-14-2008 , 08:21   Re: Hobo Nade Management
Reply With Quote #9

This is definately the best nade-spam plugin I've tried, and i've tried them all. Really good job!
__________________
tentative is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 04-14-2008 , 12:55   Re: Hobo Nade Management
Reply With Quote #10

Updated:

1.1
* completely rewritten the plugin using hamsandwich for MUCH better efficiency
* fixed an annoying, rare bug where a player could get punished for nade spamming when he would kill someone or shoot a hostage while in the buyzone

I highly recommend to everyone who uses the old version of this plugin to upgrade to the new version as it is WAY more efficient
__________________
hoboman is offline
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 03:21.


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