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

robot_model

Definition of /obj/item/robot_model, which defines behavior for each model. Deals with the creation and deletion of modules (tools). Assigns modules and traits to a borg with a specific model selected.

Vars

added_modulesModules not inherent to the robot configuration
allow_ridingCan we be ridden
basic_modulesPaths of modules to be created when the model is created
borg_skinsList of skins the borg can be reskinned to, optional
breakable_modulesWhether the borg loses tool slots with damage.
canDisposeWhether the borg can stuff itself into disposals
cyborg_base_iconProduces the icon for the borg and, if no special_light_key is set, the lights
emag_modulesPaths of modules to be created on emagging
hat_offsetThe y offset of the hat put on
locked_transformWhether swapping to this configuration should lockcharge the borg
model_select_iconIcon of the module selection screen
model_traitsList of traits that will be applied to the mob if this model is used.
modulesHolds all the usable modules (tools)
radio_channelsList of radio channels added to the cyborg
ride_offset_xThe x offsets of a person riding the borg
ride_offset_yThe y offsets of a person riding the borg
robotHost of this model
special_light_keyIf we want specific lights, use this instead of copying lights in the dmi
storagesStorage types of the model

Procs

check_menuChecks if we are allowed to interact with a radial menu
restock_consumableRefills consumables that require materials, rather than being given for free.

Var Details

added_modules

Modules not inherent to the robot configuration

allow_riding

Can we be ridden

basic_modules

Paths of modules to be created when the model is created

borg_skins

List of skins the borg can be reskinned to, optional

breakable_modules

Whether the borg loses tool slots with damage.

canDispose

Whether the borg can stuff itself into disposals

cyborg_base_icon

Produces the icon for the borg and, if no special_light_key is set, the lights

emag_modules

Paths of modules to be created on emagging

hat_offset

The y offset of the hat put on

locked_transform

Whether swapping to this configuration should lockcharge the borg

model_select_icon

Icon of the module selection screen

model_traits

List of traits that will be applied to the mob if this model is used.

modules

Holds all the usable modules (tools)

radio_channels

List of radio channels added to the cyborg

ride_offset_x

The x offsets of a person riding the borg

ride_offset_y

The y offsets of a person riding the borg

robot

Host of this model

special_light_key

If we want specific lights, use this instead of copying lights in the dmi

storages

Storage types of the model

Proc Details

check_menu

Checks if we are allowed to interact with a radial menu

Arguments:

restock_consumable

Refills consumables that require materials, rather than being given for free.

Pulls from the charger's silo connection, or fails otherwise.