Files
barotrauma_ek/Items/Weapons/ekgunnery_heavyturrets.xml
2026-06-02 02:35:00 +03:00

76 lines
7.5 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<Items>
<!-- Heavy Turret Weapons -->
<Item name="" identifier="ekgunnery_newheavyhardpoint" Tags="ekgunnery_heavyturret,turret" category="Machine" linkable="true" allowedlinks="ekgunnery_heavyammosource" interactthroughwalls="true" Scale="0.5" interactdistance="10" spritecolor="255,255,255,255">
<Sprite texture="%ModDir%/Items/Weapons/ekgunnery_new_heavyrailgun.png" depth="0.01" sourcerect="0,800,480,128" canflipy="false" />
<SwappableItem price="0" origin="240,104" swapidentifier="heavyturret">
<SchematicSprite texture="%ModDir%/UI/ekgunnery_heavyturretschematics1.png" sourcerect="16,896,480,128" />
<SwapConnectedItem tag="periscope" swapto="blankperiscope" />
<!--<SwapConnectedItem tag="ekgunnery_heavyammosource" swapto="ekgunnery_newheavyblankloader" />-->
<SwapConnectedItem tag="ekgunnery_heavyammosource" swapto="blankloader" />
</SwappableItem>
<UpgradePreviewSprite scale="3.0" texture="%ModDir%/UI/ekgunnery_heavyturretui1.png" sourcerect="0,208,80,32" origin="0.5,0.5" Scale="1" />
<StaticBody width="80" radius="80" />
<Turret canbeselected="false" characterusable="false" linkable="true" barrelpos="240,-150">
<LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="5120" IsOn="true" drawbehindsubs="true" ignorecontinuoustoggle="true">
<LightTexture texture="Content/Lights/alphaOne.png" />
</LightComponent>
</Turret>
<ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
<RequiredItem items="screwdriver" type="Equipped" />
<input name="power_in" displayname="connection.powerin" />
<input name="position_in" displayname="connection.turretaimingin" />
<input name="trigger_in" displayname="connection.turrettriggerin" />
<input name="toggle_light" displayname="connection.togglelight" />
<input name="set_light" displayname="connection.setlight" />
</ConnectionPanel>
</Item>
<Item name="" identifier="ekgunnery_newheavyautocannonturret" Tags="ekgunnery_heavyautocannon,turret" category="Machine" linkable="true" allowedlinks="ekgunnery_heavyautocannonammosource" interactthroughwalls="true" Scale="0.5" interactdistance="10" spritecolor="255,255,255" focusonselected="true" offsetonselected="975">
<Sprite texture="%ModDir%/Items/Weapons/ekgunnery_new_heavyautocannon.png" depth="0.01" sourcerect="0,0,480,480" canflipy="false" />
<MinimapIcon name="Command_Weapons_EkGunnery_HeavyRailgun" texture="%ModDir%/UI/ekgunnery_heavyturretui1.png" sourcerect="128,0,128,128" />
<SwappableItem price="9000" replacementonuninstall="ekgunnery_newheavyhardpoint" origin="240,448" swapidentifier="heavyturret">
<SchematicSprite texture="%ModDir%/UI/ekgunnery_heavyturretschematics1.png" sourcerect="528,0,480,892" />
<SwapConnectedItem tag="periscope" swapto="periscope" />
<SwapConnectedItem tag="ekgunnery_heavyammosource" swapto="ekgunnery_newheavyautocannonloader" />
</SwappableItem>
<UpgradePreviewSprite scale="3.0" texture="%ModDir%/UI/ekgunnery_heavyturretui1.png" sourcerect="128,136,112,72" origin="0.5,0.5" Scale="1" />
<StaticBody width="160" radius="160" />
<Turret canbeselected="false" characterusable="false" linkable="true" barrelpos="240,204" rotationlimits="180,360" powerconsumption="100.0" showchargeindicator="true" showprojectileindicator="true" recoildistance="50" recoiltime="0.08" reload="0.14" spread="6" springstiffnesslowskill="4" springstiffnesshighskill="50" springdampinglowskill="1" springdampinghighskill="10" rotationspeedlowskill="2" rotationspeedhighskill="8" firingoffset="0,-525" usefiringoffsetformuzzleflash="true">
<WeaponIndicator texture="%ModDir%/UI/ekgunnery_statusicons_heavy.png" sourcerect="96,0,80,44" origin="0.245, 0.48" />
<sound file="%ModDir%/Sfx/Sounds/autocannonheavyshot1.ogg" range="6000" type="OnUse" volume="1.1" selectionmode="Random" />
<sound file="%ModDir%/Sfx/Sounds/autocannonheavyshot2.ogg" range="6000" type="OnUse" volume="1.1" />
<sound file="%ModDir%/Sfx/Sounds/autocannonheavyshot3.ogg" range="6000" type="OnUse" volume="1.1" />
<sound file="%ModDir%/Sfx/Sounds/autocannonheavyshot4.ogg" range="6000" type="OnUse" volume="1.1" />
<RailSprite texture="%ModDir%/Items/Weapons/ekgunnery_new_heavyautocannon.png" depth="0.011" sourcerect="0,512,384,512" origin="0.5, 0.725" />
<BarrelSprite texture="%ModDir%/Items/Weapons/ekgunnery_new_heavyautocannon.png" depth="0.012" sourcerect="512,0,352,609" origin="0.5, 0.9" />
<Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,0,256,256" />
<CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,0,256,256" />
<MoveSound file="%ModDir%/Sfx/Sounds/TurretLoop.ogg" />
<StartMoveSound file="%ModDir%/Sfx/Sounds/TurretStart.ogg" />
<EndMoveSound file="%ModDir%/Sfx/Sounds/TurretStop.ogg" />
<LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="3072" IsOn="true" drawbehindsubs="false" ignorecontinuoustoggle="true">
<LightTexture texture="%ModDir%/Lights/lightcone_gigantic.png" origin="0.0, 0.5" size="1.0,1.0" />
</LightComponent>
<ParticleEmitter particle="ekgunnery_newautocannonflame" particleamount="1" velocitymin="50" velocitymax="50" scalemin="1" scalemax="1" distancemin="20" distancemax="25" />
<ParticleEmitter particle="ekgunnery_newautocannonbreak" particleamount="1" velocitymin="50" velocitymax="100" scalemin="1" scalemax="1" distancemin="50" distancemax="55" />
<ParticleEmitter particle="ekgunnery_newautocannonglow" particleamount="1" anglemin="-10" anglemax="10" velocitymin="25" velocitymax="30" scalemin="1.0" scalemax="1.25" distancemin="30" distancemax="50" />
<ParticleEmitter particle="ekgunnery_newautocannonbubbles" particleamount="3" anglemin="-15" anglemax="15" velocitymin="25" velocitymax="750" scalemin="0.3" scalemax="0.5" distancemin="-50" distancemax="200" />
<ParticleEmitter particle="ekgunnery_newautocannonsmoke" particleamount="1" velocitymin="1" velocitymax="2" scalemin="5" scalemax="7" distancemin="25" distancemax="50" />
<ParticleEmitter particle="ekgunnery_newautocannonsmoke" particleamount="1" velocitymin="1" velocitymax="2" scalemin="5" scalemax="7" distancemin="125" distancemax="200" />
<StatusEffect type="OnUse" target="This">
<Explosion range="500.0" structuredamage="0" force="0.01" camerashake="3.0" shockwave="false" smoke="false" flames="false" flash="true" sparks="false" underwaterbubble="false" flashcolor="1.0,0.65,0.4" flashrange="500" flashduration="0.3" />
</StatusEffect>
</Turret>
<aitarget maxsightrange="3000" maxsoundrange="8000" fadeouttime="5" />
<ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
<GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
<RequiredItem items="screwdriver" type="Equipped" />
<input name="power_in" displayname="connection.powerin" />
<input name="position_in" displayname="connection.turretaimingin" />
<input name="trigger_in" displayname="connection.turrettriggerin" />
<input name="toggle_light" displayname="connection.togglelight" />
<input name="set_light" displayname="connection.setlight" />
</ConnectionPanel>
</Item>
</Items>