From eac260d36e8b6f9b2f6e11c786061a4f61c5015f Mon Sep 17 00:00:00 2001 From: Alan Shen Date: Mon, 9 Nov 2026 01:57:10 -0700 Subject: [PATCH] Add partial reloads to the ZR68-L The ZR68-L loads the reload phases neoAssets writes for it (#base weapon_zr68l_reload_phases.txt) and keeps a chambered round (ChamberedRound 1), as the ZR68C does. It plays its own sound pieces (weapon_zr68l.reload_*). The phase code is generic, so no code changes. --- game/neo/scripts/game_sounds_weapons.txt | 38 ++++++++++++++++++++++++ game/neo/scripts/weapon_zr68l.txt | 7 +++++ 2 files changed, 45 insertions(+) diff --git a/game/neo/scripts/game_sounds_weapons.txt b/game/neo/scripts/game_sounds_weapons.txt index b8b6f6689f..623523511e 100644 --- a/game/neo/scripts/game_sounds_weapons.txt +++ b/game/neo/scripts/game_sounds_weapons.txt @@ -798,6 +798,44 @@ "wave" ")weapons/zr68/zr68_reload_cycle.wav" } +// ZR68L reload in per-step pieces (sv_neo_reload_experimental). + +"weapon_zr68l.reload_unload" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/zr68l/zr68l_reload_unload.wav" +} + +"weapon_zr68l.reload_load" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/zr68l/zr68l_reload_load.wav" +} + +"weapon_zr68l.reload_load_part2" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/zr68l/zr68l_reload_load_part2.wav" +} + +"weapon_zr68l.reload_cycle" +{ + "channel" "CHAN_ITEM" + "soundlevel" "SNDLVL_NORM" + "volume" "1.0" + "pitch" "PITCH_NORM" + "wave" ")weapons/zr68l/zr68l_reload_cycle.wav" +} + //------------------- "weapon_zr68.npc_reload" diff --git a/game/neo/scripts/weapon_zr68l.txt b/game/neo/scripts/weapon_zr68l.txt index 147c324305..7cb3220f00 100644 --- a/game/neo/scripts/weapon_zr68l.txt +++ b/game/neo/scripts/weapon_zr68l.txt @@ -1,3 +1,5 @@ +#base "weapon_zr68l_reload_phases.txt" + // ZR68L WeaponData @@ -16,6 +18,11 @@ WeaponData "Penetration" "32.0" "CycleTime" "0.5" // time between shots "ReloadReadyBeforeEnd" "0.367" // the reload is done at the last reload click, this long before its animation ends + + // 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"