danielspoa
Refugee
Hi guys. This is something I tried to do myself and I faced a problem, so I'm looking for help. I reenabled the jail door mixing old code with the model that is still in the game files, but had trouble working with collisions. Basically I want to allow gunfire and arrows through it. I want to block movement, melee, rockets.
However after some testing I noticed every time I add the movement collide it also blocks arrows and rockets independently of those settings (I WANT to block rockets indeed, just that I noticed that too). Gunfire still goes through.
I assume I'm doing something wrong with the new properties but.. any help to set the collision correctly is greatly appreciated. I can do the rest again if needed.
thanks!
----
this is what I have right now. Consider I don't know what all the properties do so I was playing around some of them.
edit: ignore the remove line in the end, it's an unrelated change I made. I'm aware I need the rocket collide as well on the jaildoor, it's just the moment I copied the code. Thanks guys!!
However after some testing I noticed every time I add the movement collide it also blocks arrows and rockets independently of those settings (I WANT to block rockets indeed, just that I noticed that too). Gunfire still goes through.
I assume I'm doing something wrong with the new properties but.. any help to set the collision correctly is greatly appreciated. I can do the rest again if needed.
thanks!
----
this is what I have right now. Consider I don't know what all the properties do so I was playing around some of them.
Code:
<config>
<append xpath="/blocks">
<block name="jailDoor">
<property name="Class" value="DoorSecure"/>
<property name="Material" value="Msteel"/>
<property name="MaxDamage" value="2500"/>
<property name="CustomIcon" value="jailDoorStatic"/>
<property name="Shape" value="ModelEntity"/>
<property name="LightOpacity" value="0"/>
<property name="UseGlobalUV" value="Local"/>
<property name="Tag" value="Door"/>
<property name="Place" value="Door"/> <!-- build restriction -->
<property name="PlaceEverywhere" value="true"/>
<property name="DisplayType" value="blockMulti" />
<property name="Model" value="Entities/Doors/jail_doorPrefab"/>
<property name="ModelOffset" value="0,.5,0"/>
<property name="MultiBlockDim" value="1,2,1"/>
<property name="ImposterExcludeAndStop" value="true"/>
<property name="DescriptionKey" value="Made of steel the jail door is not as strong as a solid vault door, but allows you to shoot small projectiles through it."/>
<property name="OpenSound" value="open_door_jail"/>
<property name="CloseSound" value="close_door_jail"/>
<property name="Collide" value="movement,melee"/> <!-- -rocket -->
<property class="RepairItems"> <property name="forgedSteel" value="18"/> </property>
<drop event="Harvest" name="" count="0" tool_category="Disassemble"/>
<drop event="Destroy" count="0"/>
<drop event="Destroy" name="spring" count="0,2" prob="1" tool_category="Disassemble"/>
<drop event="Destroy" name="mechanicalParts" count="0,2" prob="1" tool_category="Disassemble"/>
<drop event="Harvest" name="scrapIron" count="20,60"/>
<property name="EconomicValue" value="30"/>
<drop event="Fall" name="scrapMetalPile" count="1" prob="0.75" stick_chance="1"/>
<property name="Group" value="Building"/>
<property name="FilterTags" value="fdecor,fother,fwindows,fdoors"/>
<property name="SortOrder1" value="7060"/>
<property name="SortOrder2" value="0061"/> <!-- SortDoors -->
</block>
</append>
<remove xpath="/blocks/block[@name='glassBusinessPlate']/property[@class='UpgradeBlock']"/>
</config>
Last edited by a moderator: