Skip to content

1.2 Properties

XeoNovaDan edited this page Feb 29, 2020 · 5 revisions

The following is a list that details each property that TurretFrameworkExtension adds which you can specify in XML:

gunFaceDirectionOnSpawn

Type: enum
Default: Unspecified
Possible Values: North, East, South, West, Unspecified

In vanilla RimWorld, turret guns always face north when parent turret is spawned. With gunFaceDirectionOnSpawn, you can control which direction the turret's gun will face upon spawning.

When left to its default of Unspecified, the gun will face the same direction as the turret.

firingArc

Type: float
Default: 360

How many degrees around itself the turret can fire. A value of 360 means that the turret can fire all around itself (vanilla behaviour), and for instance, a value of 180 would mean that the turret can fire in a semicircle around the direction it's facing.

useManningPawnShootingAccuracy

Type: bool
Default: true
Note: This is only relevant to turrets with CompProperties_Mannable

Whether or not the manned turret will use the ShootingAccuracyPawn stat of the pawn manning it instead of its own ShootingAccuracyTurret stat.

useManningPawnAimingDelayFactor

Type: bool
Default: true
Note: This is only relevant to turrets with CompProperties_Mannable

Whether or not the turret's warmup time scales with the AimingDelayFactor stat of the pawn manning it.

mannerShootingAccuracyOffset

Type: float
Default: 0
Note: This is only relevant to turrets with CompProperties_Mannable.

When a colonist mans a turret, their ShootingAccuracyPawn stat gets increased by this amount. For reference, the Careful Shooter trait offsets ShootingAccuracyPawn by 5, and Trigger-Happy offsets it by -5.

canForceAttack

Type: bool
Default: false
Note: This is only relevant to turrets without CompProperties_Mannable

Setting canForceAttack to true on an automatic turret allows the player to prioritize targets for that turret to fire at, just like how they can prioritise targets with colonists and their manned turrets.

affectedByEMP

Type: bool
Default: true

Whether or not the turret will be stunned when it takes EMP damage.

Next: An Example