Motion Detector

If you want to help with the development of Barotrauma by offering ideas, suggestions, assets or anything else, this is the right place.
User avatar
chikoeduardo
Guard
Posts: 135
Joined: Fri Feb 24, 2017 8:02 pm
Location: Chile

Motion Detector

Postby chikoeduardo » Sun Dec 03, 2017 5:24 pm

A detector similar to the Oxygen one or the Water detector but this one triggers with the presence, or the lack of, a character in the specified range. This is actually a doable object since I already added it via modding with this code in it:

Code: Select all

<Item
    name="Motion Detector"
    category="Electrical"
    Tags="smallitem"

    linkable="true"
    price="175"
    description="Sends out a signal when it detects movement.">

    <Sprite texture="signalcomp.png" depth="0.8" sourcerect="0,0,31,24"/>

    <MotionSensor range="100" canbeselected = "true"/>
   
   <Body width="31" height="24" density="30"/>

    <Holdable selectkey="Action" slots="Any,RightHand,LeftHand" msg="Detach [Wrench]" PickingTime="5.0"
              aimpos="65,-10" handle1="0,0" attachable="true" aimable="true">
      <requireditem name="Wrench" type="Equipped"/>
    </Holdable>

    <ConnectionPanel selectkey="Action" canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver,Wire" type="Equipped"/>
      <output name="state_out"/>
    </ConnectionPanel>
  </Item>


It's so useful for a number of features, including:
-Automatic Door Systems: It opens when it detects a character and closes when none is present.
-Automatic Lighting Systems: It turns on the lights when a character is in range and turns off when no characters are in range.
-Security Alarms: Wire it to an Alarm Buzzer, Emergency Siren and/or Lights that will go off when it detects a character.
-Unauthorized Access Lockdown: Instead of opening doors, it will close them and keep them like that when a character enters its detection range.
-Forced Lighting: Set range to 0 and invert the output and false output, then wire it to "Set State" of one or more lamps. It makes them take longer to turn off when the sub is losing power and they will only turn off when the power is completely gone. You can do this with the outside lighting to make the sub easier to detect by rescue shuttles or you can do this with certain lights in a submarine for creepy atmospheric purposes, since they don't dim as much but fickle more instead when the power is going down.

Those are only a few examples but yeah, cool stuff.

Crystalwarrior
Dr. Bright's Assistant
Posts: 17
Joined: Sat Nov 25, 2017 9:59 am

Re: Motion Detector

Postby Crystalwarrior » Mon Dec 04, 2017 10:18 am

Yessss! I absolutely wanted to see this in vanilla BT ever since I saw it in your mod. There's a lot of potential for this.


Return to “Collaboration”

Who is online

Users browsing this forum: No registered users and 1 guest