byond - Modules - TypesVar Details - Proc Details

ammo_magazine

Vars

aim_speed_modChanges the slowdown amount when wielding a weapon by this value.
base_ammo_iconthe default icon if MAGAZINE_SHOW_AMMO is used.
bonus_overlayIcon state to an overlay to add to the gun, for extended mags, box mags, and so on
caliberThis is used for matching handfuls to each other or whatever the mag is. The #Defines can be found in __DEFINES/calibers.dm
current_roundsSet this to something else for it not to start with different initial counts.
default_ammoThis 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_delayDelay for filling this magazine with another one.
magazine_flagsflags specifically for magazines.
max_roundsHow many rounds it can hold.
overcharge_ammoGenerally used for energy weapons
reload_delaySet a timer for reloading mags. Higher is slower.
scatter_unwielded_modIncreases or decreases scatter chance but for onehanded firing.
used_casingsJust an easier way to track how many shells to eject later.
wield_delay_modHow long ADS takes (time before firing)

Procs

create_handfulThis will attempt to place the ammo in the user's hand if possible.
generate_handfulCalled on a /ammo_magazine that wishes to be a handful. It generates all the data required for the handful.
get_additional_codex_infoAny additional mechanic info specific to this magazine or the ammo in it
match_ammosets 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