byond - Modules - TypesVar Details

M56A2 smartgun

Vars

ammo_primaryThe current normal ammo datum
ammo_primary_altFrontline mode normal ammo datum
ammo_primary_defNon-Frontline mode normal ammo datum
ammo_secondaryThe current AP ammo datum
ammo_secondary_altFrontline mode AP ammo datum
ammo_secondary_defNon-Frontline mode AP ammo datum
can_change_ammoIf the gun has switchable ammo types
drum_cover_overlayIf the gun should have custom overlay for cover depending on whether it has a drum or not
frontline_enabledWhether Frontline mode is toggled on
gun_factionIFF and motion detector faction of the gun
has_coverIf the gun has a cover that should be opened in order to reload
iff_enabledWhether IFF mode is toggled on
requires_batteryWhether the smartgun requires a battery
requires_harnessWhether the smartgun requires a harness to use
requires_powerWhether the smartgun drains the battery (Ignored if requires_battery is false)
secondary_toggledWhether we are using AP ammo currently

Var Details

ammo_primary

The current normal ammo datum

ammo_primary_alt

Frontline mode normal ammo datum

ammo_primary_def

Non-Frontline mode normal ammo datum

ammo_secondary

The current AP ammo datum

ammo_secondary_alt

Frontline mode AP ammo datum

ammo_secondary_def

Non-Frontline mode AP ammo datum

can_change_ammo

If the gun has switchable ammo types

drum_cover_overlay

If the gun should have custom overlay for cover depending on whether it has a drum or not

frontline_enabled

Whether Frontline mode is toggled on

gun_faction

IFF and motion detector faction of the gun

has_cover

If the gun has a cover that should be opened in order to reload

iff_enabled

Whether IFF mode is toggled on

requires_battery

Whether the smartgun requires a battery

requires_harness

Whether the smartgun requires a harness to use

requires_power

Whether the smartgun drains the battery (Ignored if requires_battery is false)

secondary_toggled

Whether we are using AP ammo currently