Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2016,6 +2016,16 @@ public override void ReceiveSignal(Signal signal, Connection connection)
UpdateLightComponents();
}
break;
case "set_color":
if (lightComponents != null)
{
foreach (var light in lightComponents)
{
light.LightColor = XMLExtensions.ParseColor(signal.value, false);
}
UpdateLightComponents();
}
break;
case SetAutoOperateConnection:
if (!AllowAutoOperateWithWiring) { return; }
AutoOperate = signal.value != "0";
Expand Down
46 changes: 46 additions & 0 deletions Barotrauma/Content/Items/SearchLight/searchlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8" ?>
<Items>
<Item
name=""
identifier="searchlight"
tags="searchlight"
aliases="Searchlight"
category="Machine"
focusonselected="true"
offsetonselected="780"
linkable="false"
showinstatusmonitor="false"
Scale="0.5">

<Upgrade gameversion="0.9.5.0" scale="0.5"/>

<Sprite texture="Content/Items/SearchLight/SearchLightBase.png" depth="0.01" sourcerect="0,0,98,81" canflipy="false" />

<Turret canbeselected="true" linkable="false" barrelpos="49,24" reload="999999999"
rotationlimits="180,360"
powerconsumption="10000.0"
showchargeindicator="false"
showprojectileindicator="false"
springstiffnesslowskill="25" springstiffnesshighskill="25"
springdampinglowskill="5" springdampinghighskill="5"
rotationspeedlowskill="0.5" rotationspeedhighskill="0.5">
<BarrelSprite texture="Content/Items/SearchLight/SearchLightBase.png" sourcerect="99,0,64,88" origin="0.5, 0.75" />
<LightComponent LightColor="1.0,1.0,1.0,1.0" Flicker="0.0" range="2500" directional="true" IsOn="true" powerconsumption="50" drawbehindsubs="true" ignorecontinuoustoggle="true" InheritParentIsActive="false">
<LightTexture texture="Content/Lights/lightcone.png" origin="0.0,0.5" size="1.0,1.0"/>
</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="toggle" displayname="connection.togglestate"/>
<input name="power_in" displayname="connection.powerin"/>
<input name="position_in" displayname="connection.turretaimingin"/>
<input name="set_light" displayname="connection.setlight" />
<input name="set_color" displayname="connection.setcolor" />
</ConnectionPanel>

<aitarget maxsightrange="3000" />

</Item>
</Items>
353 changes: 353 additions & 0 deletions Barotrauma/Content/Items/Weapons/chaingun.xml

Large diffs are not rendered by default.

576 changes: 576 additions & 0 deletions Barotrauma/Content/Items/Weapons/coilgun.xml

Large diffs are not rendered by default.

704 changes: 704 additions & 0 deletions Barotrauma/Content/Items/Weapons/flakcannon.xml

Large diffs are not rendered by default.

280 changes: 280 additions & 0 deletions Barotrauma/Content/Items/Weapons/pulselaser.xml

Large diffs are not rendered by default.

697 changes: 697 additions & 0 deletions Barotrauma/Content/Items/Weapons/railgun.xml

Large diffs are not rendered by default.