Types/ProjectileTriggerDelivery: Difference between revisions
(range_deviation description) |
(→range_deviation: range_deviation is weird. 1/2 multiplier against max. cont. on discussion pages) |
||
Line 33: | Line 33: | ||
'''Default''': 0 | '''Default''': 0 | ||
Multiplied against 1/2 max range. A deviation of .5 will appear as a maximum of .25 (25%) deviation of an initial range goal. Post-deviation range may exceed max_range or be less than min_range. | |||
=== max_range === | === max_range === |
Revision as of 07:35, 31 October 2022
Extends Types/TriggerDelivery.
Mandatory properties
projectile
Type: Types/string
Name of a Prototype/Projectile.
starting_speed
Type: Types/float
Starting speed in tiles per tick.
Optional properties
Inherits "source_effects" and "target_effects" properties from Types/TriggerDelivery.
starting_speed_deviation
Type: Types/float
Default: 0
direction_deviation
Type: Types/float
Default: 0
Maximum deviation of the projectile from source orientation, in +/- ( x radians / 2). Example: 3.14 radians -> +/- (180° / 2), meaning up to 90° deviation in either direction of rotation.
range_deviation
Type: Types/float
Default: 0
Multiplied against 1/2 max range. A deviation of .5 will appear as a maximum of .25 (25%) deviation of an initial range goal. Post-deviation range may exceed max_range or be less than min_range.
max_range
Type: Types/double
Default: 1000
min_range
Type: Types/double
Default: 0