diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-01 15:26:55 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-01 15:26:55 +0300 |
| commit | 2de3fd6567d6eee36910af260f1e5767213ba89c (patch) | |
| tree | 72c0187b4716aab76027b9a0df1055e06cb1a5b6 /crates/fparkan-runtime/src/lib.rs | |
| parent | 900aa7e51ecf26bc242f7853bdbcad68eb02b31a (diff) | |
| download | fparkan-2de3fd6567d6eee36910af260f1e5767213ba89c.tar.xz fparkan-2de3fd6567d6eee36910af260f1e5767213ba89c.zip | |
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.
Diffstat (limited to 'crates/fparkan-runtime/src/lib.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index c2b4f7e5..6150fa44 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -119,6 +119,7 @@ mod player_motion; mod unit_speed; pub use patrol_points::PatrolPointReport; pub use unit_speed::{UnitSpeedKind, UnitSpeedReport}; +mod aim_convergence; mod factory_release; mod player_status; mod player_weapon; @@ -164,6 +165,7 @@ mod wheel_animation; pub use weapon_pose::{initial_component_node_times, WeaponPoseReport}; pub use wheel_animation::WheelAnimation; +pub use aim_convergence::{projectile_sight_target, turret_sight_points}; pub use autodemo::{autodemo_camera, AutoDemoCamera, AutoDemoReinforcement, AutoDemoView}; pub use boarding::{ board_friendly_warbot, disembark_warbot, player_vehicle, select_boarding_target, |
