Projectile
The BulletType the weapon launches.
- 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.
[MyMissileGun] ; example WeaponTypeProjectile=MyRocket ; a BulletType, registered by a weapon naming it as its ProjectileWarhead=AP ; a WarheadType registered in [Warheads]Damage=60Range=8
[MyRocket] ; example BulletTypeROT=20AA=yesThe 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.