energy  
| Vars | |
| ammo_type | What projectiles can this gun shoot? | 
|---|---|
| can_be_lensed | Can it use a lens | 
| can_charge | If set to FALSE, the gun cannot be recharged in a recharger. | 
| can_fit_in_turrets | Do you want the gun to fit into a turret, defaults to TRUE, used for if a energy gun is too strong to be in a turret, or does not make sense to be in one. | 
| cell | What type of power cell this uses | 
| cell_type | The specific type of power cell this gun has. | 
| charge_sections | How many lights are there on the gun's item sprite indicating the charge level? | 
| current_lens | Current lens | 
| inhand_charge_sections | How many lights are there on the gun's in-hand sprite indicating the charge level? | 
| overlay_set | If the item uses a shared set of overlays instead of being based on icon_state | 
| ratio | Used when updating icon and overlays to determine the energy pips | 
| select | The state of the select fire switch. Determines from the ammo_type list what kind of shot is fired next. | 
| selfcharge | Does this gun recharge itself? Some guns (such as the M1911-P) do not use this and instead have a cell type that self-charges. | 
| shaded_charge | If this gun uses a stateful charge bar for more detail | 
Var Details
ammo_type  
What projectiles can this gun shoot?
can_be_lensed  
Can it use a lens
can_charge  
If set to FALSE, the gun cannot be recharged in a recharger.
can_fit_in_turrets  
Do you want the gun to fit into a turret, defaults to TRUE, used for if a energy gun is too strong to be in a turret, or does not make sense to be in one.
cell  
What type of power cell this uses
cell_type  
The specific type of power cell this gun has.
charge_sections  
How many lights are there on the gun's item sprite indicating the charge level?
current_lens  
Current lens
inhand_charge_sections  
How many lights are there on the gun's in-hand sprite indicating the charge level?
overlay_set  
If the item uses a shared set of overlays instead of being based on icon_state
ratio  
Used when updating icon and overlays to determine the energy pips
select  
The state of the select fire switch. Determines from the ammo_type list what kind of shot is fired next.
selfcharge  
Does this gun recharge itself? Some guns (such as the M1911-P) do not use this and instead have a cell type that self-charges.
shaded_charge  
If this gun uses a stateful charge bar for more detail