[L4D2] Survivors can't jump after being hit
Hi.
If this is the wrong place, please let me know. In short, I want to make a plugin or change a ConVar to turn off the thing where you can't jump for a couple seconds after being hit by somebody on the Infected team. But I have absolutely no clue where to start. In long, I'm looking for a way turn off the thing where Survivors can't jump for a couple seconds after being hit by somebody on the Infected team. You know exactly what this is if you're familiar with Left 4 Dead 2. I have absolutely despised this ever since I started playing this game, and I can't find anything about it online. Can someone please point me into the right direction so I can make a plugin or change a ConVar so I can turn this thing off? And no, I'm not talking about the slowdown. I've already solved that. I mean the effect where you can't jump after you're hit. Edit: I didn't post this on the L4D2 Steam forums because, the last time I posted anything on any Steam forum, I nearly got my account banned for "spamming". Which I never did. I don't like breaking the rules on any site. It's not fun. Thanks, TotalChaos. |
Re: [L4D2] Survivors can't jump after being hit
m_flVelocityModifier is maybe what you want.
I'm not sure what the values are when hit by commons. The following should do the trick after damaged. PHP Code:
https://github.com/Target5150/MoYu_S...own_protect.sp |
Re: [L4D2] Survivors can't jump after being hit
Quote:
Thanks anyway, I'll be sure to give those a try. Also, where do people get those internal variables from? I've seen a few here and there with both SourceMod plugins and VScript, but I don't actually know where people get them from. I know for a fact that nobody's looking at source code because Left 4 Dead 1/2's source code never leaked (to my knowledge). Unless there's a decompilation project or two that I'm completely unaware of.
Spoiler
|
Re: [L4D2] Survivors can't jump after being hit
Code:
sm_dump_netprops netprops.txtValve is kind enough to provide L4D binaries with symbols, kinda readable with disassembly tools, i.e. IDA. |
Re: [L4D2] Survivors can't jump after being hit
Quote:
|
Re: [L4D2] Survivors can't jump after being hit
So I tried some of the sm_dump_* commands, and the majority of them seem to work.
But sm_dump_classes seems to crash Left 4 Dead 2 with an "ED_Alloc no free edicts" error. Any idea why it does that, and if there are any ways around it?
Spoiler
EDIT: Ok, so I tried sm_dump_datamaps on Team Fortress 2, and the game immediately crashed with this error: Code:
Engine ErrorWith that being said, I'll be creating a new post about this eventually, because this is not the place to be talking about that error. |
Re: [L4D2] Survivors can't jump after being hit
1 Attachment(s)
Ok, so I tried using m_flVelocityModifier. That didn't change anything.
I still can't jump after being hit. I am not an expert coder by any means, so there is a really good chance that I did everything wrong. I am absolutely out of ideas, so can somebody take a look at this plugin and tell me what I'm doing wrong? Edit: I removed some extra comments from the plugin that didn't need to be there. |
Re: [L4D2] Survivors can't jump after being hit
Seems messed up with the wrong prop, should be m_jumpSupressedUntil.
Code:
SetEntPropFloat(client, Prop_Send, "m_jumpSupressedUntil", -1.0);PHP Code:
|
Re: [L4D2] Survivors can't jump after being hit
Thank you very much Forgetest. The plugin works perfectly.
Hopefully this can help other people out, too. Surely I'm not the only one that hated the slowdown and no jumping thing. |
| All times are GMT -4. The time now is 04:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.