From abc6ccae2697036fec67d4148ed6bd53b6922c88 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 30 Apr 2020 23:43:53 -0400 Subject: [PATCH] Unzoom in new move code --- code/game/objects/items.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 24290fbd54b..be8deb5df6d 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -636,6 +636,11 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out. //Looking through a scope or binoculars should /not/ improve your periphereal vision. Still, increase viewsize a tiny bit so that sniping isn't as restricted to NSEW /obj/item/var/ignore_visor_zoom_restriction = FALSE +/obj/item/on_loc_moved(var/oldloc) + . = ..() + if(zoom) + zoom() // aka unzoom + /obj/item/proc/zoom(var/tileoffset = 14,var/viewsize = 9) //tileoffset is client view offset in the direction the user is facing. viewsize is how far out this thing zooms. 7 is normal view var/devicename