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

[HL2DM] Advanced HL2 Movement (sprint delay fix)


Post New Thread Reply   
 
Thread Tools Display Modes
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 04-29-2016 , 23:18   Re: [HL2DM] Advanced HL2 Movement (sprint delay fix)
Reply With Quote #61

I'm currently working on a mod for HL2DM that fixes many of it's bugs. Any idea where exactly in the SDK Code the bug resides? I can handle the rest, I just need to know where to look.

Last edited by StrikerMan780; 04-29-2016 at 23:19.
StrikerMan780 is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 04-30-2016 , 20:04   Re: [HL2DM] Advanced HL2 Movement (sprint delay fix)
Reply With Quote #62

Well in the organgebox update someone tried to fix the old "shaft-sprint"-bug/exploit by messing with m_bDucked and m_bDucking (ent prop's). Basically they did 2 things: unset the sprint button and disable the ability to sprint until both bools are false.

I don't know anymore where in the SDK Code the m_bDucked and m_bDucking are used, but look for player movement. ;-)

This plugin fixed the unset of the sprint button, by just flapping it.
I tried to improve the plugin but couldn't get it to work. I've uploaded my last tries back in 2011, may it help you. :-)

https://github.com/chanz/advhl2movement
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

Last edited by Chanz; 04-30-2016 at 20:06.
Chanz is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 05-01-2016 , 14:44   Re: [HL2DM] Advanced HL2 Movement (sprint delay fix)
Reply With Quote #63

most of it is in gamemovement.cpp, c_hl2mp_player.cpp, and hl2_player.cpp, but I'm still lost at finding the culprit line of code.

Last edited by StrikerMan780; 05-01-2016 at 15:35.
StrikerMan780 is offline
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Old 05-01-2016 , 15:40   Re: [HL2DM] Advanced HL2 Movement (sprint delay fix)
Reply With Quote #64

Well its not really just a line of code. Maybe you can m_bDucking or m_bDucked to 0 when someone is letting go of the duck button. Should fix this. But I'm not sure if that is then networked to the client.
__________________
[ SourceModPlugins.org ][ My Plugins ]

Thank you for donations: [ Paypal ]

Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]
Chanz 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 04:19.


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