AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Ladder Rambos Dhooks (https://forums.alliedmods.net/showthread.php?t=330703)

Spirit_12 02-16-2021 20:33

[L4D2] Ladder Rambos Dhooks
 
2 Attachment(s)
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.

user2000 02-16-2021 22:32

Re: [L4D2] Ladder Rambos Dhooks
 
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

Spirit_12 02-16-2021 23:56

Re: [L4D2] Ladder Rambos Dhooks
 
Edit: Never mind, I had an error in the code. Download it again and report back.

Lux 02-17-2021 05:50

Re: [L4D2] Ladder Rambos Dhooks
 
Brilliant thanks

user2000 02-17-2021 06:53

Re: [L4D2] Ladder Rambos Dhooks
 
It works well. Thank you :up:

vikingo12 02-17-2021 17:02

Re: [L4D2] Ladder Rambos Dhooks
 
Thanks you for making it work on WINDOWS!:3

Spirit_12 02-17-2021 19:29

Re: [L4D2] Ladder Rambos Dhooks
 
An update is coming soon which will allow the use of melee on the ladder as well.

Psyk0tik 02-18-2021 07:51

Re: [L4D2] Ladder Rambos Dhooks
 
Using the latest version and it works great on my server. Nice work!

Lux 02-18-2021 14:27

Re: [L4D2] Ladder Rambos Dhooks
 
1 Attachment(s)
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

user2000 02-18-2021 15:20

Re: [L4D2] Ladder Rambos Dhooks
 
Quote:

Originally Posted by Lux (Post 2737422)
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 ^^


All times are GMT -4. The time now is 08:04.

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