mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
Tesh Steppies (#7859)
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user