Skip to content

Import RATOA unlagged enhancements#97

Merged
alcachofass merged 1 commit into
alcachofass:mainfrom
br33zy59:ratoa-netcode-improvements
Jul 2, 2026
Merged

Import RATOA unlagged enhancements#97
alcachofass merged 1 commit into
alcachofass:mainfrom
br33zy59:ratoa-netcode-improvements

Conversation

@br33zy59

@br33zy59 br33zy59 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Calculate PMISSILE_WINDOWTIME based on sv_fps (Modified port of ratoa commit 1a683edaf974e30ed162718c45daaec576a13a4b)

  • Adjusts the lifetime of a predicted missile so that, instead of simply staying alive for a fixed 30msec, it instead aligns to time into a frame when the missile was launched.

Simplify and improve projectile delag (Modified port of ratoa commit 2d6912a9b974231e6a9e9439a6fa6d6d7746d034)

  • Projectiles that don't match specific delag handlers (most significantly: grenades) now get a 1-frame nudge by default. This should resolve a visual glitch where a new grenade appears to warp backwards momentarily when launched.
  • Removed prevMsec (not needed) (cg_predict.c)
  • Bumped client frame history from 17 to 22 (g_local.h)
  • Implement G_PrintDelagMaxTimeshift() (g_unlagged.c)
  • Substitute out G_ApplyMissileNudge() and replace with G_SetMissileLaunchTime()

Prevent missile visuals getting stuck in owner (Modified port of ratoa commit cd5333e7ed3626fdbaf8f868268d2295410b89fe)

  • Missiles now skip/pass collision checks with their owner (cg_ents.c)

Calculate PMISSILE_WINDOWTIME based on sv_fps (Modified port of ratoa commit 1a683edaf974e30ed162718c45daaec576a13a4b)
- Adjusts the lifetime of a predicted missile so that, instead of simply staying alive for a fixed 30msec, it instead aligns to time into a frame when the missile was launched.

Simplify and improve projectile delag (Modified port of ratoa commit 2d6912a9b974231e6a9e9439a6fa6d6d7746d034)
- Projectiles that don't match specific delag handlers (most significantly: grenades) now get a 1-frame nudge by default. This should resolve a visual glitch where a new grenade appears to warp backwards momentarily when launched.
- Removed prevMsec (not needed) (cg_predict.c)
- Bumped client frame history from 17 to 22 (g_local.h)
- Implement G_PrintDelagMaxTimeshift() (g_unlagged.c)
- Substitute out G_ApplyMissileNudge() and replace with G_SetMissileLaunchTime()

Prevent missile visuals getting stuck in owner (Modified port of ratoa commit cd5333e7ed3626fdbaf8f868268d2295410b89fe)
- Missiles now skip/pass collision checks with their owner (cg_ents.c)
@br33zy59 br33zy59 mentioned this pull request Jul 2, 2026
@br33zy59

br33zy59 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

Note: I tested this on localhost with a dedicated server and it looks good. Could use some real-world high-ping testing to confirm intended behaviors.

@alcachofass alcachofass merged commit ba1f469 into alcachofass:main Jul 2, 2026
1 check passed
@br33zy59 br33zy59 deleted the ratoa-netcode-improvements branch July 2, 2026 03:49
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.

2 participants