Skip to content

Commit

Permalink
M2C tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Dec 29, 2023
1 parent fc49338 commit 771bc98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions code/modules/cm_marines/m2c.dm
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@
M.anchored = TRUE
playsound(M, 'sound/items/m56dauto_setup.ogg', 75, TRUE)
to_chat(user, SPAN_NOTICE("You deploy [M]."))
if((rounds > 0) && !user.get_inactive_hand())
user.set_interaction(M)
give_action(user, /datum/action/human_action/mg_exit)
M.rounds = rounds
M.overheat_value = overheat_value
M.health = health
M.update_icon()
qdel(src)

if(M.rounds > 0)
M.try_mount_gun(user)

/obj/item/device/m2c_gun/attackby(obj/item/O as obj, mob/user as mob)
if(!ishuman(user))
return
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cm_marines/smartgun_mount.dm
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@
if(get_step(src, opposite_dir) == user_turf)
found_user = TRUE
break
// If the user isn't standing behind the gun.
if(!found_user)
// If the user isn't standing behind or on top of the gun.
if(!found_user && user_turf != get_turf(src))
to_chat(user, SPAN_WARNING("You are too far from the handles to man [src]!"))
return

Expand Down

0 comments on commit 771bc98

Please sign in to comment.