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

Sniper control v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   devicenull (200)
willyumyum
Member
Join Date: Mar 2004
Old 04-05-2004 , 02:53   Sniper control v1.2
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (sniper_control.sma - 8998 views - 10.5 KB)
__________________
Victory is Mine !!! ~ Stewie Griffin
Visit my server: 65.39.205.73:27017
http://www.bbfclan.net
willyumyum is offline
Send a message via AIM to willyumyum
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 04-05-2004 , 02:59  
Reply With Quote #2

Nice

P.S

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

BigBaller is offline
willyumyum
Member
Join Date: Mar 2004
Old 04-05-2004 , 03:00  
Reply With Quote #3

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

~will
willyumyum is offline
Send a message via AIM to willyumyum
Pomme
Member
Join Date: Mar 2004
Location: Quebec, Canada
Old 04-05-2004 , 18:38  
Reply With Quote #4

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

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 ..including scout! 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
Pomme is offline
Pomme
Member
Join Date: Mar 2004
Location: Quebec, Canada
Old 04-05-2004 , 23:19  
Reply With Quote #5

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

I gave it a 5/5 usefull!
Pomme is offline
[BioMaN]**neogun**
Member
Join Date: Mar 2004
Old 04-06-2004 , 09:05  
Reply With Quote #6

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 ?
__________________
Il n'existe que deux choses infinies, l'univers et la bêtise humaine... mais pour l'univers, je n'ai pas de certitude absolue.
[Albert Einstein]
[BioMaN]**neogun** is offline
willyumyum
Member
Join Date: Mar 2004
Old 04-06-2004 , 09:25  
Reply With Quote #7

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
__________________
Victory is Mine !!! ~ Stewie Griffin
Visit my server: 65.39.205.73:27017
http://www.bbfclan.net
willyumyum is offline
Send a message via AIM to willyumyum
[BioMaN]**neogun**
Member
Join Date: Mar 2004
Old 04-06-2004 , 09:35  
Reply With Quote #8

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
__________________
Il n'existe que deux choses infinies, l'univers et la bêtise humaine... mais pour l'univers, je n'ai pas de certitude absolue.
[Albert Einstein]
[BioMaN]**neogun** is offline
willyumyum
Member
Join Date: Mar 2004
Old 04-06-2004 , 10:32  
Reply With Quote #9

Plugin updated
per-map stopping of the plugin is now possible
__________________
Victory is Mine !!! ~ Stewie Griffin
Visit my server: 65.39.205.73:27017
http://www.bbfclan.net
willyumyum is offline
Send a message via AIM to willyumyum
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 04-06-2004 , 10:47   nice
Reply With Quote #10

nice, now when I play awp_map I dont have to go through the hassle of changing everything!
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
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 16:12.


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