Skip to content

PBarrelThickness

Raises the point the first weapon's barrel pivots about.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
integer
When omitted
0

The barrel pivots this many leptons, 256 to a cell, above the mounting point that PrimaryFireFLH sets. The pivot is raised before the barrel is pitched, so the muzzle rises by the same amount at every elevation. PBarrelLength then measures along the barrel from the raised pivot.

art.ini
[MYTANK] ; the Image ID of a UnitType
PrimaryFireFLH=100,0,60
PBarrelLength=80
PBarrelThickness=12 ; lifts the muzzle onto the barrel's centerline

The weapon’s fire animation, laser beam, sonic wave and attached particle systems start at the muzzle. A structure that sets PrimaryFirePixelOffset or BarrelAnimIsVoxel=yes takes its firing point from that setting instead, and ignores this one. The projectile starts at the muzzle only for infantry. An aircraft, structure or vehicle creates it at the mounting point, which this setting does not raise.

The Elite weapon slot uses this same setting, so an elite weapon fires from the same point as the weapon it replaces.