AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Hobo Nade Management ( FINAL ) (https://forums.alliedmods.net/showthread.php?t=69067)

hoboman 03-27-2008 20:21

Hobo Nade Management ( FINAL )
 
4 Attachment(s)
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.

Vm|Mayhem 03-29-2008 19:26

Re: Hobo Nade Management
 
GJ nice plugin.

Maurice 04-01-2008 13:07

Re: Hobo Nade Management
 
Seems to be a great plugin! It also forbid buying by the rebuy commands?

hoboman 04-01-2008 13:33

Re: Hobo Nade Management
 
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

Maurice 04-01-2008 15:40

Re: Hobo Nade Management
 
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!

Vm|Mayhem 04-03-2008 00:48

Re: Hobo Nade Management
 
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")


Arkshine 04-03-2008 01:09

Re: Hobo Nade Management
 
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


Vm|Mayhem 04-04-2008 03:23

Re: Hobo Nade Management
 
ah, missed that..thanks.

tentative 04-14-2008 08:21

Re: Hobo Nade Management
 
This is definately the best nade-spam plugin I've tried, and i've tried them all. Really good job! :)

hoboman 04-14-2008 12:55

Re: Hobo Nade Management
 
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


All times are GMT -4. The time now is 03:47.

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