mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 00:35:45 +01:00
[MIRROR] Cyborg Footsteps (#12872)
Co-authored-by: Zerum <76460494+NateSaruli@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Zerum
Cameron Lennox
parent
f9980f440d
commit
457aed320a
@@ -525,6 +525,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
|
||||
|
||||
@@ -188,6 +188,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