Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Special Exploit Fixes


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7814
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Preventing afk & kill cheats and other exploits
    Old 10-05-2021 , 09:39   [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #1

    Description:
    It's a multifunctional plugin, preventing some bugs, game cheats based on !afk & !kill, unique exploits, complicating digital exploration which could lead in unfair competition / further infiltration & adds some functionality.

    I wrote it some years ago, and recently added all ConVars which can cause some bugs due to not tested well, tell me if any.
    Features:
    - blocks "status" command, adds "status2" command which has hidden SteamId (only visible for Root admin), also city can be seen if GeoIPv2 is installed (also for Admin only).
    - blocks sv_steamgroup from been publicly visible
    - prevents players falling on the ground on finale when they leave in transport
    - blocks go away and !afk on certain conditions:
    * been vomited
    * startle witch
    * death
    * incapped
    * pinned by infected
    * located on the air
    * reloads the weapon
    * start panic
    * staggered
    * been healed
    * defibbed
    - prevents !kill !suicide when located in the saferoom / at round end
    - (disabled by default) adds aliases for !afk !join !kill commands (see details in ConVars below)
    - hides notification from some ConVars, Commands e.t.c.
    - blocks some exploits
    Settings (ConVars):
    Can be found in: cfg/sourcemod/l4d_spec_exploit_fix.cfg
    PHP Code:
    // Fix bug when players falling through the transport in finale? (0 - No, 1 - Yes)
    l4d_sef_fall_transport_fix "1"

    // Make sv_steamgroup ConVar to be publicly invisible? (0 - No, 1 - Yes)
    l4d_sef_steam_group_hide "1"

    // Hide SteamId in status command for non-admins, redirecting it to status2? (0 - No, 1 - Yes)
    l4d_sef_status_hide_steamid "1"

    // Minimum time to use status2 command again
    l4d_sef_status_timeout "30"

    // Protect from go away cheats (same way as afk cheats)? (0 - No, 1 - Yes)
    l4d_sef_go_away_protect "1"

    // Protect from afk cheats? (0 - No, 1 - Yes)
    l4d_sef_afk_protect "1"

    // Prevent afk if player startled the witch? (0 - No, 1 - Yes)
    l4d_sef_afk_witch_startle "1"

    // Delay while afk cannot be used after player startled the witch
    l4d_sef_afk_witch_timeout "60"

    // Prevent afk if player dead? (0 - No, 1 - Yes)
    l4d_sef_afk_alive "1"

    // Prevent afk if player incapped? (0 - No, 1 - Yes)
    l4d_sef_afk_incap "1"

    // Prevent afk if player pinned by infected? (0 - No, 1 - Yes)
    l4d_sef_afk_pinned "1"

    // Prevent afk if player isn't stay on the ground? (0 - No, 1 - Yes)
    l4d_sef_afk_ground "1"

    // Prevent afk if player vomited? (0 - No, 1 - Yes)
    l4d_sef_afk_vomit "1"

    // Delay while afk cannot be used after player got vomited
    l4d_sef_afk_vomit_timeout "14"

    // Prevent afk if player reloading the gun? (0 - No, 1 - Yes)
    l4d_sef_afk_reload "1"

    // Prevent afk if player started the panic event? (0 - No, 1 - Yes)
    l4d_sef_afk_panic "1"

    // Delay while afk cannot be used after player started the panic
    l4d_sef_afk_panic_timeout "60"

    // Prevent afk if player staggered? (0 - No, 1 - Yes)
    l4d_sef_afk_stagger "1"

    // Prevent afk if somebody healing the player or vice versa? (0 - No, 1 - Yes)
    l4d_sef_afk_heal "1"

    // Prevent afk if somebody reviving the player or vice versa? (0 - No, 1 - Yes)
    l4d_sef_afk_revive "1"

    // Prevent afk if somebody defibbed the player? (0 - No, 1 - Yes)
    l4d_sef_afk_defib "1"

    // Delay while afk cannot be used after somebody defibbed the player
    l4d_sef_afk_defib_timeout "15"

    // Protect from kill cheats? (0 - No, 1 - Yes)
    // At the moment protection works against player who try to selfkill in the saferoom and at the end of the round
    l4d_sef_kill_protect "1"

    // Add aliases for afk? (0 - No, 1 - Yes)
    // At the moment, such commands are added: "sm_afk", "sm_away", "sm_idle", "sm_spectate", "sm_spectators", "sm_spectator", "sm_joinspectators", "sm_jointeam1"
    l4d_sef_afk_alias "0"

    // Add aliases for join survivor team? (0 - No, 1 - Yes)
    // At the moment, such commands are added: "sm_survivors", "sm_joinsurvivors", "sm_jointeam2"
    l4d_sef_join_sur_alias "0"

    // Add aliases for join infected team? (0 - No, 1 - Yes)
    // At the moment, such commands are added: "sm_infected", "sm_joininfected", "sm_jointeam3"
    l4d_sef_join_inf_alias "0"

    // Add aliases for selfkill? (0 - No, 1 - Yes)
    // At the moment, such commands are added: "sm_kill", "sm_suicide"
    l4d_sef_kill_alias "0"

    // Fix all players idle while joining the server? (0 - No, 1 - Yes)
    // Can conflict with other plugins which control sb_all_bot_team ConVar
    l4d_sef_all_players_idle_fix "0"

    // Hide change notification of some ConVars? (0 - No, 1 - Yes)
    // At the moment, following commands are silented: "director_no_survivor_bots", "sv_cheats"
    l4d_sef_notify_hide "0" 
    Tricks:
    - To prevent console output tearing, the printing line-per-frame method is used.
    Using:
    Copy l4d_special_exploit_fixes.smx to addons/sourcemod/plugins
    Copy spec_exploit_fix.phrases.txt to addons/sourcemod/translations
    Respect:
    - dr. Lex - help with coding some anti-exploits
    - Lux - help with coding some anti-exploits
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: txt spec_exploit_fix.phrases.txt (2.4 KB, 346 views)
    File Type: sp Get Plugin or Get Source (l4d_special_exploit_fixes.sp - 388 views - 26.9 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 06-30-2022 at 12:34.
    Dragokas is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 10-05-2021 , 10:20   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #2

    Quote:
    Originally Posted by Dragokas View Post
    - prevents players falling on the ground on finale when they leave in transport
    So is this in reference to the 4 plus players bug that auto kills the players who aren't the 'mains' when the transport exits on all maps? Would it work on customs too?
    Sev is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-05-2021 , 10:24   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #3

    All maps triggering finale_vehicle_leaving event, usually it's finale maps.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    vikingo12
    Member
    Join Date: Nov 2018
    Old 10-09-2021 , 12:58   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #4

    l4d_sef_afk_stagger "1"
    means no getup skip?
    vikingo12 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-09-2021 , 13:01   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #5

    Means, cannot use !afk when player is in stagger state (tank blow, barrel explosion, boomer explosion).
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    vikingo12
    Member
    Join Date: Nov 2018
    Old 10-09-2021 , 13:06   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #6

    what about getup then?
    vikingo12 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-09-2021 , 13:32   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #7

    What about getup?
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    vikingo12
    Member
    Join Date: Nov 2018
    Old 10-09-2021 , 14:19   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #8

    I wont be able to go afk while in getup animation?
    vikingo12 is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-09-2021 , 15:19   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #9

    Updated.
    Code:
    v.1.1 (09-Oct-2021)
     - Added ConVar "l4d_sef_afk_revive" (by vikingo12 request)
     - Fixed l4d_sef_afk_heal not worked in L4D2.
     - Complemented case when you heal/revive somebody.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 10-09-2021 at 15:20.
    Dragokas is offline
    vikingo12
    Member
    Join Date: Nov 2018
    Old 10-10-2021 , 09:12   Re: [L4D & L4D2] Special Exploit Fixes
    Reply With Quote #10

    By getup skip I meant when you get cleared from infected you just go afk while in animation and skipping it
    also when charger grabs 1 survivor and hits others, they can skip the getup animation too
    when throwing Molotov at witch, you can go afk before it landed which results in witch losing the target + also works with pipe bomb and vomitjar

    Last edited by vikingo12; 10-10-2021 at 09:32.
    vikingo12 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 04:56.


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