Raised This Month: $62 Target: $400
 15% 

[L4D] Ledge Release v2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine
Plugin ID:
6580
Plugin Version:
2.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow to release from the ledge using "Space" (JUMP) key
    Old 05-26-2019 , 11:11   [L4D] Ledge Release v2
    Reply With Quote #1

    Description:
    Allow you to release by your own with "Space" (JUMP) key when you grabbed the ledge.
    Plugin is based on:
    - "Incapped Pills Pop" by AtomicStryker (fork by Dragokas)
    - "L4D Ledge Release" by AltPluzF4, maintained by Madcap
    Difference:
    - Basic function is work more stable.
    - Less CPU usage.
    - More checks.
    Known issues:
    - Health is not always set correctly.
    - Grabbing music is not always stops.
    Settings (ConVars):

    1. l4d_ledge_release_delaytime - (def. 1.0) - How long before grabbing the ledge you can release
    2. l4d_ledge_release_forbid_when_reviving - (def. 1) - Forbid release from the ledge when somebody reviving you (1 - Yes / 0 - No)
    Requirements:
    [L4D1] Health Exploit Fix
    Using:
    Compile script.
    Place smx in "plugins" folder.
    Place l4d_ledge_release.phrases.txt in "translations" folder.
    Translations
    - English
    - Russian
    Compatibility
    Tested on L4D1 only, should be applicable for L4D2.
    Attached Files
    File Type: txt l4d_ledge_release.phrases.txt (581 Bytes, 41 views)
    File Type: sp Get Plugin or Get Source (l4d_ledge_release.sp - 62 views - 10.5 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst.
    [My plugins] [My tools] [GitHub]

    Last edited by Dragokas; 05-26-2019 at 11:13.
    Dragokas is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 05-26-2019 , 13:31   Re: [L4D] Ledge Release v2
    Reply With Quote #2

    This will not really work.

    PHP Code:
    public void OnNextFrame(any client)
    {
        if (!
    IsClientInGame(client))
            return;
        
        
    ClientCommand(client"music_dynamic_stop_playing Event.LedgeHangTwoHands");
        
    ClientCommand(client"music_dynamic_stop_playing Event.LedgeHangOneHand");
        
    ClientCommand(client"music_dynamic_stop_playing Event.LedgeHangFingers");
        
    ClientCommand(client"music_dynamic_stop_playing Event.LedgeHangAboutToFall");
        
    ClientCommand(client"music_dynamic_stop_playing Event.LedgeHangFalling");
        
        
    StopSound(clientSNDCHAN_STATIC"music/terror/ClingingToHell1.wav");
        
    StopSound(clientSNDCHAN_STATIC"music/terror/ClingingToHell2.wav");
        
    StopSound(clientSNDCHAN_STATIC"music/terror/ClingingToHell3.wav");
        
    StopSound(clientSNDCHAN_STATIC"music/terror/ClingingToHell4.wav");

    You wanna use the give health command so engine dispatches to the music system to stop the music.

    or you can use a sdkcall to Music::Stop().
    which sends a usermessage to client.
    __________________

    Last edited by Lux; 05-26-2019 at 13:31.
    Lux is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 05-26-2019 , 15:22   Re: [L4D] Ledge Release v2
    Reply With Quote #3

    Thank you, Lux.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst.
    [My plugins] [My tools] [GitHub]
    Dragokas is offline
    BHaType
    Member
    Join Date: Jun 2018
    Location: Russia
    Old 05-27-2019 , 00:04   Re: [L4D] Ledge Release v2
    Reply With Quote #4

    PHP Code:
    Music::StopMusic(Music *this, const char *, floatbool)
    \
    x55\x8B\xEC\x8B\x45\x10\xD9\x45\x0C\x8B\x55\x08 
    BHaType is offline
    Send a message via AIM to BHaType
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-27-2019 , 08:26   Re: [L4D] Ledge Release v2
    Reply With Quote #5

    Quote:
    Originally Posted by BHaType View Post
    PHP Code:
    Music::StopMusic(Music *this, const char *, floatbool)
    \
    x55\x8B\xEC\x8B\x45\x10\xD9\x45\x0C\x8B\x55\x08 

    This function is called by: sv_stop_music <name of gamesound music> which sends the usermessage "MusicCmd" to stop. This sigs for L4D2 only. Suprised it doesn't break without wildcard compared to 2017 binary.
    __________________
    Silvers is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Brexit
    Old 05-31-2019 , 11:28   Re: [L4D] Ledge Release v2
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    This function is called by: sv_stop_music <name of gamesound music> which sends the usermessage "MusicCmd" to stop. This sigs for L4D2 only. Suprised it doesn't break without wildcard compared to 2017 binary.
    I'm not sure if sv_stop_music will dispatch it to everyone, if so you may need to hook MusicCmd usermessage and strip away all other clients if you use that method maybe.
    __________________
    Lux 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 07:02.


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