Fix screaming (#4835)

## About The Pull Request


https://github.com/Bubberstation/Bubberstation/commit/bf8b97fbaedc8ff46053fac7e254722187922b11
merged `/datum/emote/living/human/scream` into
`/datum/emote/living/scream` and our modular code needed to be adjusted

## Why It's Good For The Game

Bug fix

## Proof Of Testing

Yes

## Changelog
🆑
fix: fixed screaming not working
/🆑
This commit is contained in:
Roxy
2025-10-20 17:38:45 -04:00
committed by GitHub
parent 6224997b7e
commit 6fcc7d8b75
@@ -1,6 +1,6 @@
/datum/emote/living/scream
vary = TRUE
mob_type_blacklist_typecache = list(/mob/living/carbon/human, /mob/living/basic/slime, /mob/living/brain) //Humans get specialized scream.
mob_type_blacklist_typecache = list(/mob/living/basic/slime, /mob/living/brain)
/datum/emote/living/scream/get_sound(mob/living/user)
if(issilicon(user))
@@ -20,6 +20,17 @@
return 'sound/mobs/non-humanoids/gorilla/gorilla.ogg'
if(isalien(user))
return 'sound/mobs/non-humanoids/hiss/hiss6.ogg'
if(!ishuman(user))
return
var/mob/living/carbon/human/human_user = user
if(isnull(human_user.selected_scream) || (LAZYLEN(human_user.selected_scream.male_screamsounds) && LAZYLEN(human_user.selected_scream.female_screamsounds))) //For things that don't have a selected scream(npcs)
if(prob(1))
return 'sound/mobs/humanoids/human/scream/wilhelm_scream.ogg'
return human_user.dna.species.get_scream_sound(human_user)
if(human_user.gender == FEMALE && LAZYLEN(human_user.selected_scream.female_screamsounds))
return pick(human_user.selected_scream.female_screamsounds)
else
return pick(human_user.selected_scream.male_screamsounds)
/datum/emote/living/scream/can_run_emote(mob/living/user, status_check, intentional)
if(iscyborg(user))
@@ -30,18 +41,3 @@
return FALSE
robot_user.cell.use(STANDARD_CELL_CHARGE * 0.2)
return ..()
/datum/emote/living/carbon/human/scream
only_forced_audio = FALSE
/datum/emote/living/carbon/human/scream/get_sound(mob/living/carbon/human/user)
if(!istype(user))
return
if(isnull(user.selected_scream) || (LAZYLEN(user.selected_scream.male_screamsounds) && LAZYLEN(user.selected_scream.female_screamsounds))) //For things that don't have a selected scream(npcs)
if(prob(1))
return 'sound/mobs/humanoids/human/scream/wilhelm_scream.ogg'
return user.dna.species.get_scream_sound(user)
if(user.gender == FEMALE && LAZYLEN(user.selected_scream.female_screamsounds))
return pick(user.selected_scream.female_screamsounds)
else
return pick(user.selected_scream.male_screamsounds)