mirror of
https://github.com/KabKebab/GS13.git
synced 2026-08-22 20:46:55 +01:00
Consolidate GS13 noises
Remove brap noises from tgstation get_sfx Create sound file for gs13 get_sfx Create function for GS13 emotes with preference toggle
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
/datum/emote/living/brap
|
||||
key = "brap"
|
||||
key_third_person = "braps"
|
||||
message = " "
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
/datum/emote/living/brap/select_message_type(var/mob/user)
|
||||
return pick("farts loudly!", "cuts a fat one!", "rips absolute ass!")
|
||||
|
||||
/datum/emote/living/brap/run_emote(var/mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
var/turf/source = get_turf(user)
|
||||
var/sound/farting = sound(get_sfx("fart"))
|
||||
for(var/mob/living/M in get_hearers_in_view(3, source))
|
||||
if(M.client && M.client.prefs.cit_toggles & FARTING_NOISES)
|
||||
SEND_SOUND(M, farting)
|
||||
|
||||
. = ..()
|
||||
@@ -1,3 +1,74 @@
|
||||
/datum/emote/living/proc/make_noise(var/mob/living/user, noise_name, pref_toggle)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
var/turf/source = get_turf(user)
|
||||
var/sound/noise = sound(gs13_get_sfx(noise_name))
|
||||
for(var/mob/living/M in get_hearers_in_view(3, source))
|
||||
if ((pref_toggle == 0) || (M.client && M.client.prefs.cit_toggles & pref_toggle))
|
||||
SEND_SOUND(M, noise)
|
||||
|
||||
/datum/emote/living/belch
|
||||
key = "belch"
|
||||
key_third_person = "belches loudly"
|
||||
message = "belches"
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
//god hates me for this -Metha
|
||||
|
||||
/datum/emote/living/belch/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
make_noise(user, "belch", 0)
|
||||
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/brap
|
||||
key = "brap"
|
||||
key_third_person = "braps"
|
||||
message = " "
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
/datum/emote/living/brap/select_message_type(var/mob/living/user)
|
||||
return pick("farts loudly!", "cuts a fat one!", "rips absolute ass!")
|
||||
|
||||
/datum/emote/living/brap/run_emote(var/mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
make_noise(user, "brap", FARTING_NOISES)
|
||||
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/burp
|
||||
key = "burp"
|
||||
key_third_person = "burps"
|
||||
message = "burps."
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
/datum/emote/living/burp/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
make_noise(user, "burp", 0)
|
||||
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/fart
|
||||
key = "fart"
|
||||
key_third_person = "farts"
|
||||
message = "farts"
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
//god hates me for this -Metha
|
||||
|
||||
/datum/emote/living/fart/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
make_noise(user, "fart", FARTING_NOISES)
|
||||
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/gurgle
|
||||
key = "gurgle"
|
||||
key_third_person = "gurgles"
|
||||
@@ -8,46 +79,10 @@
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
if(prob(50))
|
||||
playsound(user, 'GainStation13/sound/voice/gurgle1.ogg', 50, 1, -1)
|
||||
else
|
||||
playsound(user, 'GainStation13/sound/voice/gurgle2.ogg', 50, 1, -1)
|
||||
make_noise(user, "gurgle", 0)
|
||||
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/burp/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
playsound(user, 'GainStation13/sound/voice/burp1.ogg', 50, 1, -1)
|
||||
. = ..()
|
||||
|
||||
/datum/emote/living/fart
|
||||
key = "fart"
|
||||
key_third_person = "farts"
|
||||
message = "farts"
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
|
||||
//god hates me for this -Metha
|
||||
|
||||
/datum/emote/living/fart/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
var/fartSoundChoice = rand(3)
|
||||
switch(fartSoundChoice)
|
||||
if (0)
|
||||
playsound(user, 'GainStation13/sound/voice/fart3.ogg', 50, 1, -1)
|
||||
if (1)
|
||||
playsound(user, 'GainStation13/sound/voice/fart4.ogg', 50, 1, -1)
|
||||
if (2)
|
||||
playsound(user, 'GainStation13/sound/voice/fart2.ogg', 50, 1, -1)
|
||||
if (3)
|
||||
playsound(user, 'GainStation13/sound/voice/fart1.ogg', 50, 1, -1)
|
||||
|
||||
. = ..()
|
||||
|
||||
//Shhh... It's a secret! Don't tell or I'll steal your legs
|
||||
/datum/emote/living/burunyu
|
||||
key = "burunyu"
|
||||
@@ -56,35 +91,9 @@
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
/datum/emote/living/burunyu/run_emote(mob/living/user, params)
|
||||
playsound(user, 'GainStation13/sound/voice/funnycat.ogg', 50, 1, -1)
|
||||
. = ..()
|
||||
|
||||
|
||||
/datum/emote/living/belch
|
||||
key = "belch"
|
||||
key_third_person = "belches loudly"
|
||||
message = "belches"
|
||||
emote_type = EMOTE_AUDIBLE
|
||||
|
||||
//god hates me for this -Metha
|
||||
|
||||
/datum/emote/living/belch/run_emote(mob/living/user, params)
|
||||
if(!ishuman(user))
|
||||
return FALSE
|
||||
|
||||
var/fartSoundChoice = rand(5)
|
||||
switch(fartSoundChoice)
|
||||
if(0)
|
||||
playsound(user, 'GainStation13/sound/voice/belch3.ogg', 50, 1, -1)
|
||||
if(1)
|
||||
playsound(user, 'GainStation13/sound/voice/belch4.ogg', 50, 1, -1)
|
||||
if(2)
|
||||
playsound(user, 'GainStation13/sound/voice/belch2.ogg', 50, 1, -1)
|
||||
if(3)
|
||||
playsound(user, 'GainStation13/sound/voice/belch1.ogg', 50, 1, -1)
|
||||
if(4)
|
||||
playsound(user, 'GainStation13/sound/voice/belch5.ogg', 50, 1, -1)
|
||||
if(5)
|
||||
playsound(user, 'GainStation13/sound/voice/belch6.ogg', 50, 1, -1)
|
||||
return FALSE
|
||||
|
||||
. = ..()
|
||||
make_noise(user, "burunyu", 0)
|
||||
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user