mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
Cyborg Footsteps (#19564)
* Cyborg Footsteps * edits * Update footstep.dm * Apply suggestion from @Cameron-The-Raven --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -523,6 +523,14 @@
|
||||
to_chat(src, span_filter_notice("You harmlessly spark."))
|
||||
spark_system.start()
|
||||
|
||||
/mob/living/silicon/robot/verb/set_footstep() //Verb for borgs to change their footstep sound.
|
||||
set category = "Abilities.Settings"
|
||||
set name = "Adjust Footstep Sound"
|
||||
var/selected_footstep = tgui_input_list(src, "Select a footstep sound.", "Footstep Sound", GLOB.selectable_footstep)
|
||||
if(!(selected_footstep in GLOB.selectable_footstep))
|
||||
return
|
||||
custom_footstep = GLOB.selectable_footstep[selected_footstep]
|
||||
|
||||
///Essentially, a Activate Held Object mode for borgs that acts just like pressing Z in hotkey mode but also works well with multibelts.
|
||||
/mob/living/silicon/robot/verb/alt_mode()
|
||||
set name = "Robot Activate Held Object"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
apply_default_language(GLOB.all_languages[LANGUAGE_GALCOM])
|
||||
init_subsystems()
|
||||
|
||||
AddElement(/datum/element/footstep, FOOTSTEP_MOB_SHOE, 1, -6)
|
||||
AddElement(/datum/element/footstep, custom_footstep, 1, -6)
|
||||
|
||||
/mob/living/silicon/Destroy()
|
||||
common_radio = null // same ref as radio, deleted by child
|
||||
|
||||
@@ -184,6 +184,7 @@
|
||||
O.resize(B.size_multiplier, animate = TRUE, ignore_prefs = TRUE)
|
||||
O.fuzzy = B.fuzzy
|
||||
O.custom_speech_bubble = B.custom_speech_bubble
|
||||
O.custom_footstep = B.custom_footstep
|
||||
|
||||
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_BORGIFY, O)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user