/tg/ Station 13 - Modules - TypesVar Details - Proc Details

scope

A component that allows players to use the item to zoom out. Mainly intended for firearms, but now works with other items too.

Vars

item_action_typeif not null, an item action will be added. Redundant if the mode is ZOOM_METHOD_RIGHT_CLICK or ZOOM_METHOD_WIELD.
range_modifierHow far we can extend, with modifier of 1, up to our vision edge, higher numbers multiply.
trackerFullscreen object we use for tracking.
tracker_owner_ckeyThe owner of the tracker's ckey. For comparing with the current owner mob, in case the client has left it (e.g. ghosted).
zoom_methodThe method which we zoom in and out

Procs

get_targetWe find and return the best target to hit on a given turf.
stop_zoomingWe stop zooming, canceling processing, resetting stuff back to normal and deleting our tracker.
zoomWe start zooming by adding our tracker overlay and starting our processing.

Var Details

item_action_type

if not null, an item action will be added. Redundant if the mode is ZOOM_METHOD_RIGHT_CLICK or ZOOM_METHOD_WIELD.

range_modifier

How far we can extend, with modifier of 1, up to our vision edge, higher numbers multiply.

tracker

Fullscreen object we use for tracking.

tracker_owner_ckey

The owner of the tracker's ckey. For comparing with the current owner mob, in case the client has left it (e.g. ghosted).

zoom_method

The method which we zoom in and out

Proc Details

get_target

We find and return the best target to hit on a given turf.

Arguments:

stop_zooming

We stop zooming, canceling processing, resetting stuff back to normal and deleting our tracker.

Arguments:

zoom

We start zooming by adding our tracker overlay and starting our processing.

Arguments: