Finding a knock back fix for CS: GO
Note: This thread is for discussing how to fix knock back only, not other issues with ZR. Don't go off topic here.
Problem The knock back feature is supposed to push players in a certain direction with a certain force (using TeleportEntity in SourceMod to append to the player velocity). In CS:S players will slide on the ground in varying distances depending on the push force, it behaves just like we want to. In CS:GO players don't slide much on the ground, no matter how high the push force is. If the same push force is applied when they're in mid-air, players fly away as we want to. By applying a push force I mean increasing a players momentum. I've tried really high push forces, but players really hold on to the ground. If this was for real, a player could stop a moving train by just standing there. I've been investigating the knock back issue and so far I haven't found an acceptable solution. My findings so far: Velocity capped when on ground No matter how large velocity I apply, the value seems to never go above the running speed (233 with knife). It looks like it's capped. The question is: When? The trigger_push entity also have the same issue when players stand on the ground. So if someone find a fix for trigger_push we also might be able to fix knock back. Upwards force above 250 (velocity[2]) works Applying a velocity that will push you up 251 units/sec will make you go off the ground so that the knock back velocity is applied. Though people will also fly a bit upwards because of this. It doesn't look natural, especially when shooting from above (which is the last thing people would expect happening). This is a workaround that at least makes it possible to push people back. But it has bad side effects because it pushes you up in the air. People/zombies in air are very vulnerable to knock back compared to those on the ground (because there's no friction when in air, which also applies to CS:S). It's a lot easier to shoot them away. Zombies can avoid this by not jumping too much, but with this workaround they are always vulnerable. There's no difference in knock back for zombies on the ground or zombies in the air. This is a bad side effect that may make the game unbalanced. Velocity seems to decrease in a fixed time span This might just be an illusion if the velocity is capped, but when applying high velocity I expected it to take longer time to decrease so people will slide on the ground, just like in CS:S. But in CS: GO players always stop quickly, like there's high friction. Lowering sv_friction didn't make it any better because it affected general movement, such as when you stop walking you're supposed to stop quickly. Stuff that didn't work
Everyone are welcome to test this and report back here.
|
Re: Finding a knock back fix for CS: GO
When I set knockback between 13-20 on a zombie it seems to work?
|
Re: Finding a knock back fix for CS: GO
It doesn't matter how high you set the knock back when you're on the ground. Something is overriding it. Those times it seems to work is when you have a knock back angle and force that is pushing players off the ground, usually flying far away. Basically anything that gives upwards velocity above 250.
|
Re: Finding a knock back fix for CS: GO
ahh alright. So once on ground it does nothing but once you are in air it kicks in? Guess since people like to jump as zombie it seems to work a lot.
|
Re: Finding a knock back fix for CS: GO
I wonder if this change in the CS: GO 1.20 update will fix knock back issues:
Code:
-Fixed issue that caused doors and other "pusher" entities to move at the wrong |
Re: Finding a knock back fix for CS: GO
Mine is 64 default i beleive is 33
|
Re: Finding a knock back fix for CS: GO
default is 64 and that's what I had mine set to... I doubt that fix will allow knockback - but I could be wrong.
|
Re: Finding a knock back fix for CS: GO
Quote:
|
Re: Finding a knock back fix for CS: GO
You could try making a quick repeating timer that teleports backward a small bit on every repeat.
Not sure if you could make it fast enough to avoid looking more unnatural or avoid a significant performance drain though. |
Re: Finding a knock back fix for CS: GO
The new snapshot forces zombies in the air so I guess that is the KB?
|
| All times are GMT -4. The time now is 22:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.