Skip to content

Fixed grenades disappearing when speed exceeds 2000 fixed units ignoring sv_maxvelocity#888

Merged
s1lentq merged 5 commits intorehlds:masterfrom
dystopm:use_maxvelocity
Nov 26, 2023
Merged

Fixed grenades disappearing when speed exceeds 2000 fixed units ignoring sv_maxvelocity#888
s1lentq merged 5 commits intorehlds:masterfrom
dystopm:use_maxvelocity

Conversation

@dystopm
Copy link
Contributor

@dystopm dystopm commented Oct 29, 2023

Issue #887

Added cvar pointer caching of sv_maxvelocity. Did a little research on engine and haven't found more hardcoded usages of 2000 units.

@justgo97
Copy link

justgo97 commented Oct 29, 2023

You probably can use the cvar pointer here too:
line

@dystopm
Copy link
Contributor Author

dystopm commented Oct 29, 2023

You probably can use the cvar pointer here too: line

Check Files changed, done in first place

@justgo97
Copy link

You probably can use the cvar pointer here too: line

Check Files changed, done in first place

oh Yeah didn't see it, well done

use float type
@s1lentq s1lentq merged commit 193c1ed into rehlds:master Nov 26, 2023
@dystopm dystopm deleted the use_maxvelocity branch August 13, 2024 01:33
yohimik pushed a commit to yohimik/ReGameDLL_CS that referenced this pull request Jun 5, 2025
…ing sv_maxvelocity (rehlds#888)

* Fixed grenades disappearing when speed exceeds 2000 fixed units ignoring sv_maxvelocity
* Clamp nades velocity to sv_maxvelocity value when reached
* Make IsInWorld behave like SV_CheckVelocity: less/greater without equal
* Enclose IsInWorld changes with FIXES macro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants