Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
Denis1979

Спавн зомби в events

Здравствуйте. Есть  проблема.

Создаю в events событие.

<event name="Static_Blok_Post_Hard">
        <nominal>25</nominal>
        <min>25</min>
        <max>25</max>
        <lifetime>1800</lifetime>
        <restock>0</restock>
        <saferadius>1000</saferadius>
        <distanceradius>500</distanceradius>
        <cleanupradius>500</cleanupradius>
        <secondary>InfectedBlokPostHard</secondary>
        <flags deletable="1" init_random="0" remove_damaged="0"/>
        <position>fixed</position>
        <limit>child</limit>
        <active>1</active>
        <children/>
	</event>

Далее в <secondary>InfectedBlokPostHard</secondary> создаю порождение события с зомбями.

<event name="InfectedBlokPostHard">
        <nominal>0</nominal>
        <min>0</min>
        <max>0</max>
        <lifetime>3</lifetime>
        <restock>0</restock>
        <saferadius>50</saferadius>
        <distanceradius>200</distanceradius>
        <cleanupradius>200</cleanupradius>
        <flags deletable="1" init_random="0" remove_damaged="0"/>
        <position>player</position>
        <limit>child</limit>
        <active>1</active>
        <children>
            <child lootmax="0" lootmin="0" max="0" min="1" type="Zombi_XZ_Loner_Zorya"/>
            <child lootmax="0" lootmin="0" max="0" min="1" type="Zombi_XZ_Duty_Zorya"/>
			<child lootmax="0" lootmin="0" max="0" min="2" type="Mutant_XZ_Krovosos1"/> 
            <child lootmax="0" lootmin="0" max="0" min="1" type="Zombi_XZ_Freedom_Zorya"/>
            <child lootmax="0" lootmin="0" max="0" min="1" type="Zombi_XZ_Monolith_Zorya"/>        
        </children>
	</event>

Получается что движок видит только последний  <child lootmax="0" lootmin="0" max="0" min="1" type="Zombi_XZ_Monolith_Zorya"/>  т.е спавнит зомбей только последней строки. Хотя теоретически должен спавнить все 5 строк. Максимум что может быть, это спавн двух зомбей из предпоследней строки. На всякий случай выкладываю настройки cfgeventspawns.xml.

<event name="Static_Blok_Post">
	    <zone smin="0" smax="0" dmin="1" dmax="1" r="75" />
		<pos x="9631.83" z="11281.70" a="0" group="Blok_Post_1"/>
		<pos x="7691.93" z="11411.30" a="0" group="Blok_Post_2"/>
		<pos x="6099.66" z="10659.70" a="0" group="Blok_Post_3"/>
		<pos x="5967.49" z="10059.80" a="0" group="Blok_Post_4"/>
</event>

Может кто сталкивался с такой проблемой?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
<child lootmax="8" lootmin="2" max="0" min="1" type="Zombi_XZ_Loner_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Duty_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="2" type="Mutant_XZ_Krovosos1"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Freedom_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Monolith_Zorya"/>
        

Попробуй, но нет  гарантии что сработает.

Share this post


Link to post
Share on other sites



  • 0
21 минуту назад, paranoyk сказал:

<child lootmax="8" lootmin="2" max="0" min="1" type="Zombi_XZ_Loner_Zorya"/> <child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Duty_Zorya"/> <child lootmax="2" lootmin="1" max="0" min="2" type="Mutant_XZ_Krovosos1"/> <child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Freedom_Zorya"/> <child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Monolith_Zorya"/>


<child lootmax="8" lootmin="2" max="0" min="1" type="Zombi_XZ_Loner_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Duty_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="2" type="Mutant_XZ_Krovosos1"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Freedom_Zorya"/>
<child lootmax="2" lootmin="1" max="0" min="1" type="Zombi_XZ_Monolith_Zorya"/>
        

Попробуй, но нет  гарантии что сработает.

Похоже до меня дошло.....

Ванильные инвенты 

<event name="InfectedArmy">
        <nominal>50</nominal>
        <min>25</min>
        <max>250</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="30" type="ZmbM_PatrolNormal_Autumn"/>
            <child lootmax="5" lootmin="0" max="0" min="10" type="ZmbM_PatrolNormal_Flat"/>
            <child lootmax="5" lootmin="0" max="0" min="20" type="ZmbM_PatrolNormal_PautRev"/>
            <child lootmax="5" lootmin="0" max="0" min="10" type="ZmbM_PatrolNormal_Summer"/>
            <child lootmax="5" lootmin="0" max="0" min="20" type="ZmbM_SoldierNormal"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_normal_Desert"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_normal_Woodland"/>
        </children>
    </event>
    <event name="InfectedArmyHard">
        <nominal>50</nominal>
        <min>25</min>
        <max>250</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="20" type="ZmbM_PatrolNormal_Autumn"/>
            <child lootmax="5" lootmin="0" max="0" min="10" type="ZmbM_PatrolNormal_Flat"/>
            <child lootmax="5" lootmin="0" max="0" min="20" type="ZmbM_PatrolNormal_PautRev"/>
            <child lootmax="5" lootmin="0" max="0" min="10" type="ZmbM_PatrolNormal_Summer"/>
            <child lootmax="5" lootmin="0" max="0" min="20" type="ZmbM_SoldierNormal"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_Heavy_Woodland"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_Officer_Desert"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_normal_Desert"/>
            <child lootmax="5" lootmin="0" max="0" min="5" type="ZmbM_usSoldier_normal_Woodland"/>
        </children>
    </event>

Если сложим все min="5" во всех ванильных инвентах получаем 100, это блин процентное соотношение а не количество!!! А количество определяет <zone smin="0" smax="0" dmin="1" dmax="1" r="75" /> блин, столько мучался.

Share this post


Link to post
Share on other sites
  • 0

Бинго!!!

В cfgeventspawns.xml строка <zone smin="0" smax="0" dmin="1" dmax="1" r="75" /> определяет количество сущностей на одну постройку (допустим 7 построек, в этом случае <zone smin="0" smax="0" dmin="1" dmax="1" r="75" /> будут появляться 7 динамических сущностей, если была бы <zone smin="0" smax="0" dmin="2" dmax="2" r="75" />  то появиться 14 динамических сущностей, а 

        <children>
            <child lootmax="0" lootmin="2" max="0" min="20" type="Zombi_XZ_Loner_Zorya"/>
			<child lootmax="0" lootmin="1" max="0" min="20" type="Zombi_XZ_Duty_Zorya"/>
			<child lootmax="0" lootmin="1" max="0" min="20" type="Mutant_XZ_Krovosos1"/>
			<child lootmax="0" lootmin="1" max="0" min="20" type="Zombi_XZ_Freedom_Zorya"/>
			<child lootmax="0" lootmin="1" max="0" min="20" type="Zombi_XZ_Monolith_Zorya"/>        
        </children>

в events.xml, в моем случае показано по 20% каждой сущности итого 100%.

Edited by Denis1979 (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.