Skip to content

Commit

Permalink
bugfix: Signal Overrides (#5670)
Browse files Browse the repository at this point in the history
* Signal Overrides

* Correct Slot
  • Loading branch information
Gottfrei authored Aug 7, 2024
1 parent 4dfa5ce commit d3ac91b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/weapons/RCL.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

/obj/item/twohanded/rcl/equipped(mob/user, slot, initial)
. = ..()
RegisterSignal(user, COMSIG_MOB_CLIENT_MOVED, PROC_REF(on_mob_move))
RegisterSignal(user, COMSIG_MOB_CLIENT_MOVED, PROC_REF(on_mob_move), override = TRUE)

/obj/item/twohanded/rcl/dropped(mob/user, slot, silent = FALSE)
. = ..()
Expand Down
9 changes: 3 additions & 6 deletions code/modules/awaymissions/mission_code/ruins/oldstation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -233,22 +233,19 @@

/obj/item/clothing/suit/space/hardsuit/ancient/equipped(mob/user, slot, initial)
. = ..()
RegisterSignal(user, COMSIG_MOB_CLIENT_MOVED, PROC_REF(on_mob_move))
if(slot & slot_flags)
RegisterSignal(user, COMSIG_MOB_CLIENT_MOVED, PROC_REF(on_mob_move), override = TRUE)

/obj/item/clothing/suit/space/hardsuit/ancient/dropped(mob/user, slot, silent)
. = ..()
UnregisterSignal(user, COMSIG_MOB_CLIENT_MOVED)

/obj/item/clothing/suit/space/hardsuit/ancient/on_mob_move(mob/user, dir)
var/mob/living/carbon/human/H = loc
if(!istype(H) || H.wear_suit != src)
return
if(footstep > 1)
playsound(src, 'sound/effects/servostep.ogg', 100, 1)
playsound(src, 'sound/effects/servostep.ogg', 100, TRUE)
footstep = 0
else
footstep++
..()

// Chemical bottles
/obj/item/reagent_containers/glass/bottle/aluminum
Expand Down

0 comments on commit d3ac91b

Please sign in to comment.