From 2de3fd6567d6eee36910af260f1e5767213ba89c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Tue, 1 Dec 2026 16:26:55 +0400 Subject: fix(combat): converge manual shots on the authored sight ray Read the ray origin and axis from the turret CTL rows. Match the Control sight query and its minimum convergence distance for compatible projectile profiles. Free look keeps using the same turret ray. Checked Control.dll RVA 0x2a610 with near, far, and clear rays. Used the stock firing range window for the changed launch vectors and replayed ordinary player inputs from the normal start through victory. --- apps/fparkan-game/src/projectile_render.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/fparkan-game/src/projectile_render.rs') diff --git a/apps/fparkan-game/src/projectile_render.rs b/apps/fparkan-game/src/projectile_render.rs index a45b0c57..1694f4c7 100644 --- a/apps/fparkan-game/src/projectile_render.rs +++ b/apps/fparkan-game/src/projectile_render.rs @@ -25,6 +25,7 @@ pub(super) struct ProjectileDraw { pub(super) speed: f32, pub(super) lifetime_ms: u32, pub(super) volume: Option, + pub(super) sight_convergence: bool, pub(super) launch_sounds: Vec, pub(super) engine_sounds: Vec, pub(super) local_vertices: Vec, @@ -118,6 +119,7 @@ pub(super) fn prepare_projectile_draw( speed: projectile.speed, lifetime_ms: projectile.lifetime_ms, volume: projectile.volume, + sight_convergence: projectile.sight_convergence, launch_sounds: shot_sound::projectile_launch(effects.iter().map(|effect| &effect.document)), engine_sounds: projectile_sound::prepare(&projectile, &effects), local_vertices: geometry.vertices, -- cgit v1.2.3