ammo_magazine

Vars | |
aim_speed_mod | Changes the slowdown amount when wielding a weapon by this value. |
---|---|
base_ammo_icon | the default icon if MAGAZINE_SHOW_AMMO is used. |
bonus_overlay | Icon state to an overlay to add to the gun, for extended mags, box mags, and so on |
caliber | This is used for matching handfuls to each other or whatever the mag is. The #Defines can be found in __DEFINES/calibers.dm |
current_rounds | Set this to something else for it not to start with different initial counts. |
default_ammo | This is a typepath for the type of bullet the magazine holds, it is cast so that it can draw the variable handful_amount from default_ammo in create_handful() |
fill_delay | Delay for filling this magazine with another one. |
magazine_flags | flags specifically for magazines. |
max_rounds | How many rounds it can hold. |
overcharge_ammo | Generally used for energy weapons |
reload_delay | Set a timer for reloading mags. Higher is slower. |
scatter_unwielded_mod | Increases or decreases scatter chance but for onehanded firing. |
used_casings | Just an easier way to track how many shells to eject later. |
wield_delay_mod | How long ADS takes (time before firing) |
Procs | |
create_handful | This will attempt to place the ammo in the user's hand if possible. |
generate_handful | Called on a /ammo_magazine that wishes to be a handful. It generates all the data required for the handful. |
get_additional_codex_info | Any additional mechanic info specific to this magazine or the ammo in it |
match_ammo | sets greyscale for the handful if it has been specified by the ammo datum |
Var Details
aim_speed_mod

Changes the slowdown amount when wielding a weapon by this value.
base_ammo_icon

the default icon if MAGAZINE_SHOW_AMMO is used.
bonus_overlay

Icon state to an overlay to add to the gun, for extended mags, box mags, and so on
caliber

This is used for matching handfuls to each other or whatever the mag is. The #Defines can be found in __DEFINES/calibers.dm
current_rounds

Set this to something else for it not to start with different initial counts.
default_ammo

This is a typepath for the type of bullet the magazine holds, it is cast so that it can draw the variable handful_amount from default_ammo in create_handful()
fill_delay

Delay for filling this magazine with another one.
magazine_flags

flags specifically for magazines.
max_rounds

How many rounds it can hold.
overcharge_ammo

Generally used for energy weapons
reload_delay

Set a timer for reloading mags. Higher is slower.
scatter_unwielded_mod

Increases or decreases scatter chance but for onehanded firing.
used_casings

Just an easier way to track how many shells to eject later.
wield_delay_mod

How long ADS takes (time before firing)
Proc Details
create_handful
This will attempt to place the ammo in the user's hand if possible.
generate_handful
Called on a /ammo_magazine that wishes to be a handful. It generates all the data required for the handful.
get_additional_codex_info
Any additional mechanic info specific to this magazine or the ammo in it
match_ammo
sets greyscale for the handful if it has been specified by the ammo datum