gun 
Vars | |
| burst_size | The number of bullets in a trigger pull. |
|---|---|
| can_bayonet | Whether or not a knife can be attached to the gun. |
| can_flashlight | Whether or not a flashlight can be attached to the gun. |
| can_holster | Whether or not the gun fits in a shoulder holster. |
| can_suppress | Whether or not a suppressor can be attached to the gun. |
| can_unsuppress | Whether or not an attached suppressor can be removed from the gun. |
| chambered | Is there currently a bullet in the chamber? |
| clumsy_check | Checks to see if the user has the clumsy trait. |
| current_skin | The skin choice if we had a reskin. |
| dual_wield_spread | Additional spread when dual wielding. |
| execution_speed | How long it takes to perform an execution with the gun. |
| fire_delay | Rate of fire for burst firing and semi auto. |
| fire_sound | Sound played when a projectile is fired. |
| fire_sound_text | The fire sound that shows in chat messages: laser blast, gunshot, etc. |
| firing_burst | Prevent the gun from firing again while already firing. |
| gun_light | Whether or not the gun has a flashlight. |
| magin_sound | Sound played when inserting a new magazine. |
| magout_sound | Sound played when ejecting a magazine. |
| options | List of reskin options. |
| recoil | Screen shake when firing. |
| restricted_species | Restrict what species can fire this gun. |
| sawn_desc | Description change if gun is sawn-off. |
| sawn_state | Whether or not the gun has been sawn-off. |
| semicd | Cooldown handler. |
| spread | Bigger values make shots less precise. |
| suppressed | Whether or not a message is displayed when fired. |
| trigger_guard | Trigger guard on the gun, hulks and ash walkers can't fire them with their big meaty fingers. |
| unique_rename | If TRUE, allows the gun to be renamed with a pen. |
| unique_reskin | Allows one-time reskinning. |
| upgrades | Weapon modifications (except bayonets, flashlights, and suppressors - these are tracked seperately). |
| weapon_weight | When dual wielding, accuracy will decrease based on weapon weight. WEAPON_HEAVY makes a weapon require two hands to fire, unless the user has TRAIT_BADASS. |
Var Details
burst_size 
The number of bullets in a trigger pull.
can_bayonet 
Whether or not a knife can be attached to the gun.
can_flashlight 
Whether or not a flashlight can be attached to the gun.
can_holster 
Whether or not the gun fits in a shoulder holster.
can_suppress 
Whether or not a suppressor can be attached to the gun.
can_unsuppress 
Whether or not an attached suppressor can be removed from the gun.
chambered 
Is there currently a bullet in the chamber?
clumsy_check 
Checks to see if the user has the clumsy trait.
current_skin 
The skin choice if we had a reskin.
dual_wield_spread 
Additional spread when dual wielding.
execution_speed 
How long it takes to perform an execution with the gun.
fire_delay 
Rate of fire for burst firing and semi auto.
fire_sound 
Sound played when a projectile is fired.
fire_sound_text 
The fire sound that shows in chat messages: laser blast, gunshot, etc.
firing_burst 
Prevent the gun from firing again while already firing.
gun_light 
Whether or not the gun has a flashlight.
magin_sound 
Sound played when inserting a new magazine.
magout_sound 
Sound played when ejecting a magazine.
options 
List of reskin options.
recoil 
Screen shake when firing.
restricted_species 
Restrict what species can fire this gun.
sawn_desc 
Description change if gun is sawn-off.
sawn_state 
Whether or not the gun has been sawn-off.
semicd 
Cooldown handler.
spread 
Bigger values make shots less precise.
suppressed 
Whether or not a message is displayed when fired.
trigger_guard 
Trigger guard on the gun, hulks and ash walkers can't fire them with their big meaty fingers.
unique_rename 
If TRUE, allows the gun to be renamed with a pen.
unique_reskin 
Allows one-time reskinning.
upgrades 
Weapon modifications (except bayonets, flashlights, and suppressors - these are tracked seperately).
weapon_weight 
When dual wielding, accuracy will decrease based on weapon weight. WEAPON_HEAVY makes a weapon require two hands to fire, unless the user has TRAIT_BADASS.