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

[L4D2] Ladder Rambos Dhooks


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Plugin ID:
7500
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to shoot from Ladders
    Old 02-16-2021 , 20:33   [L4D2] Ladder Rambos Dhooks
    Reply With Quote #1

    Ladder Rambos Dhooks

    Description:

    CVARS:
    • Saved to l4d2_ladderrambos.cfg in your servers \cfg\sourcemod\ folder.
    • ConVars names were kept the same as available in the extension to maintain backwards compatibility.

    Code:
    // Allow shoving whilst on a ladder? 1 to allow M2, 0 to block.
    // -
    // Default: "1"
    cssladders_allow_m2  "1"
    
    // Allow reloading whilst on a ladder? 1 to allow M2, 0 to block. Keep in mind that shotguns are broken and won't reload on ladders no matter what.
    // -
    // Default: "1"
    cssladders_allow_reload "1"
    
    // On/Off switch to log debug messages
    // -
    // Default: "0"
    cssladders_debug "0"
    
    // Enable the Survivors to shoot from ladders? 1 to enable, 0 to disable.
    // -
    // Default: "1"
    cssladders_enabled "1"

    ChangeLog:

    Code:
    1.0 (16-Feb-2021)	
          - Initial Release.
          - Fixed broken reload function on ladder.
          - Added support for Windows platform.
    Special Thanks to:
    Code:
    // ====================================================================================================
    //
    // 
    // 	* Ilya 'Visor' Komarov	- Original creator of ladder rambos extension.
    // 	* Crasher_3637		- For providing the windows signature for CTerrorGun::Holster function.
    // 	* Lux			- For providing the windows signature for CBaseShotgun::Reload function.
    // 	* Silver		- For providing the various signatures, being a very knowledgeable coder and plugin release format. Learned a lot from his work. 
    // 
    // ====================================================================================================
    Requirements:

    Installation:
    • You need DHooks include to be able to compile the plugin.
    • Place l4d2_ladder_rambos.smx file into your \addons\sourcemod\plugins folder.
    • Place l4d2_ladderrambos.txt file into your \addons\sourcemod\gamedata folder.

    Note:
    • Only L4D2 is supported at the moment, however the plugin logic can be applied to other games as well. Feel free to try it out in other games by using right signatures and offsets.
    Attached Files
    File Type: txt l4d2_ladderrambos.txt (2.4 KB, 671 views)
    File Type: sp Get Plugin or Get Source (l4d2_ladder_rambos.sp - 637 views - 10.1 KB)
    __________________

    Last edited by Spirit_12; 02-17-2021 at 00:52.
    Spirit_12 is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 02-16-2021 , 22:32   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #2

    I think this plugin is great ... but something I have noticed is that when you climb the ladder only at the beginning of the ladder you can shoot a magnun like a submachine gun and I think it happens with any weapon
    user2000 is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 02-16-2021 , 23:56   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #3

    Edit: Never mind, I had an error in the code. Download it again and report back.
    __________________

    Last edited by Spirit_12; 02-17-2021 at 15:16.
    Spirit_12 is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 02-17-2021 , 05:50   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #4

    Brilliant thanks
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 02-17-2021 , 06:53   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #5

    It works well. Thank you
    user2000 is offline
    vikingo12
    Member
    Join Date: Nov 2018
    Old 02-17-2021 , 17:02   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #6

    Thanks you for making it work on WINDOWS!

    Last edited by vikingo12; 02-17-2021 at 17:03.
    vikingo12 is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 02-17-2021 , 19:29   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #7

    An update is coming soon which will allow the use of melee on the ladder as well.
    __________________
    Spirit_12 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 02-18-2021 , 07:51   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #8

    Using the latest version and it works great on my server. Nice work!
    __________________
    Psyk0tik is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 02-18-2021 , 14:27   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #9

    Hey spirit took a quick look at internals and patched CTerrorWeapon::CanDeployFor and CTerrorPlayer::PreThink(Visor's patch) enabled shooting reloading with shotguns too, using throwables, eating pills, shoving and use of melees.

    Made a quick sourcescramble config to patch these values for anyone wanna use it, can port to a plugin if you wish.

    It maybe be better to block the actions you want with plugin manually rather than looking at hooking and calling functions in the binary for less gamedata work.


    Requires sourcescramble extension and sourcescramble_manager.smx

    EDIT:
    Ill leave attachment for anyone needing to remove the files but don't know the names.

    You should not use this I made better version https://forums.alliedmods.net/showthread.php?p=2738865
    Attached Files
    File Type: zip shoot_from_ladder.zip (2.1 KB, 305 views)
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 03-02-2021 at 02:22.
    Lux is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 02-18-2021 , 15:20   Re: [L4D2] Ladder Rambos Dhooks
    Reply With Quote #10

    Quote:
    Originally Posted by Lux View Post
    Hey spirit took a quick look at internals and patched CTerrorWeapon::CanDeployFor and CTerrorPlayer::PreThink(Visor's patch) enabled shooting reloading with shotguns too, using throwables, eating pills, shoving and use of melees.

    Made a quick sourcescramble config to patch these values for anyone wanna use it, can port to a plugin if you wish.

    It maybe be better to block the actions you want with plugin manually rather than looking at hooking and calling functions in the binary for less gamedata work.


    Requires sourcescramble extension and sourcescramble_manager.smx
    I wanted to try and it works ^^
    user2000 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 03:01.


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