Raised This Month: $32 Target: $400
 8% 

[L4D2] Ladder Rambos Dhooks


Post New Thread Reply   
 
Thread Tools Display Modes
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-18-2021 , 15:47   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #11

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'll have to look at CTerrorWeapon::CanDeployFor function, but I would rather keep the plugin format. My only issue with sourcescramble is that its not used by a lot of plugins, while DHooks is. Just from a maintenance point of view, DHooks makes more sense.
__________________
Spirit_12 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-18-2021 , 16:03   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #12

Quote:
Originally Posted by Spirit_12 View Post
I'll have to look at CTerrorWeapon::CanDeployFor function, but I would rather keep the plugin format. My only issue with sourcescramble is that its not used by a lot of plugins, while DHooks is. Just from a maintenance point of view, DHooks makes more sense.
I mentioned you can port it to use a plugin, pretty easy.
Quote:
Originally Posted by Lux View Post
can port to a plugin if you wish.
scramble is just for easy config setup more managable compared to having lots of plugins patching stuff.


Let me know if you need help porting it.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 02-18-2021 at 16:03.
Lux is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-18-2021 , 16:10   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #13

Porting isn't an issue. I just need to spare some time for it. I'll let you know, if I get stuck.
__________________

Last edited by Spirit_12; 02-18-2021 at 16:10.
Spirit_12 is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 02-19-2021 , 05:33   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #14

Hi all

button Q does not work on stairs

Last edited by Voevoda; 02-19-2021 at 05:42.
Voevoda is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-21-2021 , 19:28   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #15

Although the signature I provided for CTerrorGun::Holster is still unique, it's not a good one for detours since it doesn't wildcard the first 6 bytes.

Here's a better signature in case other plugins detour the same function:
Code:
\x2A\x2A\x2A\x2A\x2A\x2A\x80\xBE\xDD\x17\x00\x00\x00\x74\x34\x80\xBE\xDC\x17\x00\x00\x01\x74\x2B\x80\x7E\x64\x00\x74\x06\x80\x4E\x68\x01\xEB\x18
/* Signature for sub_103DB650: ? ? ? ? ? ? 80 BE DD 17 00 00 00 74 34 80 BE DC 17 00 00 01 74 2B 80 7E 64 00 74 06 80 4E 68 01 EB 18 */
__________________
Psyk0tik is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-21-2021 , 21:27   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #16

I'll update it in the next release. Thanks for the update.
__________________
Spirit_12 is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-22-2021 , 22:11   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #17

Quote:
Originally Posted by Crasher_3637 View Post
Although the signature I provided for CTerrorGun::Holster is still unique, it's not a good one for detours since it doesn't wildcard the first 6 bytes.
I was always wondering, why people talk about 6 bytes. From my observing Dhooks always took 5 bytes (E9 + 4 bytes of offset).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-22-2021 at 22:14.
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-23-2021 , 04:29   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #18

Quote:
Originally Posted by Dragokas View Post
I was always wondering, why people talk about 6 bytes. From my observing Dhooks always took 5 bytes (E9 + 4 bytes of offset).
I wonder about that too. I haven't seen any clear answers, just posts from some knowledgeable people that it should be the first 6 or 8 bytes.
__________________
Psyk0tik is offline
zomexf
Junior Member
Join Date: Jul 2019
Old 03-08-2021 , 08:20   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #19

Button Q ladder not work.
__________________
Sorry, My English is bad
zomexf is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 03-08-2021 , 10:28   Re: [L4D2] Ladder Rambos Dhooks
Reply With Quote #20

Switching weapons on ladder was not a feature of this plugin to begin with, however I will consider that in the future updates.
__________________
Spirit_12 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 23:18.


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