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

[L4D/L4D2] Anti Cvar Cheat [v1.4 | 02-Oct-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Beatles
Senior Member
Join Date: Feb 2014
Plugin ID:
8193
Plugin Version:
1.4
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Helps control the abuse of prohibited ConVars
    Old 09-25-2022 , 14:29   [L4D/L4D2] Anti Cvar Cheat [v1.4 | 02-Oct-2022]
    Reply With Quote #1

    Left 4 Dead has many bugs, and has many ConVars that can be used against the same game, this will help you better control the abuse of these ConVars, and also make some of them work as they should, and not for the benefit of the player.

    This work also contains:
    [L4D1/2] Thirdpersonshoulder Block
    l4d_texture_manager_block
    [CSGO] client replicated sv cheats blocker

    SPECS
    For security, ConVars used as cheats will no longer be specified.
    • Security for the ConVar of cheats
    • Security for ConVar that remove the darkness
    • Security against the ConVar that manages the spectator view
    • Security against ConVars that have cheat restrictions but can be bypassed
    • Security against ConVars that can saturate the servers
    • Security against a ConVar used for SpeedHack with a bypass NEW
    • Security against 3 new ConVars NEW

    ConVars
    Code:
    l4d_cheat_penalty_case: 1: kick clients, 0: record players in log file, other value: ban minutes
    l4d_cheat_third_enable: If your server is co-op, it's better to disable 3rd person restriction
    l4d_cheat_third_warnig: How many warnings should plugin warn before kicking client
    LANGUAGE SUPPORT
    Code:
    Arabic, English, Spanish, Portuguese, Brazilian Portuguese, Russian, Traditional Chinese NEW, Simplified Chinese NEW, Hungarian NEW
    Code:
    Version 1.0
    	- Initial release
    Version 1.1 Thanks Silver for suggestions
    	- "BuildPath(Path_SM, path, 256" to "BuildPath(Path_SM, path, sizeof(path)"
    	- Change char variables "static char"
    	- Remove "public" for callbacks where you specify the name
    	- Adding a game-check to prevent using in other games than those it supports, using "APLRes AskPluginLoad2"
    Version 1.2 Thanks Silver for suggestions
    	- "public void ConVarChanged_Cvars" to "void ConVarChanged_Cvars"
    	- Change the game check
    	- Multiple revisions and conflicts have been removed
    Version 1.3
    	- Added 2 new ConVar that have cheats restriction but can be bypassed
    	- Added several ConVar's that are used to saturate the servers
    Version 1.4
    	- Added 1 new ConVar which can be used as SpeedHack
    	- Added 3 new ConVars  malicious
    	- Added translation in 3 languages: Traditional Chinese, Simplified Chinese, Hungarian
    SPECIAL THANKS
    This plugin was originally created for my project of a competitive L4D1, I decided to make it public because I'm sure many are tired of cheaters in the game, I didn't think it would be so well received, I appreciate everyone's support, those who help me to polish the code, those who help me with the translations, and the server owners who help me by showing me more ConVars than being part of the game, can be used as a cheat, it is incredible that even by doing some tricks, they can avoid the cheatcvar restrictions.
    Attached Files
    File Type: sp Get Plugin or Get Source ([L4D]AntiCvarCheat.sp - 322 views - 29.7 KB)
    File Type: txt anticvarcheat.phrases.txt (3.0 KB, 176 views)

    Last edited by Beatles; 10-09-2022 at 19:02.
    Beatles is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-25-2022 , 15:57   Re: [L4D/L4D2] Anti Cvar Cheat
    Reply With Quote #2

    Some minor suggestions:

    - .SMX should not be uploaded into post since it compiles on the forum.

    - Suggest removing "[" and "]" from the filename.

    - "BuildPath(Path_SM, path, 256" to "BuildPath(Path_SM, path, sizeof(path)"

    - For the callbacks I would make the char variables "static char" so they're not re-created and zeroed each call.

    - You can remove "public" for callbacks where you specify the name, only needs to be used from 3rd party forwards or forwards from SourceMod.

    - Suggest adding a game-check to prevent using in other games than those it supports, using "APLRes AskPluginLoad2".
    __________________

    Last edited by Silvers; 09-25-2022 at 15:58.
    Silvers is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 09-25-2022 , 17:45   Re: [L4D/L4D2] Anti Cvar Cheat
    Reply With Quote #3

    Quote:
    Originally Posted by Silvers View Post
    Some minor suggestions:

    - .SMX should not be uploaded into post since it compiles on the forum.

    - Suggest removing "[" and "]" from the filename.

    - "BuildPath(Path_SM, path, 256" to "BuildPath(Path_SM, path, sizeof(path)"

    - For the callbacks I would make the char variables "static char" so they're not re-created and zeroed each call.

    - You can remove "public" for callbacks where you specify the name, only needs to be used from 3rd party forwards or forwards from SourceMod.

    - Suggest adding a game-check to prevent using in other games than those it supports, using "APLRes AskPluginLoad2".
    UPDATED [v1.1 | 25-Sep-2022]
    Beatles is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 09-26-2022 , 01:06   Re: [L4D/L4D2] Anti Cvar Cheat [v1.1 | 25-Sep-2022]
    Reply With Quote #4

    Can this be run alongside SMAC and Little Anti-Cheat?
    larrybrains is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-26-2022 , 07:11   Re: [L4D/L4D2] Anti Cvar Cheat
    Reply With Quote #5

    Quote:
    Originally Posted by Beatles View Post
    UPDATED [v1.1 | 25-Sep-2022]
    Couple other things:

    - "public void ConVarChanged_Cvars" to "void ConVarChanged_Cvars"

    - The game check could be changed to "if (engine == Engine_Left4Dead || engine == Engine_Left4Dead2)" to return "APLRes_Success" and the else returning "APLRes_SilentFailure". Shorter lines and easier to read, but that's really getting into coding styles.

    - The "IsClientValid" stock has redundant checks and is written badly. For example it's calling "IsClientInGame" first then "IsClientConnected", well if they're in-game they're definitely connected. I don't think L4D/2 has SourceTV or Replay bots?

    So change "if (IsClientInGame(client) && IsClientValid(client))" to "if (IsClientInGame(client) && !IsFakeClient(client))" in your loop. I see so many using various "IsClientValid" stocks in for loops and they're simply duplicating checks, for example the for loop and stock are both checking client is > 1 and <= MaxClients which is pointless.
    __________________
    Silvers is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 09-26-2022 , 15:48   Re: [L4D/L4D2] Anti Cvar Cheat
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    The "IsClientValid" stock has redundant checks and is written badly. For example it's calling "IsClientInGame" first then "IsClientConnected", well if they're in-game they're definitely connected. I don't think L4D/2 has SourceTV or Replay bots?
    Thank you very much Silver for these recommendations, for me this support is worth a lot, and I take it very seriously, thank you very much.

    About SourceTV and Replay, they are used in L4D2 tournaments, and even though I don't really care what they do there, I created this for my competitive project in L4D1, where these functions will be fully enabled and functional, the project is almost ready, I have been working for 1 year, and many of the plugins that you created are helping me.

    UPDATED [v1.2 | 26-Sep-2022]
    Beatles is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 09-27-2022 , 01:45   Re: [L4D/L4D2] Anti Cvar Cheat [v1.3 | 27-Sep-2022]
    Reply With Quote #7

    UPDATED [v1.3 | 27-Sep-2022]
    Code:
    	
    - Added 2 new ConVar that have cheats restriction but can be bypassed
    - Added several ConVar's that are used to saturate the servers
    Beatles is offline
    KadabraZz
    Senior Member
    Join Date: May 2020
    Old 09-27-2022 , 05:08   Re: [L4D/L4D2] Anti Cvar Cheat [v1.3 | 27-Sep-2022]
    Reply With Quote #8

    Why is this command a problem?
    spec_allowroaming 1
    KadabraZz is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 09-27-2022 , 05:14   Re: [L4D/L4D2] Anti Cvar Cheat [v1.3 | 27-Sep-2022]
    Reply With Quote #9

    Added Chinese simplified (chi)/traditional (zho) translation
    Attached Files
    File Type: txt anticvarcheat.phrases.txt (2.8 KB, 70 views)
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 09-27-2022 , 05:17   Re: [L4D/L4D2] Anti Cvar Cheat [v1.3 | 27-Sep-2022]
    Reply With Quote #10

    l4d_cheat_penalty_case : 2 Hope to add turn to spectator.
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    Reply



    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 15:00.


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