Author Topic: Unit particles now support using mipHp / mapHp tags  (Read 1732 times)

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Unit particles now support using mipHp / mapHp tags
« on: 19 November 2014, 05:43:59 »
Like we already allow for damage particles, unit particles now allow you to use minHp / mapHP. The code has been pushed to the develop branch

example:

Code: [Select]
<skill>
<type value="produce"/>
<name value="produce_skill"/>
<ep-cost value="0" />
<speed value="300" />
<anim-speed value="300" />
<animation path="models/dungeon1.g3d" minHp="1" maxHp="160"/>

<particles value="true">
<particle-file path="no_particles.xml" minHp="1" maxHp="5998" minmaxEnabled="true"/>
<particle-file path="fire_particles.xml" minHp="5999" maxHp="6000" minmaxEnabled="true"/>
</particles>
<sound enabled="false" />
</skill>

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Unit particles now support using mipHp / mapHp tags
« Reply #1 on: 20 November 2014, 00:24:04 »
So a skill based damage particle somehow yes ?
Maybe Eliminator can give an example, how it is used ?
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios