diff --git a/assets/models/suit_ar_chefhat.glb b/assets/models/suit_ar_chefhat.glb new file mode 100644 index 0000000..fc1bb91 Binary files /dev/null and b/assets/models/suit_ar_chefhat.glb differ diff --git a/src/defs.txt b/src/defs.txt index aba6e1d..d088ae8 100644 --- a/src/defs.txt +++ b/src/defs.txt @@ -188,6 +188,7 @@ actor -3300 10 0 pizzeria relativeto pizzeria name "Space Pizza™" chatid pizzeria + armodel suit_ar_chefhat alive yes scale 2 collider capsule 1 0.5 diff --git a/src/hud.rs b/src/hud.rs index bee64fb..d3fa444 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -680,7 +680,7 @@ fn update_ar_overlays ( state.overlays_visible = settings.hud_active; if need_update || need_clean || need_activate { - 'outer: for (mut trans, mut vis, ar) in &mut q_overlays { + for (mut trans, mut vis, ar) in &mut q_overlays { for (owner_id, owner_trans, owner_vis) in &q_owners { if owner_id == ar.owner { *trans = *owner_trans; @@ -690,7 +690,7 @@ fn update_ar_overlays ( else { *vis = *owner_vis; } - break 'outer; + break; } } } diff --git a/src/world.rs b/src/world.rs index b022cbe..acddce6 100644 --- a/src/world.rs +++ b/src/world.rs @@ -24,6 +24,7 @@ const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0"; pub fn asset_name_to_path(name: &str) -> &'static str { match name { "suit" => "models/suit.glb#Scene0", + "suit_ar_chefhat" => "models/suit_ar_chefhat.glb#Scene0", "asteroid1" => ASSET_ASTEROID1, "asteroid2" => ASSET_ASTEROID2, "moonlet" => "models/moonlet.glb#Scene0",