[MIRROR] Looc sound (#12829)

Co-authored-by: Casey <a.roaming.shadow@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-06-21 19:55:19 -04:00
committed by GitHub
co-authored by Casey
parent ef5b8a4ba1
commit d45c5f2d9a
5 changed files with 19 additions and 0 deletions
+4
View File
@@ -127,3 +127,7 @@
**Creator:** Commissioned by Cross_Exonar from Toriate<br>
**Link:** https://github.com/TS-Rogue-Star/Rogue-Star/pull/1010<br>
**License:** [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)<br>
<br>
**File:** `/sound/talksounds/looc_sound.ogg`<br>
**Creator:** VerySoft<br>
**License:** [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)<br>
@@ -87,6 +87,12 @@
default_value = TRUE
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/looc_sounds
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "LOOC_SOUNDS"
default_value = TRUE
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/air_pump_noise
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "SOUND_AIRPUMP"
+2
View File
@@ -176,6 +176,8 @@
admin_stuff += "/([key])"
to_chat(target, span_looc(create_text_tag("looc", "LOOC:", target) + " <EM>[display_name][admin_stuff]:</EM> " + span_message("[msg]")))
if(target.prefs?.read_preference(/datum/preference/toggle/looc_sounds))
SEND_SOUND(target, sound('sound/talksounds/looc_sound.ogg', volume = 50)) //Only sound for actually local targets, not for RLOOC because that would be annoying
for(var/client/target in r_receivers)
var/admin_stuff = "/([key])([admin_jump_link(mob, target.holder)])"
Binary file not shown.
@@ -99,6 +99,13 @@ export const SUBTLE_SOUNDS: FeatureToggle = {
component: CheckboxInput,
};
export const LOOC_SOUNDS: FeatureToggle = {
name: 'LOOC Sounds',
category: 'SOUNDS',
description: 'Enable hearing a sound when somebody uses LOOC.',
component: CheckboxInput,
};
export const SOUND_AIRPUMP: FeatureToggle = {
name: 'Air Pump Ambient Noise',
category: 'SOUNDS',