mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Reduces the footstep volume, and some fixes (#8606)
This commit is contained in:
@@ -179,6 +179,11 @@
|
|||||||
new_character.default_language = def_lang
|
new_character.default_language = def_lang
|
||||||
// VOREStation Add End
|
// VOREStation Add End
|
||||||
|
|
||||||
|
// CHOMPAdd Start - Elements for footstep and slosh
|
||||||
|
new_character.set_footsteps(chosen_species.footstep)
|
||||||
|
new_character.set_slosh()
|
||||||
|
// CHOMPAdd End
|
||||||
|
|
||||||
//If desired, apply equipment.
|
//If desired, apply equipment.
|
||||||
if(equip_body)
|
if(equip_body)
|
||||||
if(charjob)
|
if(charjob)
|
||||||
|
|||||||
@@ -136,6 +136,11 @@
|
|||||||
if(current_project.speciesname)
|
if(current_project.speciesname)
|
||||||
H.custom_species = current_project.speciesname
|
H.custom_species = current_project.speciesname
|
||||||
|
|
||||||
|
// CHOMPAdd Start - Elements for footstep and slosh
|
||||||
|
H.set_footsteps(H.species.footstep)
|
||||||
|
H.set_slosh()
|
||||||
|
// CHOMPAdd End
|
||||||
|
|
||||||
//Suiciding var
|
//Suiciding var
|
||||||
H.suiciding = 0
|
H.suiciding = 0
|
||||||
|
|
||||||
@@ -364,6 +369,11 @@
|
|||||||
if(current_project.speciesname)
|
if(current_project.speciesname)
|
||||||
H.custom_species = current_project.speciesname
|
H.custom_species = current_project.speciesname
|
||||||
|
|
||||||
|
// CHOMPAdd Start - Elements for footstep and slosh
|
||||||
|
H.set_footsteps(H.species.footstep)
|
||||||
|
H.set_slosh()
|
||||||
|
// CHOMPAdd End
|
||||||
|
|
||||||
//Suiciding var
|
//Suiciding var
|
||||||
H.suiciding = 0
|
H.suiciding = 0
|
||||||
|
|
||||||
|
|||||||
@@ -173,6 +173,11 @@ Please do not abuse this ability.
|
|||||||
new_character.default_language = def_lang
|
new_character.default_language = def_lang
|
||||||
// VOREStation Add End
|
// VOREStation Add End
|
||||||
|
|
||||||
|
// CHOMPAdd Start - Elements for footstep and slosh
|
||||||
|
new_character.set_footsteps(new_character.species.footstep)
|
||||||
|
new_character.set_slosh()
|
||||||
|
// CHOMPAdd End
|
||||||
|
|
||||||
new_character.regenerate_icons()
|
new_character.regenerate_icons()
|
||||||
|
|
||||||
new_character.update_transform()
|
new_character.update_transform()
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
///Whether or not to add variation to the sounds played
|
///Whether or not to add variation to the sounds played
|
||||||
var/sound_vary = FALSE
|
var/sound_vary = FALSE
|
||||||
|
|
||||||
/datum/element/footstep/Attach(datum/target, footstep_type = FOOTSTEP_MOB_BAREFOOT, volume = 0.5, e_range = -8, sound_vary = FALSE)
|
/datum/element/footstep/Attach(datum/target, footstep_type = FOOTSTEP_MOB_BAREFOOT, volume = 0.1, e_range = -8, sound_vary = FALSE)
|
||||||
. = ..()
|
. = ..()
|
||||||
if(!ismovable(target))
|
if(!ismovable(target))
|
||||||
return ELEMENT_INCOMPATIBLE
|
return ELEMENT_INCOMPATIBLE
|
||||||
@@ -104,6 +104,9 @@
|
|||||||
/datum/element/footstep/proc/play_simplestep(mob/living/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
|
/datum/element/footstep/proc/play_simplestep(mob/living/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
|
||||||
SIGNAL_HANDLER
|
SIGNAL_HANDLER
|
||||||
|
|
||||||
|
if(!isturf(source.loc))
|
||||||
|
return
|
||||||
|
|
||||||
var/list/prepared_steps = prepare_step(source)
|
var/list/prepared_steps = prepare_step(source)
|
||||||
if(isnull(prepared_steps))
|
if(isnull(prepared_steps))
|
||||||
return
|
return
|
||||||
@@ -120,7 +123,7 @@
|
|||||||
/datum/element/footstep/proc/play_humanstep(mob/living/carbon/human/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
|
/datum/element/footstep/proc/play_humanstep(mob/living/carbon/human/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
|
||||||
SIGNAL_HANDLER
|
SIGNAL_HANDLER
|
||||||
|
|
||||||
var/volume_multiplier = 1
|
var/volume_multiplier = 0.5
|
||||||
var/range_adjustment = 0
|
var/range_adjustment = 0
|
||||||
|
|
||||||
var/list/prepared_steps = prepare_step(source)
|
var/list/prepared_steps = prepare_step(source)
|
||||||
@@ -143,9 +146,9 @@
|
|||||||
// we are barefoot
|
// we are barefoot
|
||||||
|
|
||||||
if(source.species.special_step_sounds)
|
if(source.species.special_step_sounds)
|
||||||
playsound(source.loc, pick(source.species.special_step_sounds), 50, TRUE, falloff = 1, vary = sound_vary)
|
playsound(source.loc, pick(source.species.special_step_sounds), volume, TRUE, falloff = 1, vary = sound_vary)
|
||||||
else if (istype(source.species, /datum/species/shapeshifter/promethean))
|
else if (istype(source.species, /datum/species/shapeshifter/promethean))
|
||||||
playsound(source.loc, 'modular_chomp/sound/effects/footstep/slime1.ogg', 25, TRUE, falloff = 1)
|
playsound(source.loc, 'modular_chomp/sound/effects/footstep/slime1.ogg', volume, TRUE, falloff = 1)
|
||||||
else
|
else
|
||||||
var/barefoot_type = prepared_steps[FOOTSTEP_MOB_BAREFOOT]
|
var/barefoot_type = prepared_steps[FOOTSTEP_MOB_BAREFOOT]
|
||||||
var/bare_footstep_sounds
|
var/bare_footstep_sounds
|
||||||
|
|||||||
Reference in New Issue
Block a user