byond - Modules - TypesVar Details - Proc Details

M56B 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
frontline_enabledWhether Frontline mode is toggled on
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

Procs

FireHaving the SG check it's config after toggling frontline mode & IFF is essential, or it won't update properly. e.g. turning IFF off, firing once, turning IFF on will let the user fire frontline bullets over friendlies if the gun doesn't check.
able_to_fireDetermines the color of the muzzle flash, depending on whether frontline mode is enabled or not. Having the SG check it's config after toggling frontline mode & IFF is essential, or it won't update properly. e.g. turning IFF off, firing once, turning IFF on will let the user fire frontline bullets over friendlies if the gun doesn't check.

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

frontline_enabled

Whether Frontline mode is toggled on

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

Proc Details

Fire

Having the SG check it's config after toggling frontline mode & IFF is essential, or it won't update properly. e.g. turning IFF off, firing once, turning IFF on will let the user fire frontline bullets over friendlies if the gun doesn't check.

able_to_fire

Determines the color of the muzzle flash, depending on whether frontline mode is enabled or not. Having the SG check it's config after toggling frontline mode & IFF is essential, or it won't update properly. e.g. turning IFF off, firing once, turning IFF on will let the user fire frontline bullets over friendlies if the gun doesn't check.