byond - Modules - TypesVar Details - Proc Details

attachable item

Vars

gun_traitsList of traits to be given to the gun itself.
sound_overrideShould only be TRUE for muzzle attachments that want to change the melee hit sound of the gun.
traits_to_giveAn assoc list in the format list(/datum/element/bullet_trait_to_give = list(...args)) that will be given to a projectile with the current ammo datum
verb_overrideShould only be TRUE for muzzle attachments that want to change the list of attack verbs for the gun.

Procs

unload_attachmentReturns TRUE if its functionality is successfully used, FALSE if gun's own unloading should proceed instead.

Var Details

gun_traits

List of traits to be given to the gun itself.

sound_override

Should only be TRUE for muzzle attachments that want to change the melee hit sound of the gun.

traits_to_give

An assoc list in the format list(/datum/element/bullet_trait_to_give = list(...args)) that will be given to a projectile with the current ammo datum

verb_override

Should only be TRUE for muzzle attachments that want to change the list of attack verbs for the gun.

Proc Details

unload_attachment

Returns TRUE if its functionality is successfully used, FALSE if gun's own unloading should proceed instead.