diff --git a/LICENSE.md b/LICENSE.md index e631220..0870528 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -35,6 +35,7 @@ - suit.jpg: By Yuni, CC0 License - Icon: By Yuni, CC0 License - Sounds by Yuni, CC0 License: + - cat.ogg: Recording of a cat. She was called Siri and was fucking adorable. She was also a serial killer but we don't talk about that. - click.ogg: Recorded the click of a Victorinox Swisstool Spirit, when closing the big flathead screw driver - click2.ogg: Recorded the click of a Victorinox Swisstool Spirit, when opening the big flathead screw driver. The second click is slightly amplified, the delay between clicks slightly shortened. - connect.ogg: Tshhhhed into a microphone, pitch lowered by 15 semitones diff --git a/assets/sounds/cat.ogg b/assets/sounds/cat.ogg new file mode 100644 index 0000000..3054b9a Binary files /dev/null and b/assets/sounds/cat.ogg differ diff --git a/src/audio.rs b/src/audio.rs index 8a899ab..8ee04f5 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -63,6 +63,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[ (SfxType::LoopSfx, Sfx::Gasp, "sounds/gasp.ogg"), (SfxType::OneOff, Sfx::GaspRelief, "sounds/gasprelief.ogg"), (SfxType::OneOff, Sfx::Achieve, "sounds/achieve.ogg"), + (SfxType::OneOff, Sfx::Cat, "sounds/cat.ogg"), (SfxType::OneOff, Sfx::Click, "sounds/click.ogg"), (SfxType::OneOff, Sfx::Click3, "sounds/click3.ogg"), (SfxType::OneOff, Sfx::Connect, "sounds/connect.ogg"), @@ -91,6 +92,7 @@ pub enum Sfx { Achieve, BGMActualJupiterRecording, BGMTakeoff, + Cat, Click, Click3, Connect, @@ -127,6 +129,7 @@ pub fn str2sfx(sfx_label: &str) -> Sfx { "drink" => Sfx::Drink, "woosh" => Sfx::Woosh, "zoom" => Sfx::Zoom, + "cat" => Sfx::Cat, "chat" => Sfx::IncomingChatMessage, "ping" => Sfx::Ping, "powerdown" => Sfx::PowerDown, diff --git a/src/chat.rs b/src/chat.rs index 297ebc7..fb929f6 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -984,6 +984,11 @@ pub fn update_chat_variables( "player_suit_health_percent", ((suit.integrity * 100.0).round() as u8).to_string(), ); + vars.set_in_scope( + "$", + "ar", + if settings.hud_active { String::from("1") } else { String::from("0") } + ); let wears_chefhat = if let Some(ava) = hud::PLAYER_AR_AVATARS.get(settings.ar_avatar) { match ava.0 { hud::Avatar::ChefHat => 1, diff --git a/src/chats/serenity.yaml b/src/chats/serenity.yaml index 71d91e7..e1fc9ee 100644 --- a/src/chats/serenity.yaml +++ b/src/chats/serenity.yaml @@ -526,6 +526,13 @@ - I just want to get away from all this insanity... - Just want to tinker without anyone bothering me. - goto: mainnode +- if: "$$ar" + You're wearing cat ears!: + - msg: Meowwww! + sound: cat + - Yes. + - But I am NOT cute. I am serious and respectable. + - goto: mainnode - if: "$timetravel" Do you think time travel into the past is possible?: - if $believe: