From 54147a2b0573d7d200e873781d194b3ea30229cc Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 19 Nov 2024 03:53:43 +0100 Subject: [PATCH] fix some NPCs being 4 meters tall --- src/cmd.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cmd.rs b/src/cmd.rs index e21fb8d..8760907 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -1113,6 +1113,8 @@ fn spawn_scenes( state.name = Some(state.id.clone()); state.chat = state.id.clone(); + state.model_scale = 1.0; + // command: angularmomentum 0.4 0.2 0.1 state.angular_momentum = DVec3::new(0.4, 0.2, 0.1); @@ -1129,6 +1131,8 @@ fn spawn_scenes( state.name = Some("Nox".to_string()); state.chat = "PizzaChef".to_string(); + state.model_scale = 1.1; + // command: wants matchvelocitywith pizzeria state.wants_matchvelocity_id = Some("pizzeria".to_string()); @@ -1144,6 +1148,8 @@ fn spawn_scenes( state.name = Some("Rynyk".to_string()); state.chat = "Rynyk".to_string(); + state.model_scale = 0.9; + // command: wants matchvelocitywith pizzeria state.wants_matchvelocity_id = Some("pizzeria".to_string()); @@ -1160,16 +1166,19 @@ fn spawn_scenes( state.chat = "Ash".to_string(); state.wants_matchvelocity_id = Some("hideout".to_string()); state.pronoun = Some("they".to_string()); + state.model_scale = 1.0; } else if template == "cultfollower" { state.name = Some("River".to_string()); state.chat = "River".to_string(); state.wants_matchvelocity_id = Some("hideout".to_string()); state.pronoun = Some("she".to_string()); + state.model_scale = 1.0; } else if template == "pig" { state.name = Some("Mudley".to_string()); state.id = "Mudley".to_string(); state.chat = "pig".to_string(); state.model = Some("sus".to_string()); + state.model_scale = 2.0; // command: angularmomentum 0.4 0.2 0.1 state.angular_momentum = DVec3::new(0.4, 0.2, 0.1);