Tesh Steppies (#7859)

This commit is contained in:
Nadyr
2024-03-03 15:45:15 +01:00
committed by GitHub
parent 90c12992cc
commit 13438bca5a
8 changed files with 15 additions and 5 deletions
+9 -1
View File
@@ -18,7 +18,15 @@
'sound/effects/footstep/plating2.ogg',
'sound/effects/footstep/plating3.ogg',
'sound/effects/footstep/plating4.ogg',
'sound/effects/footstep/plating5.ogg'))
'sound/effects/footstep/plating5.ogg'),
SPECIES_TESHARI = list(
'sound/effects/footstep/BudgieStep1.ogg',
'sound/effects/footstep/BudgieStep2.ogg',
'sound/effects/footstep/BudgieStep3.ogg',
'sound/effects/footstep/BudgieStep4.ogg',
'sound/effects/footstep/BudgieStep5.ogg',
'sound/effects/footstep/BudgieStep6.ogg',
)) // CHOMPedit: tesh steps
var/list/old_decals = null
@@ -260,10 +260,12 @@
/mob/living/carbon/human/handle_footstep(var/turf/T)
if(!istype(T) || is_incorporeal() || !config.footstep_volume || !T.footstep_sounds || !T.footstep_sounds.len)
return //CHOMPEdit - Condensed some return checks
// Future Upgrades - Multi species support
var/list/footstep_sounds = T.footstep_sounds["human"]
if(!footstep_sounds)
return
// CHOMPedit start: Future Upgrades - Multi species support
var/list/footstep_sounds = T.footstep_sounds[src.get_species()]
if(!LAZYLEN(footstep_sounds))
footstep_sounds = T.footstep_sounds["human"] // Probably doesn't have species sounds, use the default // TODO: replace this with a define, unfortunately SPECIES_HUMAN is "Human" instead of "human"
if(!footstep_sounds)
return // CHOMPedit end
var/S = pick(footstep_sounds)
GLOB.step_taken_shift_roundstat++
if(!S) return
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.