Author Topic: Enemies immune to danger areas?  (Read 5464 times)

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Enemies immune to danger areas?
« on: November 28, 2013, 12:21:43 AM »
In the survival map that was released I notice that bats will fly over the spikes and not be damaged - but when I'm making danger areas in my campaign the enemies seem to be hurt by the danger area no matter what. Am I missing something?

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Enemies immune to danger areas?
« Reply #1 on: November 28, 2013, 01:54:24 AM »
Bats in the map have protection from trap damage, check the bat xml =)

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Enemies immune to danger areas?
« Reply #2 on: November 28, 2013, 03:05:18 AM »
Bats in the map have protection from trap damage, check the bat xml =)

I checked the bat xml when I initially saw that and didn't see any strings that would hint at that. Here's the bat xml:
Code: [Select]
<actor collision="5" behavior="melee" minimap="menus/minimap.xml:enemy">
<behavior>
<dictionary>
<entry name="hp"><int>5</int></entry>
<entry name="dmg"><int>4</int></entry>
<entry name="speed"><float>0.4</float></entry>
<entry name="aggro-range"><float>7</float></entry>
<entry name="max-range"><float>20</float></entry>
<entry name="death-snd"><string>sound/monsters.xml:death_bat</string></entry>
<entry name="hit-effect"><string>effects/particles.xml:hit_bat_1</string></entry>
<entry name="hit-particle"><string>effects/particles.xml:particle_bat_1</string></entry>
</dictionary>
</behavior>


<!-- Idle -->
<sprite scale="16" random-start="true" name="east">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="northeast">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="north">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="northwest">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="west">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="southwest">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="south">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
</sprite>

<sprite scale="16" random-start="true" name="southeast">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="250">39 0 13 16</frame>
<frame time="250">52 0 13 16</frame>
<frame time="250">65 0 13 16</frame>
<frame time="250">52 0 13 16</frame>

</sprite>


<!-- Walk -->
<sprite scale="16" name="east-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="northeast-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="north-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="northwest-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="west-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="southwest-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="south-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="southeast-walk">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="150">0 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
<frame time="150">26 0 13 16</frame>
<frame time="150">13 0 13 16</frame>
</sprite>


<!-- Attack -->
<sprite scale="16" name="east-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="northeast-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="north-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="northwest-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="west-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="southwest-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="south-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>

<sprite scale="16" name="southeast-attack">
<texture>actors/bat_1.png</texture>
<origin>6 5</origin>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">0 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">26 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
<frame time="50">13 0 13 16</frame>
</sprite>
</actor>

If there is a different bat xml for the survival map, I'm not aware of any way for us to look at it as the only levels that were released were the campaign levels :/
« Last Edit: November 28, 2013, 03:08:37 AM by Pwnography »

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: Enemies immune to danger areas?
« Reply #3 on: November 28, 2013, 02:42:29 PM »
Ah sorry, yea, it's different =)

Code: [Select]
<behavior>
<dictionary>
<entry name="ignore-trap-damage"><bool>true</bool></entry>
<entry name="hp"><int>10</int></entry>
<entry name="dmg"><int>4</int></entry>
<entry name="multiplayer-scale-hp"><bool>true</bool></entry>
<entry name="speed"><float>0.6</float></entry>
<entry name="aggro-range"><float>20</float></entry>
<entry name="max-range"><float>20</float></entry>
<entry name="death-snd"><string>sound/monsters.xml:death_bat</string></entry>
<entry name="hit-effect"><string>effects/particles.xml:hit_bat_1</string></entry>
<entry name="hit-particle"><string>effects/particles.xml:particle_bat_1</string></entry>
</dictionary>
</behavior>

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: Enemies immune to danger areas?
« Reply #4 on: November 28, 2013, 02:48:02 PM »
Sweet! I'll use this code you rawk Hipshot!