mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 16:38:22 +01:00
Zooming with an item is now done with a general proc zoom(). This applies to binoculars and sniper rifle.
This commit is contained in:
@@ -189,7 +189,12 @@
|
||||
Process_Incorpmove(direct)
|
||||
return
|
||||
if(mob.client)
|
||||
if(mob.client.view != world.view)
|
||||
if(mob.client.view != world.view) // If mob moves while zoomed in with device, unzoom them.
|
||||
for(var/obj/item/item in mob.contents)
|
||||
if(item.zoom)
|
||||
item.zoom()
|
||||
break
|
||||
/*
|
||||
if(locate(/obj/item/weapon/gun/energy/sniperrifle, mob.contents)) // If mob moves while zoomed in with sniper rifle, unzoom them.
|
||||
var/obj/item/weapon/gun/energy/sniperrifle/s = locate() in mob
|
||||
if(s.zoom)
|
||||
@@ -198,6 +203,7 @@
|
||||
var/obj/item/device/binoculars/b = locate() in mob
|
||||
if(b.zoom)
|
||||
b.zoom()
|
||||
*/
|
||||
|
||||
if(Process_Grab()) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user