From 25f0b76a10dbd5ac2cfabd5354f621ae82cf19b4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 09:15:38 +0400 Subject: feat(combat): enable the authored weapons of hostile animals The armed Constructor creatures use the shared enemy search and fire their CTL weapon from Gun_Y. The stock start is outside range. The close encounter fixture shows the projectile in the Vulkan window and leaves the hero at 30 percent after one hit. --- crates/fparkan-runtime/src/player_weapon.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/player_weapon.rs') diff --git a/crates/fparkan-runtime/src/player_weapon.rs b/crates/fparkan-runtime/src/player_weapon.rs index 2ced63cd..b95b0cb7 100644 --- a/crates/fparkan-runtime/src/player_weapon.rs +++ b/crates/fparkan-runtime/src/player_weapon.rs @@ -271,7 +271,8 @@ fn prepare_weapons( let muzzle = points.points.get(row.raw_parameters[1] as usize)?; let rate = f32::from_bits(row.raw_parameters[2]); if muzzle.raw_signed_field_04 < 0 - || muzzle.raw_signed_field_04 != muzzle.raw_signed_field_08 + || (muzzle.raw_signed_field_08 != -1 + && muzzle.raw_signed_field_04 != muzzle.raw_signed_field_08) || !rate.is_finite() || rate <= 0.0 || row.flags & 1 != 0 -- cgit v1.2.3