aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/projectile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/projectile.rs')
-rw-r--r--crates/fparkan-runtime/src/projectile.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/fparkan-runtime/src/projectile.rs b/crates/fparkan-runtime/src/projectile.rs
index 720aad08..5681ad4f 100644
--- a/crates/fparkan-runtime/src/projectile.rs
+++ b/crates/fparkan-runtime/src/projectile.rs
@@ -25,6 +25,8 @@ pub struct ProjectileAssets {
pub lifetime_ms: u32,
/// Initial provider volume of the projectile.
pub volume: Option<f32>,
+ /// Whether the BULL profile permits bringing the shot onto the sight ray.
+ pub sight_convergence: bool,
pub(super) autonomous_fire_distance: f32,
}
@@ -75,6 +77,8 @@ pub(super) fn load_projectile(
};
let speed = f32::from_bits(control.native_profile_words[7]);
let lifetime_ms = control.native_profile_words[18];
+ // Control+0x297b1 forces a nonzero launch mode for this profile flag.
+ let sight_convergence = control.native_profile_words[21] == 0;
let autonomous_fire_distance = f32::from_bits(control.native_profile_words[22]);
let volume = control.node_data.as_ref().and_then(|data| {
let amount = data.rows.first()?.max_volume;
@@ -88,6 +92,7 @@ pub(super) fn load_projectile(
speed,
lifetime_ms,
volume,
+ sight_convergence,
autonomous_fire_distance,
})
}