s1lentq/ReGameDLL_CS

Grenades are missing due to high velocity value

Closed this issue · 1 comments

The problem is that the engine calls Think at the entity first, then checks for maxvelocity. And think calls IsInWorld function, which removes the grenade at high velocity value.
I think the correct thing to do is to limit the velocity of the grenade to match the value of the maxvelocity cvar before checking for IsInWorld.

bug.mp4

Test PR #888 , made a change, it should keep nades in world when reaching high speed values