Shiptest 13 - Modules - TypesVar Details - Proc Details

attachment

Most of the logic of attachments is held within the component which allows you to add other items as attachments in theory

Vars

attach_features_flagsvarious yes no flags associated with attachments. See defines for these: [_DEFINES/guns.dm]
attachment_compComponent that handles most of the logic of attachments
pixel_shift_xDetermines the amount of pixels to move the icon state for the overlay. in the x direction
pixel_shift_yDetermines the amount of pixels to move the icon state for the overlay. in the y direction
render_layerDetermines what layer the icon state for the overlay renders on.
signalsUnused.. but could hold extra callbacks I assume?
size_modModifier applied to the parent
spread_modModifier applied to the parent
spread_unwielded_modModifier applied to the parent
toggledIf the attachment is on or off
valid_parentsSee attachment component
wield_delayModifier applied to the parent, deciseconds

Procs

apply_attachmentChecks if a user should be allowed to attach this attachment to the given parent
apply_modifiersHandles the modifiers to the parent gun

Var Details

attach_features_flags

various yes no flags associated with attachments. See defines for these: [_DEFINES/guns.dm]

attachment_comp

Component that handles most of the logic of attachments

pixel_shift_x

Determines the amount of pixels to move the icon state for the overlay. in the x direction

pixel_shift_y

Determines the amount of pixels to move the icon state for the overlay. in the y direction

render_layer

Determines what layer the icon state for the overlay renders on.

signals

Unused.. but could hold extra callbacks I assume?

size_mod

Modifier applied to the parent

spread_mod

Modifier applied to the parent

spread_unwielded_mod

Modifier applied to the parent

toggled

If the attachment is on or off

valid_parents

See attachment component

wield_delay

Modifier applied to the parent, deciseconds

Proc Details

apply_attachment

Checks if a user should be allowed to attach this attachment to the given parent

apply_modifiers

Handles the modifiers to the parent gun