Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Physics issues - Gravity - m6-exterior #10

Open
Chrissstrahl opened this issue May 31, 2024 · 0 comments
Open

Physics issues - Gravity - m6-exterior #10

Chrissstrahl opened this issue May 31, 2024 · 0 comments

Comments

@Chrissstrahl
Copy link
Member

Chrissstrahl commented May 31, 2024

Level on which the issue is apperent: m6-exterior
Specific Script Command: $world.physicsvar ( "gravity" , 80 );
Script Command translates to Gamecode:

//Updates each sv_frame in:
void World::Think( void )
//to cvar:
gi.cvar_set( "sv_currentGravity", va( "%f", temp_gravity ) );

sv_currentGravity->value

How to recrate: Load the Level in Singleplayer and make sure you have V-Sync Off and you com_maxfps set to something above 75 FPS, like for example 120 and compare the speed at which you glide down after a jump with fps at (com_maxfps 75) an (com_maxfps 120). The higher the FPS the slower you will glide down.

Conditions:
g_gametype 0;
g_gametype 1; dedicated 0;
Singleplayer/Listen Server, Offical Relase 1.1, the GOG Version has a "fix" that limits the FPS to 85 at which the issue isn't as apparent.

The issue does not occur on dedicated servers, it is reasonable to assume that it has to do with something where the game uses CLIENT 0 gameframes for the calculations. There probably is a math inaccuracy or a limit missing. I have not really looked into that issue.

sv_currentGravity

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

No branches or pull requests

1 participant