From eefc82a39066630a1a1aa83f141d36c2e1e64f4c Mon Sep 17 00:00:00 2001 From: Alan Shen Date: Mon, 9 Nov 2026 04:04:02 -0700 Subject: [PATCH] Add partial reloads to the PZ252 The PZ252 script gets the reload phases from neoAssets and a chamber slot: #base "weapon_pz_reload_phases.txt", "ReloadPhases" {} and "ChamberedRound" "1", and game_sounds_weapons.txt the six reload sound pieces the phases play (weapon_pz.reload_unload, reload_unload_part2, reload_load, reload_load_part2, reload_load_part3, 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 slide pull. No code changes. --- game/neo/scripts/game_sounds_weapons.txt | 56 ++++++++++++++++++++++++ game/neo/scripts/weapon_pz.txt | 7 +++ 2 files changed, 63 insertions(+) diff --git a/game/neo/scripts/game_sounds_weapons.txt b/game/neo/scripts/game_sounds_weapons.txt index 41d27c8024..e653096b3d 100644 --- a/game/neo/scripts/game_sounds_weapons.txt +++ b/game/neo/scripts/game_sounds_weapons.txt @@ -1133,6 +1133,62 @@ "wave" "weapons/pz/pz_reload.wav" } +// PZ252 reload in per-step pieces (sv_neo_reload_experimental). + +"weapon_pz.reload_unload" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_unload.wav" +} + +"weapon_pz.reload_unload_part2" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_unload_part2.wav" +} + +"weapon_pz.reload_load" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_load.wav" +} + +"weapon_pz.reload_load_part2" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_load_part2.wav" +} + +"weapon_pz.reload_load_part3" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_load_part3.wav" +} + +"weapon_pz.reload_cycle" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/pz/pz_reload_cycle.wav" +} + //------------------- "weapon_pz.npc_reload" diff --git a/game/neo/scripts/weapon_pz.txt b/game/neo/scripts/weapon_pz.txt index d00b403867..df741ab382 100644 --- a/game/neo/scripts/weapon_pz.txt +++ b/game/neo/scripts/weapon_pz.txt @@ -1,3 +1,5 @@ +#base "weapon_pz_reload_phases.txt" + // ZR68S WeaponData @@ -17,6 +19,11 @@ WeaponData "CycleTime" "0.090909" // time between shots "ReloadReadyBeforeEnd" "0.543" // 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.3"