7 Days To Die
0 of 0

File information

Last updated

Original upload

Created by

Xyth and DrConfused

Uploaded by

Xyth

Virus scan

Safe to use

Tags for this mod

15 comments

  1. sbangs007
    sbangs007
    • member
    • 0 kudos
    Question, what is the value that allows you to shoot thru these? Also can you help me with the extends command? Trying to make sense of that one.

    I have the jail door mod, and I'm trying to find away to allow shoot thru them.

    Thanks
    1. Xyth
      Xyth
      • member
      • 28 kudos
      <property name="Collide" value="melee,movement,rocket" /> in the blocks.xml of this modlet determines what collides with the bars. So I put melee, for melee hits, movement so player can't walk through them, and rocket, so missiles will hit them. I did not put sight, arrow, or bullet so those would pass through.

      Extends means that the block with the extends property will inherit all (most actually, some don't extend) of the properties found in the object referenced in the extend property. So in this case, the normal bars extend from the centered version, and use all of the centered versions properties except where i override those properties on the regular version by adding the same property with different values.
    2. sbangs007
      sbangs007
      • member
      • 0 kudos
      Your a life savor, adding the line <property name="Collide" value="movement,melee,rocket"/>, made the jaildoor to be shot thru with ranged weapons.

      I'll inform the mod author of this as well.
      Thanks
    3. sbangs007
      sbangs007
      • member
      • 0 kudos
      so i added that line, and here is what is weird. Bullets pass thru, but arrows hit the jail door.??

      here is the complete code.. have any ideas why arrows are still not going thru? Thanks again

      <configs>
      <append xpath="/blocks">
      <block name="jailDoor">
      <property name="Class" value="DoorSecure"/>
      <property name="Material" value="Miron"/>
      <property name="Model" value="Entities/Doors/jail_doorPrefab"/>
      <property name="Place" value="Door"/>
      <property name="CustomIcon" value="jailDoorStatic"/>
      <property name="Collide" value="movement,melee,rocket"/>
      <property name="PassThroughDamage" value="true"/>
      <property name="Shape" value="ModelEntity"/>
      <property name="Tag" value="Door"/>
      <property name="Place" value="Door"/>
      <property name="ImposterExclude" value="true"/>
      <property name="PlaceEverywhere" value="true"/>
      <property name="OpenSound" value="open_door_jail"/>
      <property name="CloseSound" value="close_door_jail"/>
      <property class="RepairItems">
      <property name="resourceForgedIron" value="10"/>
      </property>
      <property name="Group" value="Building"/>
      </block>
      </append>
      </configs>
    4. Xyth
      Xyth
      • member
      • 28 kudos
      Try removing Rocket. Rocket and arrows used to be handled the same, so maybe the code has not been updated for the door class.
    5. sbangs007
      sbangs007
      • member
      • 0 kudos
      ok will do, thanks again
    6. sbangs007
      sbangs007
      • member
      • 0 kudos
      Well, this is interesting. More testing and here are the results, for Jail Door player crafted.
      Collid command
      Rocket present or not.. rockets do not go thru.
      bullet, not present, bullets will go thru as designed.
      rocket not present, arrows still do NOT go thru
      and viola?
      movement is the key. If movement is gone, then arrows travel thru, as do players and zeds.

      So i will just note for the server, these jail doors will only allow bullets to go thru.

      Thanks for pointing me in the right direction. Appreciate it..
    7. Xyth
      Xyth
      • member
      • 28 kudos
      The issue is probably that the author is using the securedoor class which isn't used for shoot through (solid doors) in the game. I'd have to check the code, but it might not be respecting the arrow hitmask property. The solution would be to make a new custom jail door model with the colliders only on the bars and frame.
    8. sbangs007
      sbangs007
      • member
      • 0 kudos
      great, thanks for the tip. Let's see if i can figure that one out LOL
  2. Xyth
    Xyth
    • member
    • 28 kudos
    Version 1.31 adds new bar types.
  3. roxieraven327
    roxieraven327
    • supporter
    • 2 kudos
    so these only lay down? not stand up? or am i using them wrong? lol
    1. Xyth
      Xyth
      • member
      • 28 kudos
      Press the R key to activate 360 rotation, just like the iron bars in the base game.
  4. TheFlayer
    TheFlayer
    • supporter
    • 3 kudos
    Bars that you can loot through? Forgive me but I don't understand. Do these bars function the same way iron bars do? In that they can be shot through, but have increased durability?
    1. TheFlayer
      TheFlayer
      • supporter
      • 3 kudos
      Tested it myself. These are awesome! Vanilla Iron bars have 2500 durability, and these new steel bars have 7000. I can't believe these aren't in the game normally. Endorsed.
    2. Xyth
      Xyth
      • member
      • 28 kudos
      You can reach items through the bars at the gaps I left at each end. You cannot retrievever arrows and dropped items on the opposite side of iron bars but with these you can.