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 decides how the shot travels and what it may be aimed at, while the weapon decides how hard it hits and how often. Whether the shot homes, arcs, bounces, burns fuel, or is drawn at all belongs to the named BulletType; so do the AA, AG and AV flags that decide which kinds of object the weapon may be fired at and, through them, what an object scanning for a target asks for.

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 choice also decides whether the weapon’s own Speed= survives: a projectile that does not home has the weapon’s launch speed recomputed from its Range= once the rules have been read.

A name the game does not already know is registered as a new projectile of that name rather than rejected, so a misspelling produces a projectile with none of the intended settings instead of an error. Writing the key with nothing after the = is a different thing again: the read finds no value and keeps whatever an earlier rules file set.