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

[L4D] Shove Penalty Unlocker (1.5) [25-Apr-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6791
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Unlocks shove penalty in coop and survival.
    Old 11-04-2019 , 13:41   [L4D] Shove Penalty Unlocker (1.5) [25-Apr-2022]
    Reply With Quote #1

    About:
    • For L4D1 only.
    • The games default behaviour only applies a penalty for shoving in Versus.
    • This plugin unlocks the shove penalty in coop and survival.



    Thanks:
    • Dragokas - For the idea, request and testing.



    CVars:

    Saved to l4d_shove_penalty.cfg in your servers \left4dead\cfg\sourcemod\ folder.

    PHP Code:
    // The number of swings before the punch/melee/shove fatigue delay is set in (coop). (Min: 2, Max: 5, default: 5).
    z_gun_swing_coop_penalty_time "5"

    // Shove Penalty Unlocker plugin version.
    l4d_shove_penalty_version 


    Changes:
    Code:
    1.5 (25-Apr-2022)
        - Fixed the plugin not initializing. Thanks to "Orinuse" for reporting.
    
    1.4 (01-Mar-2022)
        - Removed unused code. Thanks to "Orinuse" for reporting.
    
    1.3 (03-Jan-2022)
        - Added cvar "z_gun_swing_coop_penalty_time" to set the number of swings before melee fatigue delay. Thanks to "HarryPotter" for writing.
        - Changes to work with the latest Linux update. Thanks to "HarryPotter" for testing.
        - Plugin and GameData updated.
    
    1.2a (06-Dec-2021)
        - GameData update: Changed patch count to fix crashing. Thanks to "ZBzibing" for reporting.
    
    1.2 (07-Sep-2021)
        - GameData update: Fixed crashing since the last L4D1 update.
    
    1.1 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - Various changes to tidy up code.
    
    1.0 (04-Nov-2019)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: txt l4d_shove_penalty.txt (821 Bytes, 125 views)
    File Type: sp Get Plugin or Get Source (l4d_shove_penalty.sp - 251 views - 7.9 KB)
    __________________

    Last edited by Silvers; 04-25-2022 at 07:21.
    Silvers is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 11-08-2019 , 00:07   Re: [L4D] Shove Penalty Unlocker (1.0) [04-Nov-2019]
    Reply With Quote #2

    This is the best idea that could have occurred to you, in fact it is something that I have been looking for for almost a year.
    Beatles is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 11-09-2019 , 10:27   Re: [L4D] Shove Penalty Unlocker (1.0) [04-Nov-2019]
    Reply With Quote #3

    This is what I am looking for for almost two years,
    finally someone made it, thanks, Silvers
    __________________
    HarryPotter is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 01-17-2020 , 02:19   Re: [L4D] Shove Penalty Unlocker (1.0) [04-Nov-2019]
    Reply With Quote #4

    This is a great thing, it really needs it
    ZBzibing is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 05-05-2020 , 14:35   Re: [L4D] Shove Penalty Unlocker (1.0) [04-Nov-2019]
    Reply With Quote #5

    How to set the number of times

    Last edited by ZBzibing; 05-05-2020 at 14:35.
    ZBzibing is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 01-17-2021 , 00:53   Re: [L4D] Shove Penalty Unlocker (1.1) [10-May-2020]
    Reply With Quote #6

    Something like this I was looking for for a long time, when I saw it, downloaded it and installed it on my server, I realized that when you play it only works very well, but when there are many people it causes the server to close, crash, uninstall it and I thought it was a server error or something out there, I recently installed it in my own game, for private games with friends, and exactly the same thing happens, when I play alone it goes great, but when I play with several people it produces game to close.
    Beatles is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-07-2021 , 03:25   Re: [L4D] Shove Penalty Unlocker (1.2) [07-Sep-2021]
    Reply With Quote #7

    Quote:
    Originally Posted by ZBzibing View Post
    How to set the number of times
    I don't think it's possible, or only by modifying the players address + 1696 (linux). Left4DHooks has the m_iShovePenalty offset for "GetShovePenalty" and "SetShovePenalty" natives. These could be opened up to L4D1 if really required.

    Quote:
    Originally Posted by Beatles View Post
    Something like this I was looking for for a long time, when I saw it, downloaded it and installed it on my server, I realized that when you play it only works very well, but when there are many people it causes the server to close, crash, uninstall it and I thought it was a server error or something out there, I recently installed it in my own game, for private games with friends, and exactly the same thing happens, when I play alone it goes great, but when I play with several people it produces game to close.
    Could you please let me know if it's still crashing? Maybe the crash issue I just fixed was from before the update (although for me it didn't crash, and I can only test alone).



    I think the last update changed some things (I don't have the files to compare) and I noticed it crashing on Windows. Also fixed Linux (untested) but think it should work.

    Code:
    1.2 (07-Sep-2021)
        - GameData update: Fixed crashing since the last L4D1 update.
    __________________

    Last edited by Silvers; 09-07-2021 at 03:29.
    Silvers is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 09-28-2021 , 17:50   Re: [L4D] Shove Penalty Unlocker (1.2) [07-Sep-2021]
    Reply With Quote #8

    I have been testing it since yesterday, I have not had any problem, it seems that it is already perfect, if for any reason I find a problem, I will let you know
    Beatles is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 11-21-2021 , 03:11   Re: [L4D] Shove Penalty Unlocker (1.2) [07-Sep-2021]
    Reply With Quote #9

    Great, it was updated! I will download and test now, if there is a problem, I will give feedback
    __________________
    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 11-21-2021 , 04:13   Re: [L4D] Shove Penalty Unlocker (1.2) [07-Sep-2021]
    Reply With Quote #10

    Modify which codes can be limited to 3 times, the default is 5
    __________________
    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:

    Last edited by ZBzibing; 11-21-2021 at 04:14.
    ZBzibing 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 05:02.


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