Jump to content
S.Kaneda

Creating new event type

Recommended Posts

Hello everybody.

A friend of mine rents a server (PS4).

Now it is alowed modding XML files we try to do some cool changes to the serv.

Recently we wanted to make an event for popping Bears on helicrashs (more helicrash, more loot, more danger), so i created an event in the events.xml file (based on the InfectedArmy event name line) :

<event name="HelicoBear">
        <nominal>xx</nominal>
        <min>xx</min>
        <max>xx</max>
        <lifetime>3</lifetime>
        <restock>0</restock>
        <saferadius>200</saferadius>
        <distanceradius>0</distanceradius>
        <cleanupradius>100</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="1"/>
        <position>player</position>
        <limit>custom</limit>
        <active>1</active>
        <children>
            <child lootmax="0" lootmin="0" max="0" min="xx" type="Animal_UrsusArctos"/>
        </children>
</event>

I also modified the helicrash event like that :

<event name="StaticHeliCrash">
        <nominal>xx</nominal>
        <min>xx</min>
        <max>xx</max>
        <lifetime>1800</lifetime>
        <restock>0</restock>
        <saferadius>1000</saferadius>
        <distanceradius>1000</distanceradius>
        <cleanupradius>1000</cleanupradius>
		<secondary>HelicoBear</secondary>
        <flags deletable="1" init_random="0" remove_damaged="0"/>
        <position>fixed</position>
        <limit>child</limit>
        <active>1</active>
        <children>
            <child lootmax="20" lootmin="10" max="3" min="1" type="Wreck_Mi8"/>
            <child lootmax="20" lootmin="10" max="3" min="1" type="Wreck_UH1Y"/>
        </children>
</event>

And added this line to the cfgeventspawns.xml file :

<event name="HelicoBear" />

And i can't find any bears on helicrashs... Of course, as i deleted the secondary "infectedarmy" line, there is not army zombies anymore on crashs, so i know the xml file's loaded by serevr.

Is the way i try to do is the good one, is creating events that doesn't already exists in the game file allowed?

PS : "xx" of course are filled with numbers in my files...

Edited by S.Kaneda

Share this post


Link to post
Share on other sites

To the one who moved my topic from "general/general discussion" to "scripting" forum part, could you ask BI and answer me?

Edited by S.Kaneda

Share this post


Link to post
Share on other sites

Isn't the whole idea of modding that it's the users making their own modifications? If the devs started putting their time and effort into individual mods, it would just be single-user game development, no?
I'm sure some of the savvy forum members can help you with this. I certainly can't.

Share this post


Link to post
Share on other sites
1 hour ago, Max Planck said:

Isn't the whole idea of modding that it's the users making their own modifications? If the devs started putting their time and effort into individual mods, it would just be single-user game development, no?
I'm sure some of the savvy forum members can help you with this. I certainly can't.

Here is not game mod, but xml config files editing, reason why i posted it in general section, not modding section.

You certainly cannot answer me, but noboddy except BI devs can tel what we can do or not with their game and default xml files.

OK they have lot of things to do and no time to help their users, we know that, we play DayZ and are aware of the state of the actual game...

 

Edited by S.Kaneda

Share this post


Link to post
Share on other sites

So...

I tried something else.

To pop Z on police cars, such i already know how to do simply by using the "infectedpolice" event (and adding values to the smin and smax tags), but in a différent way, using its own created event.

First i created a new event in the dedicated "event.xml" file :

<event name="InfectedPoliceCar"> <!--+-->
        <nominal>xx</nominal>
        <min>xx</min>
        <max>xx</max>
        <lifetime>3</lifetime>
        <restock>0</restock>
        <saferadius>100</saferadius>
        <distanceradius>50</distanceradius>
        <cleanupradius>100</cleanupradius>
        <flags deletable="0" init_random="0" remove_damaged="1"/>
        <position>player</position>
        <limit>custom</limit>
        <active>1</active>
        <children>
            <child lootmax="5" lootmin="0" max="0" min="xx" type="ZmbF_PoliceWomanNormal"/>
            <child lootmax="5" lootmin="0" max="0" min="xx" type="ZmbM_PolicemanFat"/>
            <child lootmax="5" lootmin="0" max="0" min="xx" type="ZmbM_PolicemanSpecForce"/>
        </children>
</event>

Then i added the corresponding line in the StaticPoliceCar event bloc in same file :

<secondary>InfectedPoliceCar</secondary> <!--+-->

And finnaly i added a bloc in "zombie_territories.xml" file :

<territory color="1794965508"> <!-- + InfectedPoliceCar + -->
        <zone name="InfectedPoliceCar" smin="2" smax="4" dmin="0" dmax="0" x="0.00" z="0.00" r="30"/>
</territory>

And guess what, it works...

 

So why i can't make it work with bears? (even with the animalbear genuine event, modded or not, i tried that too)

What i am doing wrong?

Is that's a game limitation? A file i can't access that prevents it from working?

Can someone help me with this?

 

Edited by S.Kaneda

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×