TurretWeapon
< Modding | ComponentsModding/Components/TurretWeapon
Jump to navigation
Jump to search
Code locations (what's this?):
• Cosmoteer.Ships.Parts.Weapons.TurretWeapon
• Cosmoteer.Ships.Parts.Weapons.TurretWeaponRules
A weapon that can rotate to aim at its target.
This official description is slightly misleading, as it's used by Missile & mine launchers, which never actually rotate.
Inherits from Weapon (modding)
.
Used by all base game weapons except Ion beam emitter and Railgun launcher.
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
FiringArc | Angle | Yes | Yes | - | How far to the sides this turret can turn.
Missile & mine launchers have "0d", meaning they don't actually turn at all. |
TargetingRange | Float? | - | Yes | - | |
TargetingArc | Angle? | - | Yes | - | |
ValidRange | Float? | - | Yes | - | |
ValidArc | Angle? | - | Yes | - | How far to the sides this turret can start shooting at a target.
Missile & mine launchers have their true arc here : "360d". If you reduced this value, you would have a launcher that can't shoot at things behind it. (See example mods below) |
RotateSpeed | Angle | Yes | Yes | - | |
ReturnToCenter | bool | - | - | true | |
FireThresholdAngle | Angle | Yes | Yes | - | |
AllowFireWithBlockedLOS | bool | - | - | - | |
AllowFireInFogOfWar | bool | - | - | - | |
BlueprintArcSprite | ISprite? | - | - | - | |
BlueprintArcRadius | Float | - | - | - | |
BlueprintArcSpriteSegments | int | - | - | - | |
CoverageSectorArc | CircleRenderer? | - | - | - | |
TargetSearchesPerSecond | Float | - | Yes | 2 | |
InstantSearchesAfterTargetLost | int | - | - | 1 | |
TargetChecksPerSearch | int | - | Yes | 1 | |
HoldTargetWhileFiring | Time | - | - | - | How many seconds this turret can't rotate after firing.[1]If you want your weapon to keep aiming at the target while firing, you should set it to 0 (or do nothing, since that seems to be the default).
Set only by |
HoldTargetAfterCancel | Time | - | - | - | |
AllowRotationToggle | ID<PartComponentRules>? | - | - | - | |
ResetRotationIfNotAllowed | bool | - | - | - | |
TargetPathThickness | Float | - | - | - | |
AutoTargets | WeaponAutoTargetRules[] | Yes | - | - | |
AutoTargetCrewSafetyDist | Float | - | - | - | |
PreventOverlappingTargets | bool | - | - | - | |
AimIncludesEmitterOffset | bool | - | - | true |
Notes
Nothing yet.
Example mods
- "Micromissile Launcher" by Dj0z : lower
ValidArc
on a missile launcher :