Ranged
Gives the projectile a fuel supply, detonating it once it has flown the firing weapon's projectile range.
- Applies to
- BulletType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- boolean
- When omitted
no
The projectile carries a flight allowance and detonates wherever it is when the allowance runs out. Each game frame, the distance it moved is taken off the allowance. Homing and ballistic projectiles spend it the same way.
The allowance is the firing weapon’s ProjectileRange, not its Range. Range is how far away the weapon may fire from, and ProjectileRange is how far the shot may then travel. A weapon that does not set ProjectileRange gives its projectile about 390 cells, so a Ranged=yes projectile needs ProjectileRange on its weapon to run out in practice.
A bomblet released by a Splits=yes projectile takes its allowance from its AirburstWeapon’s Range instead.
[MYROCKET] ; a BulletType, registered by a weapon naming it as its ProjectileImage=MISSILEROT=5Ranged=yes
[MyRocketLauncher] ; a WeaponType, registered by an object naming it as its PrimaryProjectile=MYROCKETRange=7ProjectileRange=9 ; the rocket may fly 9 cells, 2 more than the firing range