ProjectileRange
How far a fueled projectile may fly before it detonates wherever it happens to be, in cells.
- Applies to
- WeaponType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- distance (cells)
- When omitted
390.625
Only a projectile with Ranged=yes uses this value. The shot starts with this much fuel and spends the distance it covers on each move. When the fuel runs out, the shot detonates where it is, which stops a missile from chasing an evading target across the map. Other projectiles ignore the value.
The value comes from the weapon that fires the shot, so two weapons that share a projectile can give its shots different amounts of fuel.
[MyMissile] ; example WeaponTypeRange=12ProjectileRange=14 ; the missile can fly two cells farther than RangeProjectile=MyRocket ; a BulletType, registered by a weapon naming it as its Projectile
[MyRocket] ; example BulletTypeRanged=yesROT=20The value is in cells, and a fraction is accepted. With the key unset, a fueled projectile can fly about 390 cells before its fuel runs out.
-1 counts as not set, so it keeps whatever an earlier rules file set.
Some shots take their fuel from another setting:
- A bomblet thrown by an
AirburstWeapon=uses that weapon’sRange=. - The trigger actions that launch a cluster missile and a chemical missile use the
ProjectileRangeof the weapons namedMultiLauncherandChemLauncher.