Skip to content

Projectile

The BulletType the weapon launches.

Specification
Applies to
WeaponType
File
rules.ini
Section
[<ObjectType ID>]
Value
class
When omitted
none

The projectile controls how the shot travels and what it may be aimed at. The weapon controls how hard the shot hits and how often it fires. Homing, arcing, bouncing, burning fuel and whether the shot is drawn at all belong to the named BulletType. So do the AA and AG flags, which decide whether the weapon may fire at objects in the air and on the ground. Those two flags and the AV flag also decide which targets an object scanning for one considers.

rules.ini
[MyMissileGun] ; example WeaponType
Projectile=MyRocket ; a BulletType, registered by a weapon naming it as its Projectile
Warhead=AP ; a WarheadType registered in [Warheads]
Damage=60
Range=8
[MyRocket] ; example BulletType
ROT=20
AA=yes

The projectile also decides whether the weapon’s Speed= is used. When the projectile does not home (ROT=0), the weapon’s launch speed is worked out from its Range= after the rules have been read, replacing Speed=.

A name that matches no known projectile creates a new BulletType of that name. A misspelled name therefore gives the weapon a projectile with none of the intended settings instead of an error. Projectile= with nothing after the = counts as not set and keeps whatever an earlier rules file set.