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

Anti FastFire v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   twistedeuphoria (82)
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-15-2005 , 02:19   Anti FastFire v1.2
Reply With Quote #1

IS THIS SCRIPT SAFE FOR ME?
Due to many peope being worried that this plugin might be hazardus for their server since it easely will ban people that might not have cheated, i will clarify this:
This anti-cheat plugin is developed to be used for normal servers - not funservers. For those servers who not always have admins online, hosting normal cs servers using normal maps and who dont want their users abusued by speedhackers or rapidfirers - this is theirs plugin.

Use this on funservers at own risk.


Anti FastFire v1.1
This pluggin will detect and ban people that uses any external application that speeds up counter-strike either through the get_tick function or even through an application such as !xSpeedPro (http://www.foredu.com/speed_up)

Sorry if i am offending anybody by posting a link to a application that may be used as a cheat in counter-strike, but its better to deal with a problem insteand of pretending it doesnt exist - right?

Like my previous plugin, anti speedhack, this one is equaly simple. It measures the players active Bp/S - fired Bullets per Second. Normaly, a player is unable to fire (with normal weapons) more than MAXIMUM 14 bullets over a period of 1 second - where awm goes as low as about 0.6Bp/S to most rifles which i have mesured at max of 13Bp/S.

Simple enough, if anyone is firing a weapon faster than a cerain Bp/S you have a dirty cheater on your hands ;)

Modules:
None required / default libraries

Instructions
By a controllable cvar you can turn this plugin on/off;
"amx_af" | 1=on, 0=off - Default value = 1-on

Another cvar adjusts the sensetivety;
"amx_af_max" | Default value = 16 - Max Bp/S allowed before ban

New in v1.2:
"amx_af_amxban" | def.val=0 - Use amxbans? (requires amxbans plugin) 1=On ; 0=Off
"amx_af_bantime" | def.val=30 - Ban users for how long? (requires amxbans plugin)


Read the full included ReadME file before downloading the plugin!

Credits
XxAvalanchexX and xeroblood - For posting most of what i made my codebase (http://forums.alliedmods.net/showthread.php?t=16877)
... and your truly, DarkSnow

Please send me any feedback, questions ect either on amxx forums (http://www.amxmodx.org/forums) or;
[email protected] - msn


Version history
v1.2 ] Added amxbans support
v1.1 ] Dissabled the debug text

Quote:
WARNING #2
I have not 100% tested it since the program i used to speed up the CS client also speeded up the dedicated
server equaly making it impossible for the server to know any timely difference. Im truly sory about that,
but as of right now i cant setup any other server so im hoping someone with the resources of doing so
will send me feedback about how it went.
To clear things up
In the readme.zip, you will find 2 documents - one is the complete readme and the other is the Bp/S table for all weapons in normal CS. Read the readme file and if you have any questions regarding Bp/S take a look at the document files.

License Model
The license form of this plugin is released open source under the terms of the GPL v2 which can be found here - http://www.gnu.org/licenses/gpl.html

COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.

Version 1.2 - Final
Legal: From v1.2, this plugin is OSI certified free software, meaning that it may be used even in commercial services, which were not allowed in previous versions.

Version difference: From v1.2, amxbans support has been added. Read more information above.

Software status: This plugin version is final, and will be unsuported futher on. For later updates on this plugin, lookup the pest spray plugin at darkdreams studios.

Thank you
Attached Files
File Type: sma Get Plugin or Get Source (anti_fastfire.sma - 8044 views - 5.6 KB)
File Type: zip readme.zip (2.5 KB, 4027 views)
__________________

Last edited by DarkSnow; 09-21-2006 at 23:07. Reason: revision 1.2f
DarkSnow is offline
Send a message via MSN to DarkSnow
Curryking
Veteran Member
Join Date: Jun 2004
Location: 51.22°N / 6.77°E
Old 10-15-2005 , 03:31  
Reply With Quote #2

What's about amxbans-support? Would be nice! ;-)

Cheers, Curry
__________________
Full speed - no brakes!
Curryking is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-15-2005 , 03:39  
Reply With Quote #3

Quote:
Originally Posted by Curryking
What's about amxbans-support? Would be nice! ;-)

Cheers, Curry
Yea, i will look into it.
Oh, and the code posted above generates a highly annoying text per second used for debugging. Im revising to v1.1.
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
kILL-jOY
Member
Join Date: Jul 2005
Old 10-15-2005 , 10:16  
Reply With Quote #4

so would this accuse people who use powers on my server hackers???
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 10-15-2005 , 10:32  
Reply With Quote #5

Its nice to see other ppl try to make anti cheat plugins. But i noticed one thing.

Your allways checking against a set max rounds pr second. And the diffrent weapons have diffrent rate of fire. Perhaps have a diffrent "Max" on the diffrent weapons
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-15-2005 , 14:18  
Reply With Quote #6

Quote:
Originally Posted by EKS
Its nice to see other ppl try to make anti cheat plugins. But i noticed one thing.

Your allways checking against a set max rounds pr second. And the diffrent weapons have diffrent rate of fire. Perhaps have a diffrent "Max" on the diffrent weapons
Yea, perhaps i should do that It should work fine though, only thing is that it wont detect fastfiring pistols with less than 16 bullets in mag.
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-15-2005 , 16:53  
Reply With Quote #7

Which is why it wont work till you test around and see how many bullets you can fire a second with each gun. And please test with using mouse wheel as firing because you do shoot faster with it especially using dualies.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-15-2005 , 17:06  
Reply With Quote #8

Quote:
Originally Posted by Suicid3
Which is why it wont work till you test around and see how many bullets you can fire a second with each gun. And please test with using mouse wheel as firing because you do shoot faster with it especially using dualies.
Well, if you look at the readme file i have included a doc with a list over all cs weapons and their respective Bp/S rates. The duals are the fastest sidearm true, but its difficult to go over 16Bp/S. Specialy if you are using a script instead of mwheel.

Surely i could add support for individual max rates for all weapons (and i probbably will to) but imo 16Bp/S is a gool max value for starters.

P.S to my knowlege in some servers/leagues - binding mwheelup/down to +fire equals cheating
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 10-15-2005 , 17:22  
Reply With Quote #9

Quote:
Originally Posted by kILL-jOY
so would this accuse people who use powers on my server hackers???
Sorry, didnt notice your post.

Your topic is fuzzy, and i will assume that you are reffering to superhero mod or warcraft mod. To clarify, if any person successfully fires a weapon at a speed of more then 16 bullets per second - just over 3Bp/S above normal (adjustable by cvar) - that person will be banned.

If you are running any funmod script/server that makes people shoot faster they will all get banned if their Bp/S exeeds cvar defined max.
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-15-2005 , 22:06  
Reply With Quote #10

I'm a bit confused, Would this not register data to the wrong slot ?

Code:
g_nCurWeapon[id-1]


E.g. Player in slot 14 has fired, but data is registered to a player in slot 13 ?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 00:34.


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