Raised This Month: $276 Target: $400
 69% 

[L4D2] Charger Shoved Fix (1.2) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6915
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Prevents the Charger from slowing down when shoved while charging.
    Old 01-21-2020 , 21:09   [L4D2] Charger Shoved Fix (1.2) [10-May-2020]
    Reply With Quote #1

    Related Plugins:

    About:
    • Prevents the Charger from slowing down when shoved while charging.


    Thanks:

    Changes:
    Code:
    1.2 (10-May-2020)
        - Various changes to tidy up code.
    
    1.1 (24-Jan-2020)
        - Fixed errors from not verifying if the shoved person was a Charger.
    
    1.0 (22-Jan-2020)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_charger_shoved_fix.sp - 244 views - 2.6 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 07:41.
    Silvers is offline
    JLmelenchon
    Member
    Join Date: Mar 2019
    Old 01-22-2020 , 02:02   Re: [L4D2] Charger Shoved Fix (1.0) [22-Jan-2020]
    Reply With Quote #2

    Wow awesome thank you, will need to test that in depth to see if it does not cause bugs.
    JLmelenchon is offline
    TrueSurvivor
    Junior Member
    Join Date: Jun 2010
    Old 01-22-2020 , 10:46   Re: [L4D2] Charger Shoved Fix (1.0) [22-Jan-2020]
    Reply With Quote #3

    I haven't tested this extensively, but as we're talking about a class that can't be shoved no matter what.
    Wouldn't a cleaner (and safer) method be to block OnEntityShoved (TerrorWeapon::OnHit) regarding Chargers (and possibly Tanks)?

    Either way,

    Last edited by TrueSurvivor; 01-22-2020 at 10:47. Reason: typo
    TrueSurvivor is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-22-2020 , 13:57   Re: [L4D2] Charger Shoved Fix (1.0) [22-Jan-2020]
    Reply With Quote #4

    Quote:
    Originally Posted by JLmelenchon View Post
    Wow awesome thank you, will need to test that in depth to see if it does not cause bugs.
    I don't see how it could cause bugs. Simply detects when shoved, on next think sets velocity back to previous because for that 1 frame the game sets to 0,0,0.

    Quote:
    Originally Posted by TrueSurvivor View Post
    I haven't tested this extensively, but as we're talking about a class that can't be shoved no matter what.
    Wouldn't a cleaner (and safer) method be to block OnEntityShoved (TerrorWeapon::OnHit) regarding Chargers (and possibly Tanks)?

    Either way,
    Why make it more complicated than it has to be?

    Keep the bacon, that stuff is disgusting.
    __________________
    Silvers is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-23-2020 , 22:46   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #5

    Fixed mistake:

    Code:
    1.1 (24-Jan-2020)
        - Fixed errors from not verifying if the shoved person was a Charger.
    __________________
    Silvers is offline
    SkiPlix
    Member
    Join Date: Dec 2016
    Location: Argentina
    Old 01-24-2020 , 08:14   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #6

    Was this fixed in 1.1?

    Quote:
    [SM] [1] Line 64, /home/forums/content/files/8/5/7/7/8/179445.attach::Event_PlayerShoved
    [SM] Exception reported: Property "m_isCharging" not found (entity 448/ability_throw)
    [SM] Blaming: l4d2_charger_shoved_fix.smx
    [SM] Call stack trace:
    [SM] [0] GetEntProp
    [SM] [1] Line 64, /home/forums/content/files/8/5/7/7/8/179445.attach::Event_PlayerShoved
    [SM] Exception reported: Property "m_isCharging" not found (entity 443/ability_throw)
    [SM] Blaming: l4d2_charger_shoved_fix.smx
    [SM] Call stack trace:
    [SM] [0] GetEntProp
    [SM] [1] Line 64, /home/forums/content/files/8/5/7/7/8/179445.attach::Event_PlayerShoved
    [SM] Exception reported: Property "m_isCharging" not found (entity 469/ability_throw)
    [SM] Blaming: l4d2_charger_shoved_fix.smx
    [SM] Call stack trace:
    [SM] [0] GetEntProp
    [SM] [1] Line 64, /home/forums/content/files/8/5/7/7/8/179445.attach::Event_PlayerShoved
    SkiPlix is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-24-2020 , 09:47   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #7

    Quote:
    Originally Posted by SkiPlix View Post
    Was this fixed in 1.1?
    Yeah
    __________________
    Silvers is offline
    JLmelenchon
    Member
    Join Date: Mar 2019
    Old 02-02-2020 , 21:11   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #8

    Works well. Maybe it fix the glitch where a survivor was able to jump + shove to stop the charge.
    JLmelenchon is offline
    JLmelenchon
    Member
    Join Date: Mar 2019
    Old 02-10-2020 , 20:01   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #9

    Any idea if it could conflict with this plugin ? https://forums.alliedmods.net/showthread.php?p=2038693
    JLmelenchon is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 02-10-2020 , 20:15   Re: [L4D2] Charger Shoved Fix (1.1) [24-Jan-2020]
    Reply With Quote #10

    Try it and see?
    __________________
    Silvers 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 01:22.


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