Skip to content

Commit

Permalink
B5 Hammer slowdown (#3860)
Browse files Browse the repository at this point in the history
# About the pull request

This makes Synth b5 breaching hammer, apply a slowdown to (marines)
anyone who picks it up but doesn't have the strength to use it.

Added extra warning and effect to show that MARINE REALLY SHOULDN'T pick
it up and try to use it.

# Explain why it's good for the game

Synth have been complaining that marines are running off their hammer. 
The visible slowdown should prevent marines from running off with it too
often

# Changelog

:cl: ghostsheet
add: B5 Breaching Hammer will now slow down humans who picks it up.
/:cl:
  • Loading branch information
ghostsheet committed Aug 3, 2023
1 parent b054a79 commit e7f2873
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion code/game/objects/items/weapons/twohanded.dm
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,25 @@
item_state = "syn_breacher"
force_wielded = MELEE_FORCE_VERY_STRONG
really_heavy = TRUE
var/move_delay_addition = 1.5

/obj/item/weapon/twohanded/breacher/synth/pickup(mob/user)
if(!(HAS_TRAIT(user, TRAIT_SUPER_STRONG)))
to_chat(user, SPAN_WARNING("You barely manage to lift \the [src] above your knees. This thing will probably be useless to you."))
to_chat(user, SPAN_HIGHDANGER("You barely manage to lift [src] above your knees. This thing will probably be useless to you."))
user.apply_effect(3, EYE_BLUR)
RegisterSignal(user, COMSIG_HUMAN_POST_MOVE_DELAY, PROC_REF(handle_movedelay))

return
..()

/obj/item/weapon/twohanded/breacher/synth/proc/handle_movedelay(mob/living/M, list/movedata)
SIGNAL_HANDLER
movedata["move_delay"] += move_delay_addition

/obj/item/weapon/twohanded/breacher/synth/dropped(mob/user, silent)
. = ..()
UnregisterSignal(user, COMSIG_HUMAN_POST_MOVE_DELAY)

/obj/item/weapon/twohanded/breacher/synth/attack(target as mob, mob/living/user as mob)
if(!HAS_TRAIT(user, TRAIT_SUPER_STRONG))
to_chat(user, SPAN_WARNING("\The [src] is too heavy for you to use as a weapon!"))
Expand Down

0 comments on commit e7f2873

Please sign in to comment.