<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.
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..
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.
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?
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.
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.
15 comments
I have the jail door mod, and I'm trying to find away to allow shoot thru them.
Thanks
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.
I'll inform the mod author of this as well.
Thanks
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>
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..