-
Notifications
You must be signed in to change notification settings - Fork 5
1.2 Properties
The following is a list that details each property that TurretFrameworkExtension adds which you can specify in XML:
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.
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.
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.
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.
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.
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.
Type: bool
Default: true
Whether or not the turret will be stunned when it takes EMP damage.
Next: An Example
1 - Basic Framework Extension
1.1 - Introduction
1.2 - Properties
1.3 - An Example
2 - Upgradability
2.1 - Introduction
2.2 - Properties
2.3 - An Example
3 - Miscellaneous
3.1 - Smarter Forced Targeting