Jump to content

Modding on block that bounce zombie away?


skyraven

Recommended Posts

inspired by Fortnite STW, I'm thinking of making a mod block (trap) that apply zero damage but bounce the zombie away (just like vehicle that bang the zombie away, this block will launch the zombie to the sky). I dont think the effect are from applying the Buff anymore, it should have something to do with the ragdoll collision physic.

can someone point me the direction on this topic ?

 

Thank you.

 

Link to comment
Share on other sites

Something like this?  There is a class called JumpPad that will launch a zombie vertical.  In this example i edited the code to add a horizonal vector, but you get the idea.

 

 

        <block name="JumpPad">
            <property name="Shape" value="ModelEntity" />
            <property name="Model" value="#@modfolder:Resources/JumpPlate.unity3d?JumpPlate"/> <!-- or use a vanilla switchplate  -->
            <property name="Collide" value="sight,movement,melee,bullet,arrow,rocket"/>
            <property name="Class" value="JumpPad" /> 
            <property name="StabilitySupport" value="true"/>
            <drop event="Destroy" count="0" />
            <property name="Material" value="Mwood"/>
            <property name="ImposterExclude" value="true"/>
            <property name="ImposterDontBlock" value="true"/>
            <property name="CreativeMode" value="Player"/>
            <property name="CanPlayersSpawnOn" value="true"/>
            <property name="CanPickup" value="true"/>
        </block>     

Link to comment
Share on other sites

2 hours ago, xyth said:

Something like this?  There is a class called JumpPad that will launch a zombie vertical.  In this example i edited the code to add a horizonal vector, but you get the idea.

 

 

        <block name="JumpPad">
            <property name="Shape" value="ModelEntity" />
            <property name="Model" value="#@modfolder:Resources/JumpPlate.unity3d?JumpPlate"/> <!-- or use a vanilla switchplate  -->
            <property name="Collide" value="sight,movement,melee,bullet,arrow,rocket"/>
            <property name="Class" value="JumpPad" /> 
            <property name="StabilitySupport" value="true"/>
            <drop event="Destroy" count="0" />
            <property name="Material" value="Mwood"/>
            <property name="ImposterExclude" value="true"/>
            <property name="ImposterDontBlock" value="true"/>
            <property name="CreativeMode" value="Player"/>
            <property name="CanPlayersSpawnOn" value="true"/>
            <property name="CanPickup" value="true"/>
        </block>     

Wow !

Thank you so much for the great advice! 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...