battle_rifle
Vars | |
degradation_probability | The probability of degradation increasing per shot. |
---|---|
degradation_stage | Determines the degradation stage. The higher the value, the more poorly the weapon performs. |
degradation_stage_max | Maximum degradation stage. |
emagged_projectile_damage_multiplier | What is our damage multiplier if the gun is emagged? |
emp_malfunction | Whether or not our gun is suffering an EMP related malfunction. |
explosion_timer | Our timer for when our gun is suffering an extreme malfunction. AKA it is going to explode |
max_shots_before_degradation | The max number of allowed shots this gun can have before degradation. |
maximum_speed_malus | The maximum speed malus for projectile flight speed. Projectiles probably shouldn't move too slowly or else they will start to cause problems. |
shots_before_degradation | Determines how many shots we can make before the weapon needs to be maintained. |
Procs | |
attempt_degradation | Proc to handle weapon degradation. Called when attempting to fire or immediately after an EMP takes place. |
attempt_recalibration | Called by /obj/machinery/recharger while inserted: attempts to recalibrate our gun but reducing degradation. |
fucking_explodes_you | proc to handle our detonation |
perform_extreme_malfunction | Proc to handle the countdown for our detonation |
Var Details
degradation_probability
The probability of degradation increasing per shot.
degradation_stage
Determines the degradation stage. The higher the value, the more poorly the weapon performs.
degradation_stage_max
Maximum degradation stage.
emagged_projectile_damage_multiplier
What is our damage multiplier if the gun is emagged?
emp_malfunction
Whether or not our gun is suffering an EMP related malfunction.
explosion_timer
Our timer for when our gun is suffering an extreme malfunction. AKA it is going to explode
max_shots_before_degradation
The max number of allowed shots this gun can have before degradation.
maximum_speed_malus
The maximum speed malus for projectile flight speed. Projectiles probably shouldn't move too slowly or else they will start to cause problems.
shots_before_degradation
Determines how many shots we can make before the weapon needs to be maintained.
Proc Details
attempt_degradation
Proc to handle weapon degradation. Called when attempting to fire or immediately after an EMP takes place.
attempt_recalibration
Called by /obj/machinery/recharger while inserted: attempts to recalibrate our gun but reducing degradation.
fucking_explodes_you
proc to handle our detonation
perform_extreme_malfunction
Proc to handle the countdown for our detonation