AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Sniper control v1.2 (https://forums.alliedmods.net/showthread.php?t=867)

willyumyum 04-05-2004 02:53

Sniper control v1.2
 
1 Attachment(s)
Sniper Control 1.2
This plugin is slightly different from other 'sniper control' plugins that may be out there... Simply put, plugins that force you to auto drop the sniper rifle if the set limit has been reached are exploitable, and you can easily get around them...

So, I've developed this plugin that does not let you even pick up the sniper rifle if the limit has been reached.

All sniper rifles are included in the 'checking'
a special #define is in the code for including or excluding the scout from the count, but the AWP and auto snipers are included...

This plugin requires the engine module to be in use on your server...

Test it out, it's still in beta stages so PLEASE report any bugs to this thread... ( sorry if the code is slightly messy, i havn't had time to clean it up )

There is a config file needed ( or, rather, recommended for this plugin ):
it goes in 'addons/amxx/configs/' and is called 'sniper_control.cfg'
cvars to use in this version ( 1.1 ):
  • mp_sniper_control // 1 = on, 0 = off
    sc_max_snipers_t // number of sniper rifles for the T team
    sc_max_snipers_ct // number of sniper rifles for the CT team

There is also an optional disabled maps file
If you choose to use this file simply create a file called 'sc_disabled_maps.cfg' in '/addons/amxx/configs/' and list maps in which you would like the plugin to be disabled.

* NOTE: if you DO use 'sc_disabled_maps.cfg' then you must add mp_sniper_control 1 to your 'sniper_control.cfg' file in order for it to re-enable the plugin on non-disabled maps.

Enjoy, and remember to PLEASE report bugs to this thread.. Thank you :)

/ - Changelog -------------------------------------- */
v1.0
Initial public release
v1.1
added per-map disabled via 'sc_disabled_maps.cfg'
de-hardcoded config file paths from plugin
v1.2
fixed issue with scouts being blocked with INCLUDE_SCOUTS 0

BigBaller 04-05-2004 02:59

Nice

P.S

Do you plan on releasing your grenade control plugin, that was really usefully for smoke nade spammers :)

willyumyum 04-05-2004 03:00

Yeah, I'll work on converting that over to amxX and post it up, as well :)

~will

Pomme 04-05-2004 18:38

wow I just requested this plugin and right after I browse here and find it :D

Is it just for the awp or all sniper rifles? I'll read the sma but updating the plugin definition would be nice too as most ppl could assume awp only even if it says sniper rifle :)

EDIT: ok it's all sniper rifle :D ..including scout! :shock: haha very good work I test it on my 24 slots pub and report back ASAP. Can i simply strip down
Code:

"models/w_scout.mdl",              // CSW_SCOUT
on line 35 if I dont want to include the scout in the sniper limit?

EDIT 2 : OMG dude this plugin totally rocks there's a define to include the Scout or not! forgive me I was just so exited to find such a plugin I didn't read the whole sma :oops:

Pomme 04-05-2004 23:19

I played for a 2-3 hours tonight and didnt noticed any glitch, seems to be working very well :D

I gave it a 5/5 usefull!

[BioMaN]**neogun** 04-06-2004 09:05

possible to add on the 'sniper_control.cfg' or other files the possibility to disable this plugs for map awp_ or other map who use only sniper rifles ?

willyumyum 04-06-2004 09:25

yes, that's a possiblity - or there is a plugin ( i don't know if it's been swotched over to amxX yet ) that lets you use per-map configs ... I'll look into adding support to disable for maps within a config file..

~will

[BioMaN]**neogun** 04-06-2004 09:35

yes i find this plug for map cfg ...

but if your plug can recognize awp_(map) or scout_(map) or in general all maps who dont begin by cs_ de_ as_ etc ... this can be very usefull :wink:

willyumyum 04-06-2004 10:32

Plugin updated
per-map stopping of the plugin is now possible:)

knekter 04-06-2004 10:47

nice
 
nice, now when I play awp_map I dont have to go through the hassle of changing everything!


All times are GMT -4. The time now is 17:16.

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