Commit graph

4 commits

Author SHA1 Message Date
Sergei Shubin
734b403b76 Implement QL autohop feature and supporting infrastructure
- bg_pmove.c: PM_CheckJump with full QL autohop logic — PMF_RESPAWNED
  bypassed when autohop opted-in, JumpTimeDeltaMin rate-limits all jumps
  (not just autohop), JUMP_HELD check skipped for autohop users; uses
  cmd.serverTime to match QL binary; pmove_JumpVelocity replaces
  JUMP_VELOCITY under MISSIONPACK
- q_shared.h: add lastJumpTime to non-networked section of playerState_t
- g_client.c: ClientUserinfoChanged and ClientSpawn set/clear
  PMF_AUTOHOP_HELD based on cg_autoHop userinfo key
- bg_public.h: extern vmCvar_t declarations for autohop cvars
- cgame/cg_main.c, cg_local.h: register pmove_AutoHop, pmove_JumpVelocity,
  pmove_JumpTimeDeltaMin, cg_autoHop in cgame
- qcommon/msg.c: expand pm_flags from 16 to 21 bits (PMF_JUMP_SCALE=0x100000)
- quake3.vcxproj: add MISSIONPACK to Debug TA and Release TA configs
- bg_misc.c: fix BG_EvaluateTrajectory error printing tr->trType not tr->trTime
- cg_marks.c: guard CG_ImpactMark against zero-length dir vector

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 19:25:04 +08:00
Sergei Shubin
85fdc88c72 Force vm_game/vm_cgame/vm_ui to DLL-only (0) when DLL_ONLY is defined
Default was 2 (JIT/QVM), causing fallback to ui.qvm when DLL not found.
Use CVAR_INIT|CVAR_ROM to prevent config files from overriding back to QVM.
Mirrors the same pattern used for sv_pure in sv_init.c.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 14:04:12 +08:00
Sergei Shubin
37f0bc95eb Define DLL_ONLY for all configurations; fix vm_x86.c guard
Add unconditional ItemDefinitionGroup in quake3.vcxproj to define DLL_ONLY
for all configurations, disabling QVM interpreter/JIT in favour of DLLs.

Fix vm_x86.c: VM_Compile was outside the #ifndef DLL_ONLY guard while
VM_CallCompiled was inside it, causing a duplicate symbol link error.
Extend the guard to cover VM_Compile as well.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 14:00:29 +08:00
Sergei Shubin
4c57221941 Initial commit: Quake 3 1.32b GPL source 2026-03-18 13:32:24 +08:00