M56B smartgun

Vars | |
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 |
Procs | |
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. |
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.