Skip to content

Commit

Permalink
reduces binocular zoom for HvH
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed Nov 6, 2024
1 parent 46d1d00 commit fb19a00
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/game/objects/items/devices/binoculars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
throw_speed = SPEED_VERY_FAST
/// If FALSE won't change icon_state to a camo marine bino.
var/uses_camo = TRUE

var/tile_offset = 11
var/viewsize = 12
var/hvh_tile_offset = 6 //same as miniscopes
var/hvh_zoom_viewsize = 7

//matter = list("metal" = 50,"glass" = 50)

Expand All @@ -29,8 +32,10 @@

if(SEND_SIGNAL(user, COMSIG_BINOCULAR_ATTACK_SELF, src))
return

zoom(user, 11, 12)
if(SSticker.mode && MODE_HAS_TOGGLEABLE_FLAG(MODE_NO_SNIPER_SENTRY))
zoom(user, hvh_tile_offset, hvh_zoom_viewsize)
else
zoom(user, tile_offset, viewsize)

/obj/item/device/binoculars/dropped(/obj/item/item, mob/user)
. = ..()
Expand Down

0 comments on commit fb19a00

Please sign in to comment.