disperser 
Vars | |
calexpected | what is should be |
---|---|
calibration | What it is |
coolinterval | Time to wait between safe shots in deciseconds |
link_range | How far can the disperser's front/mid/back sections be apart from eachother before we start complaining |
next_shot | Round time where the next shot can start from |
range | Range of the explosion |
skill_offset | After which skill level it starts to matter. -1, because we have to index from zero |
strength | Strength of the explosion |
tx | Coordinates for target |
Procs | |
cal_accuracy | Calculating accuracy from calibration. |
fire | Main proc to fire shells. Returns FALSE if power isn't present, charge isn't present, or fired under cooldown. Blows up if there's an obstruction. Also handles stumbling during firing of the OFD on the firing vessel. Finally checks type of target to fire the specific proc (event, ship, empty). |
fire_at_event | Handles firing at events (storms, meteors, etc). If the shot type and the event type's weakness match, it kills it. |
fire_at_sector | Handles firing at sector, empty or with a map. Has code to handle manual coordinate-based aiming, and random-aim. If coordinates are put in, gun tries to hit at the inputted coordinates, else chooses a random area. |
get_calibration | Calculating calibration. |
is_valid_setup | Checks order of parts. |
link_parts | Used to handle linking of OFD parts. If the parts are too far apart from eachother, it won't work. |
release_links | Used for destroying links when unlinked. |
reset_calibration | Resetting calibration. |
Var Details
calexpected 
what is should be
calibration 
What it is
coolinterval 
Time to wait between safe shots in deciseconds
link_range 
How far can the disperser's front/mid/back sections be apart from eachother before we start complaining
next_shot 
Round time where the next shot can start from
range 
Range of the explosion
skill_offset 
After which skill level it starts to matter. -1, because we have to index from zero
strength 
Strength of the explosion
tx 
Coordinates for target
Proc Details
cal_accuracy
Calculating accuracy from calibration.
fire
Main proc to fire shells. Returns FALSE if power isn't present, charge isn't present, or fired under cooldown. Blows up if there's an obstruction. Also handles stumbling during firing of the OFD on the firing vessel. Finally checks type of target to fire the specific proc (event, ship, empty).
fire_at_event
Handles firing at events (storms, meteors, etc). If the shot type and the event type's weakness match, it kills it.
fire_at_sector
Handles firing at sector, empty or with a map. Has code to handle manual coordinate-based aiming, and random-aim. If coordinates are put in, gun tries to hit at the inputted coordinates, else chooses a random area.
get_calibration
Calculating calibration.
is_valid_setup
Checks order of parts.
link_parts
Used to handle linking of OFD parts. If the parts are too far apart from eachother, it won't work.
release_links
Used for destroying links when unlinked.
reset_calibration
Resetting calibration.