Skip to content

Commit

Permalink
Off-hand shooting (#16165)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Jul 6, 2024
1 parent 9b61159 commit e6d47b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions code/modules/projectiles/gun_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,14 @@
if(modifiers["right"])
modifiers -= "right"
params = list2params(modifiers)
active_attachable?.start_fire(source, object, location, control, params, bypass_checks)
return
if(gun_user.get_active_held_item() == src)
active_attachable?.start_fire(source, object, location, control, params, bypass_checks)
return
if(gun_user.get_inactive_held_item() != src)
return
if(gun_user.Adjacent(object))
return
bypass_checks = TRUE
if(gun_on_cooldown(gun_user))
return
if(!bypass_checks)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/mounted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
setDir(angle)
user.set_interaction(src)
playsound(loc, 'sound/items/ratchet.ogg', 25, 1)
operator.visible_message("[operator] rotates the [src].","You rotate the [src].")
operator.visible_message("[operator] rotates the [src].","You rotate [src].")
update_pixels(user, TRUE)

if(current_scope?.deployed_scope_rezoom)
Expand Down

0 comments on commit e6d47b1

Please sign in to comment.