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_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 |
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 |
Procs | |
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 |
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
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