Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/Content/Items/Tools/tools.xml
T
Alex Noir bd646fb23e Implements identity system! If your mask hides your face (e.g. oxygen mask, clown mask and diving suit), the game will either use the name of the ID card owner in your ID card slot or will give you a "?" name.
This only affects "DisplayName". The reason why I can't completely override the .Name for the client from server is due to how crew manifest and CharacterInfo classes are handled - it would require a major rework of many Character-related systems and interactions to truly make this "hack-proof".
Server hosts will have to stay on their toes I guess.
2017-12-16 19:52:25 +03:00

301 lines
9.9 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Items>
<Item
name="Welding Tool"
category="Equipment"
Tags="smallitem"
price="100"
description="One of the most crucial tools on board the submarine. Also works underwater.">
<Sprite texture ="tools.png" sourcerect="0,17,41,17" depth="0.55"/>
<!-- the item takes 10 seconds to break down in a deconstructor and turns into a polycarbonate bar and a steel bar -->
<Deconstruct time="10">
<Item name="Polycarbonate Bar"/>
<Item name="Steel Bar"/>
<Item name="Aluminium"/>
</Deconstruct>
<!-- physics body -->
<Body width="41" height="17" density="40"/>
<!-- the character will hold the item 50 pixels in front of him, with his hands at the handle1 and handle2 positions -->
<Holdable slots="Any,RightHand+LeftHand" controlpose="true"
aimpos="50,0" handle1="-17,0" handle2="10,0"/>
<RepairTool structurefixamount="5.0" limbfixamount="-0.5" range="100" barrelpos="19,8" particles="weld">
<!-- the item must contain a welding fuel tank for it to work -->
<RequiredItems name="Welding Fuel Tank" type="Contained" msg="Welding fuel required"/>
<sound file="weldingTool.ogg" type="OnUse" range="500.0" loop="true"/>
<!-- when using, the contained welding fuel tank will detoriate (= lose fuel) -->
<StatusEffect type="OnUse" target="Contained" targetnames="Welding Fuel Tank" Condition="-1.0"/>
<!-- welding a door, it will get stuck after a while -->
<StatusEffect type="OnUse" target="UseTarget" targetnames="Door,Windowed Door" Stuck="20.0" Condition="3.0"/>
<!-- the tool can fix structures, i.e. walls and windows -->
<Fixable name="structure"/>
<!-- construction skill 20 required to use the item -->
<RequiredSkill name="Construction" level="20"/>
<StatusEffect type="OnFailure" target="Contained" targetnames="Welding Fuel Tank,Oxygen Tank" Condition="-3.0"/>
<LightComponent LightColor="1.0,0.9,0.7,1.0" Flicker="0.5">
<sprite texture="Content/Items/Electricity/lightsprite.png" origin="0.5,0.5"/>
</LightComponent>
</RepairTool>
<!-- one welding fuel or oxygen tank can be contained inside the welding tool -->
<ItemContainer capacity="1" hideitems="false" itempos="-17,-21">
<Containable name="Welding Fuel Tank"/>
<Containable name="Oxygen Tank"/>
</ItemContainer>
</Item>
<Item
name="Plasma Cutter"
category="Equipment"
Tags="smallitem"
price="100"
description="Cuts through various materials using a jet of ionized oxygen.">
<Deconstruct time="10">
<Item name="Polycarbonate Bar"/>
<Item name="Steel Bar"/>
<Item name="Aluminium"/>
</Deconstruct>
<Sprite texture ="tools.png" sourcerect="0,0,41,16" depth="0.55"/>
<Body width="41" height="16" density="40"/>
<Holdable slots="Any,RightHand+LeftHand" controlpose="true"
aimpos="50,0" handle1="-12,4"/>
<RepairTool structurefixamount="-2.0" limbfixamount="-0.5" range="100" barrelpos="28,8" particles="plasma">
<RequiredItems name="Oxygen Tank" type="Contained" msg="Oxygen tank required"/>
<StatusEffect type="OnUse" target="Contained" targetnames="Oxygen Tank" Condition="-1.0"/>
<StatusEffect type="OnUse" target="UseTarget" targetnames="Door,Windowed Door" Stuck="-20.0" Condition="-3.0"/>
<sound file="plasmaCutter.ogg" type="OnUse" range="500.0" loop="true"/>
<Fixable name="structure"/>
<RequiredSkill name="Construction" level="30"/>
<StatusEffect type="OnFailure" target="Contained" targetnames="Welding Fuel Tank,Oxygen Tank" Condition="-3.0"/>
<LightComponent LightColor="0.8,0.7,1.0,1.0" Flicker="0.5">
<sprite texture="Content/Items/Electricity/lightsprite.png" origin="0.5,0.5"/>
</LightComponent>
</RepairTool>
<ItemContainer capacity="1" hideitems="false" itempos="9,-15">
<Containable name="Welding Fuel Tank"/>
<Containable name="Oxygen Tank"/>
</ItemContainer>
</Item>
<Item
name="Welding Fuel Tank"
category="Equipment"
Tags="smallitem"
price="50">
<Deconstruct time="10">
<Item name="Steel Bar"/>
</Deconstruct>
<Sprite texture ="tools.png" sourcerect="52,31,12,33" depth="0.55"/>
<Body width="12" height="33" density="5"/>
<Holdable slots="Any,RightHand,LeftHand" holdpos="30,-15" handle1="0,5" handle2="0,-5">
<StatusEffect type="OnFire" target="This" Condition="-100.0" disabledeltatime="true">
<sound file="Content/Items/Reactor/explosion.ogg"/>
<Explosion range="250.0" structuredamage="15" damage="25" stun="5" force="3.0"/>
</StatusEffect>
</Holdable>
</Item>
<Item
name="Fire Extinguisher"
category="Equipment"
Tags="smallitem"
price="100"
description="A handheld carbon dioxide extinguisher.">
<Deconstruct time="10">
<Item name="Polycarbonate Bar"/>
<Item name="Steel Bar"/>
</Deconstruct>
<Sprite texture ="extinguisher.png" depth="0.55" sourcerect="0,0,34,64" origin="0.4,0.5"/>
<Body radius="10" height="45" density="5"/>
<Holdable slots="Any,RightHand+LeftHand" controlpose="false"
aimpos="40,-20" handle1="-2,30"/>
<RepairTool extinquishamount="30.0" range="300" barrelpos="21,25" particles="extinguisher" particlespeed="650.0">
<StatusEffect type="OnUse" target="This" Condition="-2.0"/>
<sound file="extinguisher.ogg" type="OnUse" range="500.0" loop="true"/>
</RepairTool>
<Propulsion force="-20" usablein="water" particles="bubbles"/>
</Item>
<Item
name="Screwdriver"
category="Equipment"
Tags="smallitem"
price="10">
<Sprite texture ="tools.png" sourcerect="0,58,31,6" depth="0.55"/>
<Body width="31" height="6" density="50"/>
<Holdable slots="Any,RightHand,LeftHand"
holdangle="30" handle1="-10,0"/>
</Item>
<Item
name="Wrench"
category="Equipment"
Tags="smallitem"
price="10">
<Sprite texture ="tools.png" sourcerect="0,50,26,7" depth="0.55"/>
<Body width="30" height="7" density="50"/>
<MeleeWeapon slots="Any,RightHand,LeftHand"
aimpos="50,0" handle1="-5,0" holdangle="30" reload="1.0">
<Attack damage="5" stun="0.2" damagetype="Blunt" sound="Content/Items/Weapons/smack.ogg"/>
</MeleeWeapon>
</Item>
<Item
name="Crowbar"
category="Equipment"
Tags="smallitem"
price="10">
<Sprite texture ="tools.png" sourcerect="0,65,64,12" depth="0.55"/>
<Body width="60" height="10" density="50"/>
<MeleeWeapon slots="Any,RightHand,LeftHand"
aimpos="50,0" handle1="-5,0" holdangle="30" reload="1.7">
<Attack damage="10" stun="0.4" damagetype="Blunt" sound="Content/Items/Weapons/smack.ogg"/>
</MeleeWeapon>
</Item>
<Item
name="Handheld Sonar"
category="Equipment"
Tags="smallitem"
price="10">
<Sprite texture ="tools.png" sourcerect="42,0,22,9" depth="0.55"/>
<Body width="31" height="6" density="40"/>
<Holdable slots="Any,RightHand,LeftHand"
holdangle="30" handle1="-10,0"/>
<Radar range="6000.0" powerconsumption="10" drawhudwhenequipped="true" detectsubmarinewalls="true" displaybordersize="0.2">
<StatusEffect type="OnUse" target="Contained" Condition="-1.0" disabledeltatime="true"/>
<sound file="Content/Items/Engine/radarPing.ogg" type="OnUse" range="1000.0"/>
<GuiFrame rect="0,0,0.5,0.5" alignment="Center" style="ItemUI"/>
<PingCircle texture="Content/Items/Engine/pingCircle.png" origin="0.5,0.5"/>
<ScreenOverlay texture="Content/Items/Engine/radarOverlay.png" origin="0.5,0.5"/>
<Blip texture="Content/Items/Engine/radarBlip.png" origin="0.5,0.5"/>
</Radar>
<ItemContainer capacity="1" hideitems="true">
<Containable name="Battery Cell, Fulgurium Battery Cell">
<StatusEffect type="OnContaining" target="This" Voltage="1.0" setvalue="true"/>
</Containable>
</ItemContainer>
</Item>
<Item
name="Flashlight"
category="Equipment"
Tags="smallitem"
price="10">
<Deconstruct time="15">
<Item name="Copper Bar"/>
<Item name="Polycarbonate Bar"/>
</Deconstruct>
<Sprite texture ="tools.png" sourcerect="0,36,27,11" depth="0.55"/>
<Body width="27" height="10" density="15"/>
<Holdable slots="Any,RightHand,LeftHand" aimpos="100,0" handle1="0,0">
<StatusEffect type="OnActive" target="Contained" Condition="-0.2"/>
</Holdable>
<LightComponent LightColor="1.0,1.0,1.0,1.0" Flicker="0.1" range="800" powerconsumption="10" IsOn="true">
<LightTexture texture="Content/Lights/lightcone.png" origin="0.0, 0.5" size="2.0,1.0"/>
</LightComponent>
<ItemContainer capacity="1" hideitems="true">
<Containable name="Battery Cell, Fulgurium Battery Cell">
<StatusEffect type="OnContaining" target="This" Voltage="1.0" setvalue="true"/>
</Containable>
</ItemContainer>
</Item>
<Item
name="Flare"
category="Equipment"
price="5"
spritecolor="1.0,0.0,0.0,1.0"
tags="smallitem">
<Deconstruct time="10">
<Item name="Phosphorus"/>
<Item name="Aluminium"/>
</Deconstruct>
<Sprite texture ="tools.png" sourcerect="0,38,21,7" depth="0.55"/>
<Body width="21" height="7" density="12"/>
<Throwable slots="Any,RightHand,LeftHand" holdpos="0,0" handle1="0,0" throwforce="4.0" aimpos="35,-10"/>
<LightComponent LightColor="1.0,0.0,0.0,1.0" Flicker="0.5" range="600" IsOn="false">
<StatusEffect type="OnUse" target="This" IsOn="true"/>
<StatusEffect type="OnActive" target="This" Condition="-1.0">
<ParticleEmitter particle="flare" particlespersecond="30"/>
<ParticleEmitter particle="bubbles" particlespersecond="30"/>
</StatusEffect>
<StatusEffect type="OnBroken" target="This" IsOn="false"/>
<sound file="flare.ogg" type="OnActive" range="800.0" loop="true"/>
</LightComponent>
</Item>
</Items>