From b29b9c121233413b65d3c13f55c627f778dffa4e Mon Sep 17 00:00:00 2001 From: Alan Shen Date: Mon, 9 Nov 2026 05:09:13 -0700 Subject: [PATCH] Add partial reloads to the Jitte family Both Jitte scripts get the reload phases from neoAssets and a chamber slot: weapon_jitte.txt #base "weapon_jitte_reload_phases.txt" and weapon_jittescoped.txt #base "weapon_jittes_reload_phases.txt", each with "ReloadPhases" {} and "ChamberedRound" "1". game_sounds_weapons.txt gets the three reload sound pieces both play (weapon_jitte.reload_unload, reload_load, reload_cycle). The generic phase code then resumes a reload interrupted after the unload or the load, and a reload with a round chambered skips the handle pull. No code changes. --- game/neo/scripts/game_sounds_weapons.txt | 29 ++++++++++++++++++++++++ game/neo/scripts/weapon_jitte.txt | 7 ++++++ game/neo/scripts/weapon_jittescoped.txt | 7 ++++++ 3 files changed, 43 insertions(+) diff --git a/game/neo/scripts/game_sounds_weapons.txt b/game/neo/scripts/game_sounds_weapons.txt index f9d09f41f2..3aba586ba1 100644 --- a/game/neo/scripts/game_sounds_weapons.txt +++ b/game/neo/scripts/game_sounds_weapons.txt @@ -612,6 +612,35 @@ "wave" "weapons/jitte/jitte_reload.wav" } +// Jitte reload in per-step pieces (sv_neo_reload_experimental). + +"weapon_jitte.reload_unload" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/jitte/jitte_reload_unload.wav" +} + +"weapon_jitte.reload_load" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/jitte/jitte_reload_load.wav" +} + +"weapon_jitte.reload_cycle" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/jitte/jitte_reload_cycle.wav" +} + //------------------- "weapon_jitte.npc_reload" diff --git a/game/neo/scripts/weapon_jitte.txt b/game/neo/scripts/weapon_jitte.txt index e148f2aecf..7dbb7b5348 100644 --- a/game/neo/scripts/weapon_jitte.txt +++ b/game/neo/scripts/weapon_jitte.txt @@ -1,3 +1,5 @@ +#base "weapon_jitte_reload_phases.txt" + WeaponData { // Weapon data is loaded by both the Game and Client DLLs. @@ -15,6 +17,11 @@ WeaponData "CycleTime" "0.090909" // time between shots "ReloadReadyBeforeEnd" "0.455" // the reload is done at the last reload click, this long before its animation ends // the charging handle is home 0.400 before the end, the alternative value + + // Reload phases (sv_neo_reload_experimental): the rows come from neoAssets, timed from its Blender markers + "ReloadPhases" {} + // Chamber capacity is gameplay data; the phase timing comes from neoAssets. + "ChamberedRound" "1" "TPMuzzleFlashScale" "0.5" diff --git a/game/neo/scripts/weapon_jittescoped.txt b/game/neo/scripts/weapon_jittescoped.txt index 9671a3c8c1..f01c736cce 100644 --- a/game/neo/scripts/weapon_jittescoped.txt +++ b/game/neo/scripts/weapon_jittescoped.txt @@ -1,3 +1,5 @@ +#base "weapon_jittes_reload_phases.txt" + WeaponData { // Weapon data is loaded by both the Game and Client DLLs. @@ -15,6 +17,11 @@ WeaponData "CycleTime" "0.090909" // time between shots "ReloadReadyBeforeEnd" "0.455" // the reload is done at the last reload click, this long before its animation ends // the charging handle is home 0.400 before the end, the alternative value + + // Reload phases (sv_neo_reload_experimental): the rows come from neoAssets, timed from its Blender markers + "ReloadPhases" {} + // Chamber capacity is gameplay data; the phase timing comes from neoAssets. + "ChamberedRound" "1" "TPMuzzleFlashScale" "0.5"