Skip to content

Commit

Permalink
anim
Browse files Browse the repository at this point in the history
  • Loading branch information
Blundir committed Jul 18, 2024
1 parent ccdd8e6 commit 55e0d59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,13 @@
if(!do_after(src, 1 SECONDS, INTERRUPT_ALL, BUSY_ICON_HOSTILE))
to_chat(src, SPAN_WARNING("You need to set up the high toss!"))
return
animation_attack_on(target)
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1, 7)
drop_inv_item_on_ground(I, TRUE)
thrown_thing.throw_atom(target, thrown_thing.throw_range, SPEED_SLOW, src, spin_throw, HIGH_LAUNCH)
else
animation_attack_on(target)
playsound(src, 'sound/weapons/punchmiss.ogg', 50, 1, 7)
drop_inv_item_on_ground(I, TRUE)
thrown_thing.throw_atom(target, thrown_thing.throw_range, thrown_thing.throw_speed, src, spin_throw)

Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,9 @@
return
else if(istype(AM, /obj))
AM.add_fingerprint(src)
animation_attack_on(AM)
playsound(loc, 'sound/weapons/thudswoosh.ogg', 25, 1, 7)
flick_attack_overlay(AM, "grab")

if(!QDELETED(AM.pulledby) && !QDELETED(M))
visible_message(SPAN_WARNING("[src] has broken [AM.pulledby]'s grip on [M]!"), null, null, 5)
Expand Down Expand Up @@ -534,6 +537,7 @@
msg_admin_attack("[key_name(src)] grabbed [key_name(M)] in [get_area(src)] ([src.loc.x],[src.loc.y],[src.loc.z]).", src.loc.x, src.loc.y, src.loc.z)

if(!no_msg)
animation_attack_on(M)
visible_message(SPAN_WARNING("[src] has grabbed [M] passively!"), null, null, 5)

if(M.mob_size > MOB_SIZE_HUMAN || !(M.status_flags & CANPUSH))
Expand Down

0 comments on commit 55e0d59

Please sign in to comment.