AlliedModders

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

DarkSnow 10-15-2005 02:19

Anti FastFire v1.2
 
3 Attachment(s)
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

Curryking 10-15-2005 03:31

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

Cheers, Curry

DarkSnow 10-15-2005 03:39

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.

kILL-jOY 10-15-2005 10:16

so would this accuse people who use powers on my server hackers???

EKS 10-15-2005 10:32

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

DarkSnow 10-15-2005 14:18

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.

Xanimos 10-15-2005 16:53

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.

DarkSnow 10-15-2005 17:06

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.

:rtfm: 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 10-15-2005 17:22

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.

Zenith77 10-15-2005 22:06

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 ?

Xanimos 10-16-2005 01:06

Quote:

Originally Posted by Zenith77
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 ?

Nope. He defines the variable as g_nCurWeapon[32] for a 32 man server. So he saves data as id-1 so you dont have an empty array. Like when you use g_nCurWeapon[33] then g_nCurWeapon[0] will never be used. So this way he saves data. As long as he always refers to the variable as id-1 then he wont have a problem.

DarkSnow 10-16-2005 02:32

It does not realy matter anyway since im not using any of the data in question :wink:

Its just there to make sure that the client is firing, not realoading or something like that

AngryMouse 10-23-2005 11:17

I really liked the sound of this plugin so put it on my server straight away. I noticed a lot of people were getting banned so I tested it myself, shot a full clip into someones head from point blank with an M4 and bam! I was banned from my own server. This is a great idea so please keep working on it but at the moment its unsafe for my server.

DarkSnow 10-24-2005 19:01

Quote:

Originally Posted by AngryMouse
I really liked the sound of this plugin so put it on my server straight away. I noticed a lot of people were getting banned so I tested it myself, shot a full clip into someones head from point blank with an M4 and bam! I was banned from my own server. This is a great idea so please keep working on it but at the moment its unsafe for my server.

Ouch, terrible sorry about it. I tested it myself, pumping rounds after rounds and i didnt get booted myself for it =/ Though on the testserver it banned cheaters that you could tell were cheaters (testserver non vac2)


You can however reglate the sensetivety of the rate of fire by "amx_af_max" whitch is by deffault 16, try increasing it to something closer then 20 and those problems should go away. Sorry about your bans and thanks for the feedback.

genesis 10-26-2005 04:47

I recommend making an advisory mode where it will display information to admins only about possible* cheating. This would be a separate mode but it could be permanent, as many ppl don't like leaving everything automated but don't mind some automation.

DarkSnow 10-26-2005 22:07

Quote:

Originally Posted by genesis
I recommend making an advisory mode where it will display information to admins only about possible* cheating. This would be a separate mode but it could be permanent, as many ppl don't like leaving everything automated but don't mind some automation.

Yea i guess i should :)

It will be done in the merged version though, i dont think i will evolve this any futher.

RasterMan 10-30-2005 11:05

Using mouse wheel for firing is counted as cheating that's why HLGuard bans people for it :!:

It gives an unfair advantage to the player using it :!:

DarkSnow 10-31-2005 11:14

Yea, simply dont do it :P

Anyway, i belive you can check the firingrate against number of times klicked on +fire for the dual pistols if you for some reason want people to be allowed to bind mwhelup/down to +fire.

Dzyzus 06-20-2006 19:49

What i must change to use it with amx bans?

taheri6 06-24-2006 05:24

Re: Anti FastFire v1.1
 
Try this.

Find

server_cmd("banid 0.0 %s",Authid)

and replace with

server_cmd("amx_ban 0 %s FastFire hack detected",Authid)

Venit 09-19-2006 08:32

Re: Anti FastFire v1.1
 
I've tried your previous plugin anti speedhack, and there was some problems with fy_* aim_* maps, those where is teleport. (like simpsons) or those where is like car, or bike which user can drive. And especially for chickens :mrgreen: As I'm using chicken plugin.
Will this plugin have the same problem, or it's fixing , or allready fixed.

P.S. You're doing very good job creating such a anti cheat plugins. :up:

DarkSnow 09-19-2006 16:23

Re: Anti FastFire v1.1
 
Quote:

Originally Posted by Venit (Post 382680)
I've tried your previous plugin anti speedhack, and there was some problems with fy_* aim_* maps, those where is teleport.

Yes, the problem is previously known of, and the description contains a warning for using that plugin on funmaps or with "weird" plugins :wink:

Quote:

Originally Posted by Venit (Post 382680)
And especially for chickens :mrgreen: As I'm using chicken plugin.

... why on earth would you want to be a chicken..?


Quote:

Originally Posted by Venit (Post 382680)
Will this plugin have the same problem, or it's fixing , or allready fixed.

This plugin does not have any known bugs/faults with funmaps.

Id recomend using the pest spray plugin rather over the anti speedhack plugin, once it reaches a stable release. The speedhack detection stuff has been updated in PS.

Quote:

Originally Posted by Venit (Post 382680)
P.S. You're doing very good job creating such a anti cheat plugins. :up:

Thanks :up:

Venit 09-20-2006 01:46

Re: Anti FastFire v1.1
 
I'm using ATAC, with chicken plugin, and user punishing for killing them, it fun when everybody is catching that damn chichken :) And sometimes just I'm doing chicken war on the last round of map :twisted:

P.S. With the maps problem, maybe it's possible to make and exception, not to run this plugin with aim_* fy_* maps ..... :)

aligind4h0us3 09-20-2006 07:50

Re: Anti FastFire v1.1
 
What about amxbans support?

DarkSnow 09-20-2006 14:29

Re: Anti FastFire v1.1
 
Quote:

Originally Posted by aligind4h0us3 (Post 383040)
What about amxbans support?

This plugin does not support amxbans. A revised version of this plugin is included in the Pest Spray plugin with support for amxbans, but it has yet to be released in a stable version.

aligind4h0us3 09-20-2006 22:05

Re: Anti FastFire v1.1
 
Will your next version support it?

DarkSnow 09-21-2006 20:48

Re: Anti FastFire v1.1
 
Quote:

Originally Posted by aligind4h0us3 (Post 383296)
Will your next version support it?

I will take that as a revision request. This plugin has been updated and now (v1.2f) supports amxbans, thru "amx_af_amxban 1" cvar.

This plugin is now final, and will be unsuported, and futher revisions and updates will be avaiable only in the pest spray plugin.

Cheers

DA 11-19-2006 06:06

Re: Anti FastFire v1.2
 
Hey Hey,

I have a problem with this plugin. This plugin detects the cheaters but he doesn't want ban the cheaters. Here is copy from my log:

Code:

L 11/19/2006 - 11:50:19: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:19 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 100 )
L 11/19/2006 - 11:50:20: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:20 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 86 )
L 11/19/2006 - 11:50:38: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:38 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 100 )
L 11/19/2006 - 11:50:52: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:52 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 107 )
L 11/19/2006 - 11:50:53: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:53 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 92 )
L 11/19/2006 - 11:50:56: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:50:56 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 94 )
L 11/19/2006 - 11:51:10: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:51:10 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 95 )
L 11/19/2006 - 11:51:32: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:51:32 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 80 )
L 11/19/2006 - 11:51:33: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:51:33 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 84 )
L 11/19/2006 - 11:51:43: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:51:43 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 82 )
L 11/19/2006 - 11:51:46: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:51:46 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 79 )
L 11/19/2006 - 11:52:03: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:03 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 87 )
L 11/19/2006 - 11:52:04: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:04 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 69 )
L 11/19/2006 - 11:52:05: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:05 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 94 )
L 11/19/2006 - 11:52:27: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:27 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 69 )
L 11/19/2006 - 11:52:28: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:28 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 88 )
L 11/19/2006 - 11:52:29: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:52:29 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 91 )
L 11/19/2006 - 11:53:13: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:53:13 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 90 )
L 11/19/2006 - 11:53:38: [anti_fastfire.amxx] [Anti FastFire 19/11-2006 - 11:53:38 - cs_office_gold] hack<STEAM_0:0:7485536> using FastFire type of cheat (Ping: 79 )

You see that he detect him. But doesn't want to ban him.
And that is in my amxx.cfg

Code:

amx_af_amxban "1"
amx_af_bantime "0"


Dzyzus 11-19-2006 08:14

Re: Anti FastFire v1.2
 
Replace
Code:

server_cmd("amx_ban %i %s Banned for cheating", get_cvar_num("amx_af_bantime"), i)
with
Code:

server_cmd("amx_ban 0 #%d ^"FastFire Detected^"",get_user_userid(i))
should work

DA 11-19-2006 09:53

Re: Anti FastFire v1.2
 
Thanks. I test it.

cs1.6 03-21-2007 04:11

Re: Anti FastFire v1.2
 
Hello,

very reliable Plugin..but for some reason somehow it won't ban:

only this message in the console appears:

L 03/21/2007 - 08:51:40: [anti_fastfire.amxx] [Anti FastFire 21/03-2007 - 08:51:
40 - de_dust] XXXX <STEAM_0:1:XXXX> using FastFire type of cheat (Ping
: 0 )
Client with that name or userid not found


I edited out the player name and steam id with "X"

hcxx 03-21-2007 14:15

Re: Anti FastFire v1.2
 
same error for me:down:. I tryed what Dzyzus sayd but that dident work.

m4ster 05-02-2007 15:08

Re: Anti FastFire v1.2
 
this plugins ban STEAM ID only, no IP suppot !

cs1.6 11-20-2007 13:34

Re: Anti FastFire v1.2
 
so no one can help? This plugin is really reliable (It always works. It catches even speedhackers!) and immensly usefull. Unfortunately for some reason it won't ban. Look my post above for the error message.

taheri6 11-20-2007 17:06

Re: Anti FastFire v1.2
 
are you using amx bans or something like that?

cs1.6 11-20-2007 17:09

Re: Anti FastFire v1.2
 
no, just a regular ban

dangerix 11-21-2007 05:25

Re: Anti FastFire v1.2
 
Quote:

Originally Posted by cs1.6 (Post 555100)
no, just a regular ban

Read the instructions before posting.

AMXBans is supported.

Quote:

Originally Posted by DarkSnow (Post 165132)
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)

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


Lnet_Bugs 02-06-2008 07:51

Re: Anti FastFire v1.2
 
so plz any1 can tell how to make it ban via ip?

P4rD0nM3 03-18-2008 14:58

Re: Anti FastFire v1.2
 
Is the 14bp/s just a guesstimate on how a human can click the mouse?

DarkSnow 03-25-2008 06:08

Re: Anti FastFire v1.2
 
Quote:

Originally Posted by P4rD0nM3 (Post 598451)
Is the 14bp/s just a guesstimate on how a human can click the mouse?

Through testing and iterations; 14bp/s were seen as a viable limit.


All times are GMT -4. The time now is 02:01.

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