quake3live/code/cgame
serge_shubin c6af63ae42 SNAPFLAG_RESET_ENTITIES: no-interpolation reset without gamestate resend
Replace the gamestate resend approach for map_restart with a custom
snapshot flag (SNAPFLAG_RESET_ENTITIES, bit 4 in snapFlags byte).

Server side (sv_netdemo.c):
- On restart frame, OR the flag into svs.snapFlagServerBit (one-shot)
- Cleared at the start of the next playback frame

Client side (cg_snapshot.c):
- CG_SetNextSnap: clear currentValid for all entities when flag is set,
  making them all "new" — existing interpolation check at line 228
  sets interpolate=qfalse, CG_TransitionEntity calls CG_ResetEntity
- Also set cg.nextFrameTeleport=qtrue to prevent playerstate
  interpolation during follow mode

No loading screen, no lost frames, no gamestate resend. Entities and
playerstate both snap to correct positions on map_restart.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 00:19:36 +08:00
..
cg_consolecmds.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_draw.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_drawtools.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_effects.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_ents.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_event.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_info.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_local.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_localents.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_main.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_marks.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_newdraw.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_particles.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_players.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_playerstate.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_predict.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_public.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_scoreboard.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_servercmds.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_snapshot.c SNAPFLAG_RESET_ENTITIES: no-interpolation reset without gamestate resend 2026-03-24 00:19:36 +08:00
cg_syscalls.asm Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_syscalls.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_view.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cg_weapons.c Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.def Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.plg Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.q3asm Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.sh Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame.vcxproj Copy game/cgame/ui to missionpack/ for TA configurations 2026-03-18 16:06:35 +08:00
cgame.vcxproj.filters Migrate to Visual Studio 2022: replace .vcproj with .vcxproj, add .gitignore 2026-03-18 13:36:28 +08:00
cgame_ta.bat Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame_ta.q3asm Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
cgame_ta.sh Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
Conscript Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00
tr_types.h Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00