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

144 lines
13 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<Override>
<Items>
<Item name="" description="" identifier="coilgun" Tags="turret" category="Machine" interactthroughwalls="true" Scale="0.5" interactdistance="10" spritecolor="1.0,1.0,1.0,1.0" focusonselected="true" offsetonselected="800" linkable="true" allowedlinks="coilgunequipment">
<Sprite texture="%ModDir%/Items/overwrite_turrets.png" depth="0.01" sourcerect="768,0,256,256" canflipy="false" />
<StaticBody width="80" radius="80" />
<Turret canbeselected="false" characterusable="false" linkable="true" barrelpos="128,88" rotationlimits="180,360" powerconsumption="1000.0" showchargeindicator="true" showprojectileindicator="true" recoildistance="50" reload="0.25" springstiffnesslowskill="2" springstiffnesshighskill="50" springdampinglowskill="0.5" springdampinghighskill="10" rotationspeedlowskill="1" rotationspeedhighskill="8">
<sound file="Content/Items/Weapons/Coilgun1.ogg" range="10000" type="OnUse" />
<sound file="Content/Items/Weapons/Coilgun2.ogg" range="10000" type="OnUse" />
<sound file="Content/Items/Weapons/Coilgun3.ogg" range="10000" type="OnUse" />
<RailSprite texture="%ModDir%/Items/overwrite_turrets.png" depth="0.011" sourcerect="904,256,120,287" origin="0.64, 0.7" />
<BarrelSprite texture="%ModDir%/Items/overwrite_turrets.png" depth="0.012" sourcerect="779,256,125,333" origin="0.6, 0.8" />
<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="Content/Items/Weapons/RailgunLoop.ogg" />
<StartMoveSound file="Content/Items/Weapons/RailgunStart.ogg" />
<EndMoveSound file="Content/Items/Weapons/RailgunStop.ogg" />
<RequiredSkill identifier="weapons" level="50" />
<LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="2500" IsOn="true" drawbehindsubs="true" ignorecontinuoustoggle="true">
<LightTexture texture="%ModDir%/Lights/lightcone_gigantic.png" origin="0.0, 0.5" size="1.05,1.05" />
</LightComponent>
<ParticleEmitter particle="muzzleflashcoilgun" particleamount="1" velocitymin="50" velocitymax="100" />
<StatusEffect type="OnUse" target="This">
<Explosion range="1000.0" structuredamage="0" force="0.01" camerashake="5.0" flames="false" smoke="false" sparks="false" underwaterbubble="false" />
</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" />
</ConnectionPanel>
</Item>
<Item name="" identifier="railgun" description="" Tags="turret,slowturret" category="Machine,Weapon" interactthroughwalls="true" Scale="0.5" interactdistance="10" focusonselected="true" offsetonselected="800" linkable="true" allowedlinks="railgunammosource">
<Sprite texture="Turrets.png" depth="0.01" sourcerect="4,4,504,504" canflipy="false" />
<MinimapIcon name="Command_Weapons_Railgun" texture="Content/UI/CommandUIAtlas.png" sourcerect="640,0,128,128" />
<SwappableItem price="7500" replacementonuninstall="largeturrethardpoint" origin="256,438" swapidentifier="largeturret">
<SchematicSprite texture="Content/UI/WeaponUI.png" sourcerect="0,0,256,389" />
<SwapConnectedItem tag="periscope" swapto="periscope" />
<SwapConnectedItem tag="turretammosource" swapto="railgunloadersmall" />
</SwappableItem>
<UpgradePreviewSprite scale="3.5" texture="Content/UI/WeaponUI.png" sourcerect="140,805,102,70" origin="0.5,0.5" />
<StaticBody width="80" radius="80" />
<Turret launchimpulse="80.0" canbeselected="false" characterusable="false" linkable="true" barrelpos="250, 180" firingoffset="0,-150" rotationlimits="180,360" powerconsumption="20000.0" showchargeindicator="true" showprojectileindicator="true" recoildistance="100" springstiffnesslowskill="2" springstiffnesshighskill="50" springdampinglowskill="0.5" springdampinghighskill="10" rotationspeedlowskill="1" rotationspeedhighskill="8" MaxAngleOffset="5" AICurrentTargetPriorityMultiplier="1">
<StatusEffect type="OnUse" target="This">
<sound file="%ModDir%/Sfx/Sounds/railgun_smol_shot_sequence.ogg" range="10000" type="OnUse" volume="3.0" />
<Explosion range="1000.0" structuredamage="0" force="0.01" camerashake="10.0" flames="false" smoke="false" sparks="false" underwaterbubble="false" />
</StatusEffect>
<WeaponIndicator texture="Content/UI/WeaponUI.png" sourcerect="343,913,66,36" origin="0.227, 0.5" />
<RailSprite texture="Content/Items/Weapons/Turrets.png" origin="0.51, 0.6" sourcerect="0,512,328,512" depth="0.011" />
<BarrelSprite texture="Content/Items/Weapons/Turrets.png" origin="0.5, 0.85" sourcerect="512,0,250,672" depth="0.012" />
<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" />
<RequiredSkill identifier="weapons" level="50" />
<LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="2048" directional="true" IsOn="true" drawbehindsubs="true" ignorecontinuoustoggle="true" InheritParentIsActive="false">
<LightTexture texture="Content/Lights/lightcone.png" origin="0.0, 0.5" size="1.0,1.0" />
</LightComponent>
<ParticleEmitter particle="muzzleflashrailgun" particleamount="1" velocitymin="50" velocitymax="100" />
<Upgrade gameversion="0.15.9.0" powerconsumption="16000.0" />
</Turret>
<aitarget maxsightrange="3000" maxsoundrange="10000" 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>
<Upgrade gameversion="0.10.0.0" scale="*0.5" barrelpos="256,178" />
<SkillRequirementHint identifier="weapons" level="50" />
</Item>
<Item name=""
description=""
identifier="chaingun" Tags="turret" category="Machine,Weapon" subcategory="subweapons" interactthroughwalls="true" Scale="0.5" interactdistance="10" spritecolor="1.0,1.0,1.0,1.0" focusonselected="true" offsetonselected="750" linkable="true" allowedlinks="chaingunequipment">
<Sprite texture="Content/Items/Weapons/Loaders.png" depth="0.01" sourcerect="0,0,256,256" canflipy="false" />
<MinimapIcon name="Command_Weapons_Chaingun" texture="Content/UI/CommandUIAtlas.png" sourcerect="384,896,128,128" />
<SwappableItem price="6000" replacementonuninstall="turrethardpoint" origin="128,215" swapidentifier="basicturret">
<SchematicSprite texture="Content/UI/WeaponUI.png" sourcerect="512,0,256,389" />
<SwapConnectedItem tag="periscope" swapto="periscope" />
<SwapConnectedItem tag="turretammosource" swapto="chaingunloader" />
</SwappableItem>
<UpgradePreviewSprite scale="2.5" texture="Content/UI/WeaponUI.png" sourcerect="387,810,106,65" origin="0.5,0.5" />
<StaticBody width="80" radius="80" />
<Turret launchimpulse="100" spinningbarreldistance="45.0" firingrotationspeedmodifier="0.6" usefiringoffsetformuzzleflash="true" maxchargetime="1.0" canbeselected="false" firingoffset="-10,-370" characterusable="false" linkable="true" barrelpos="128,88" rotationlimits="180,360" powerconsumption="400.0" showchargeindicator="true" showprojectileindicator="true" recoildistance="50" reload="0.1" springstiffnesslowskill="2" springstiffnesshighskill="50" springdampinglowskill="0.5" springdampinghighskill="10" rotationspeedlowskill="1" rotationspeedhighskill="5" MaxAngleOffset="30" AICurrentTargetPriorityMultiplier="1.1" ChargeSoundWindupPitchSlide="0.3,1.0">
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot1.ogg" type="OnUse" range="10000" selectionmode="Random" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot2.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot3.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot4.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot5.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot6.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot7.ogg" type="OnUse" range="10000" />
<Sound file="%ModDir%/Sfx/Sounds/WEAPONS_chainGunShot8.ogg" type="OnUse" range="10000" />
<WeaponIndicator texture="Content/UI/WeaponUI.png" sourcerect="575,914,66,32" origin="0.227, 0.531" />
<RailSprite texture="Content/Items/Weapons/Loaders.png" depth="0.011" sourcerect="256,0,212,512" origin="0.425, 0.875" />
<SpinningBarrelSprite spriteamount="5" texture="Content/Items/Weapons/Loaders.png" depth="0.013" sourcerect="468,0,46,296" origin="0.1, 1.4" />
<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="Content/Items/Weapons/RailgunLoop.ogg" />
<StartMoveSound file="Content/Items/Weapons/RailgunStart.ogg" />
<EndMoveSound file="Content/Items/Weapons/RailgunStop.ogg" />
<ChargeSound file="Content/Items/Weapons/CHAINGUN_chargeUp_loop.ogg" volume="2" range="10000"/>
<RequiredSkill identifier="weapons" level="50" />
<LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="2500" directional="true" IsOn="true" drawbehindsubs="true" ignorecontinuoustoggle="true" InheritParentIsActive="false">
<LightTexture texture="Content/Lights/lightcone.png" origin="0.0,0.5" size="1.0,1.0" />
</LightComponent>
<ParticleEmitter particle="muzzleflashchaingun" particleamount="1" velocitymin="0" velocitymax="0" distancemin="-50" distancemax="-50" />
<ParticleEmitter particle="muzzleflash" particleamount="1" velocitymin="0" velocitymax="0" scalemin="2" scalemax="3"/>
<ParticleEmitter particle="swirlysmoke" particleamount="10" velocitymin="0" velocitymax="0" scalemin="2" scalemax="3" distancemin="-100" distancemax="50" />
<StatusEffect type="OnUse" target="This">
<Explosion range="1500.0" structuredamage="0" force="0.0" camerashake="8" flames="false" smoke="false" sparks="false" underwaterbubble="false" />
</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" />
<input name="set_auto_operate" displayname="connection.setautooperate" />
<input name="toggle_auto_operate" displayname="connection.toggleautooperate" />
</ConnectionPanel>
<Upgrade gameversion="0.19.5.0">
<Turret rotationspeedhighskill="5" />
</Upgrade>
<SkillRequirementHint identifier="weapons" level="50" />
</Item>
</Items>
</Override>