FixedWeapon
< Modding | ComponentsModding/Components/FixedWeapon
Jump to navigation
Jump to search
Code location (what's this?):
Cosmoteer.Ships.Parts.Weapons.FixedWeapon
A weapon that is fixed in a particular direction.
Inherits from Weapon (modding)
.
Used only by chaingun
, ion_beam_emitter
, ion_beam_prism
, and railgun_launcher
.
Particularly important for ion beam weapons.
Name | Type | Required? | Buffable? | Default value | Description |
---|---|---|---|---|---|
TargetingArc | Angle? | - | Yes | - | How far off-center the weapon can shoot.
If 0, the weapon needs to be facing its target head-on. Field not used at all by |
TargetingRange | Float? | - | Yes | - | ??
Not used in the base game. |
AutoTarget | WeaponAutoTargetRules | Yes | - | - | What type of things will be targeted and shot at automatically by the weapon.
Only works for weapons that use "an autotarget toggle" : Fire At Will or the last one. The other two won't work. |
AllowFireInFogOfWar | bool | - | - | - | ??
Not used in the base game. |
ChainFireToggleComponent | ID<PartComponentRules>? | - | - | - | Used only by ion_beam_emitter and ion_beam_prism , which both have IonBeamChainToggle here.
|
AutoExplicitTargetPartsFilter | EffectFilter? | - | - | - | Used only by ion_beam_emitter , which sets it to &FriendlyPrismFilter (see notes).
|
Notes
For AutoExplicitTargetPartsFilter
:
FriendlyPrismFilter
{
Enemies = false
Junk = false
OnlyPartCategories = [ion_beam_prism]
}