/datum/component/automatedfire/autofire
Vars | |
auto_fire_shot_delay | Delay between two shots when in full auto |
---|---|
automatic_delay_mult | The multiplier for how much slower the parent should fire in automatic mode. 1 is normal, 1.2 is 20% slower, 2 is 100% slower, etc. |
burst_shots_to_fire | How many bullets are fired in burst mode |
burstfire_shot_delay | Delay between two burst shots |
bursting | If we are in a burst |
callback_bursting | Callback to set bursting mode on the parent |
callback_display_ammo | Callback to ask the parent to display ammo |
callback_fire | Callback to ask the parent to fire |
callback_reset_fire | Callback to ask the parent to reset its firing vars |
callback_set_firing | Callback to set parent's fa_firing |
fire_mode | The current fire mode of the shooter |
have_to_reset_at_burst_end | If TRUE, the shooter will reset its references at the end of the burst |
shooting | If the shooter is currently shooting |
shots_fired | Count the shots fired when bursting |
Procs | |
hard_reset | We are burst firing, we can't clean the state now. We will do it when the burst is over Hard reset the autofire, happens when the shooter fall/is thrown, at the end of a burst or when it runs out of ammunition |
initiate_shot | Insert the component in the bucket system if it was not in already |
modify_burst_shots_to_fire | Setter for the number of shots in a burst |
modify_burstfire_shot_delay | Setter for burst shot delay |
modify_fire_mode | Setter for fire mode |
modify_fire_shot_delay | Setter for auto fire shot delay |
process_shot | Ask the shooter to fire and schedule the next shot if need |
stop_firing | Remove the component from the bucket system if it was in |
Var Details
auto_fire_shot_delay
Delay between two shots when in full auto
automatic_delay_mult
The multiplier for how much slower the parent should fire in automatic mode. 1 is normal, 1.2 is 20% slower, 2 is 100% slower, etc.
burst_shots_to_fire
How many bullets are fired in burst mode
burstfire_shot_delay
Delay between two burst shots
bursting
If we are in a burst
callback_bursting
Callback to set bursting mode on the parent
callback_display_ammo
Callback to ask the parent to display ammo
callback_fire
Callback to ask the parent to fire
callback_reset_fire
Callback to ask the parent to reset its firing vars
callback_set_firing
Callback to set parent's fa_firing
fire_mode
The current fire mode of the shooter
have_to_reset_at_burst_end
If TRUE, the shooter will reset its references at the end of the burst
shooting
If the shooter is currently shooting
shots_fired
Count the shots fired when bursting
Proc Details
hard_reset
We are burst firing, we can't clean the state now. We will do it when the burst is over Hard reset the autofire, happens when the shooter fall/is thrown, at the end of a burst or when it runs out of ammunition
initiate_shot
Insert the component in the bucket system if it was not in already
modify_burst_shots_to_fire
Setter for the number of shots in a burst
modify_burstfire_shot_delay
Setter for burst shot delay
modify_fire_mode
Setter for fire mode
modify_fire_shot_delay
Setter for auto fire shot delay
process_shot
Ask the shooter to fire and schedule the next shot if need
stop_firing
Remove the component from the bucket system if it was in