From 1ce78a581681e2204105d4985f50a700b2d00846 Mon Sep 17 00:00:00 2001 From: yuni Date: Fri, 29 Nov 2024 18:09:49 +0100 Subject: [PATCH] fix atmosphere in vehicles --- src/cmd.rs | 6 ++++++ src/data/defs.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/src/cmd.rs b/src/cmd.rs index 8e9ff7d..97518ce 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -799,6 +799,7 @@ fn spawn_scenes( match template { "cruiser" => { state.model = Some("cruiser".to_string()); + state.id = String::from("vehicle_cruiser"); // command: name "Midnight Cruiser" state.name = Some("Midnight Cruiser".to_string()); @@ -809,6 +810,7 @@ fn spawn_scenes( // command: vehicle yes state.is_vehicle = true; + state.is_experiencing_atmosphere = true; // command: angularmomentum 0 0 0 state.angular_momentum = DVec3::ZERO; @@ -837,6 +839,7 @@ fn spawn_scenes( } "meteorace" => { state.model = Some("MeteorAceGT".to_string()); + state.id = String::from("vehicle_meteorace"); // command: name "MeteorAceGTā„¢" state.name = Some("MeteorAceGTā„¢".to_string()); @@ -847,6 +850,7 @@ fn spawn_scenes( // command: vehicle yes state.is_vehicle = true; + state.is_experiencing_atmosphere = true; // command: angularmomentum 0 0 0.2 state.angular_momentum = DVec3::new(0.0, 0.0, 0.2); @@ -876,6 +880,7 @@ fn spawn_scenes( } "whale" => { state.model = Some("whale".to_string()); + state.id = String::from("vehicle_whale"); // command: name "The Whale" state.name = Some("The Whale".to_string()); @@ -886,6 +891,7 @@ fn spawn_scenes( // command: vehicle yes state.is_vehicle = true; + state.is_experiencing_atmosphere = true; // command: angularmomentum 0 0.015 0 state.angular_momentum = DVec3::new(0.0, 0.015, 0.0); diff --git a/src/data/defs.txt b/src/data/defs.txt index 72fd5a1..a5426c3 100644 --- a/src/data/defs.txt +++ b/src/data/defs.txt @@ -351,6 +351,7 @@ actor 700 -100 -1100 suitv2 actor -20 10 -23 MeteorAceGT name "Luna's experimental MeteorAceGT" relativeto Luna + id vehicle_meteorace_luna scale 5 vehicle yes collider mesh