Skip to content

Commit

Permalink
add footsteps to borgs + removes cyborg keycard swipe
Browse files Browse the repository at this point in the history
  • Loading branch information
manray0 committed Oct 21, 2024
1 parent a870daf commit 159e27c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/__DEFINES/footsteps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define FOOTSTEP_MOB_RUST "footstep_rust"
#define FOOTSTEP_OBJ_MACHINE "footstep_machine"
#define FOOTSTEP_OBJ_ROBOT "footstep_robot"
#define FOOTSTEP_OBJ_SILICON "footstep_silicon"

//priority defines for the footstep_override element
#define STEP_SOUND_NO_PRIORITY 0
Expand Down
4 changes: 4 additions & 0 deletions code/datums/elements/footstep.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
footstep_sounds = 'sound/effects/footstep/rustystep1.ogg'
if(FOOTSTEP_MOB_SLIME)
footstep_sounds = 'sound/effects/footstep/slime1.ogg'
if(FOOTSTEP_OBJ_SILICON)
footstep_sounds = 'sound/effects/footstep/silicon_step.ogg'
RegisterSignal(target, COMSIG_MOVABLE_MOVED, PROC_REF(play_simplestep_machine))
return
if(FOOTSTEP_OBJ_MACHINE)
footstep_sounds = 'sound/effects/bang.ogg'
RegisterSignal(target, COMSIG_MOVABLE_MOVED, PROC_REF(play_simplestep_machine))
Expand Down
1 change: 1 addition & 0 deletions code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
set_wires(new /datum/wires/robot(src))
AddElement(/datum/element/empprotection, EMP_PROTECT_WIRES)
AddElement(/datum/element/ridable, /datum/component/riding/creature/cyborg)
AddElement(/datum/element/footstep, footstep_type = FOOTSTEP_OBJ_SILICON)
RegisterSignal(src, COMSIG_PROCESS_BORGCHARGER_OCCUPANT, PROC_REF(charge))
RegisterSignal(src, COMSIG_LIGHT_EATER_ACT, PROC_REF(on_light_eater))

Expand Down
2 changes: 1 addition & 1 deletion code/modules/security_levels/keycard_authentication.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/keycard_auth, 26)
return data

/obj/machinery/keycard_auth/ui_status(mob/user)
if(isdrone(user))
if(isdrone(user) || issilicon(user)) //no more borg red alerts
return UI_CLOSE
if(!isanimal_or_basicmob(user))
return ..()
Expand Down
Binary file added sound/effects/footstep/silicon_step.ogg
Binary file not shown.

0 comments on commit 159e27c

Please sign in to comment.