Merge pull request #14772 from Putnam3145/fix-sniper-bad
Makes sniper zooming work
This commit is contained in:
@@ -568,12 +568,18 @@
|
||||
/datum/action/item_action/toggle_scope_zoom/IsAvailable(silent = FALSE)
|
||||
. = ..()
|
||||
if(!.)
|
||||
var/obj/item/gun/G = target
|
||||
G.zoom(owner, owner.dir, FALSE)
|
||||
|
||||
/datum/action/item_action/toggle_scope_zoom/Trigger()
|
||||
. = ..()
|
||||
if(.)
|
||||
var/obj/item/gun/G = target
|
||||
G.zoom(owner, owner.dir)
|
||||
|
||||
/datum/action/item_action/toggle_scope_zoom/Remove(mob/living/L)
|
||||
var/obj/item/gun/G = target
|
||||
G.zoom(L, L.dir)
|
||||
G.zoom(L, L.dir, FALSE)
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/proc/rotate(atom/thing, old_dir, new_dir)
|
||||
|
||||
Reference in New Issue
Block a user