Author Topic: Positions of particle systems ( CHANGED in git version! )  (Read 560 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,239
    • View Profile
    • http://www.titusgames.de
Positions of particle systems ( CHANGED in git version! )
« on: 26 November 2014, 10:41:53 »
Yesterday I found out that the positions for particle systems are given relative to the units height!
This means if you change the height of a unit, its attack and unit particles are in a wrong place.

As I am sure many of the modders will adjust their mods to show the healthbar in a proper height for every unit they will run into the same problem I had too.
Thats why I changed the code and added a new feature:

In the faction.xml you can set the following now:
<flat-particle-positions value="true"/>
By this the positions of the particle systems ( attack and unit particles )
can be done based of the units centered ground position and by this height independend.

If there is no flat-particle-positions in the faction.xml or its set to false the old behaviour is used.

!!! I encourage everyone to use this switch when he starts to fiddle around with unit height to show healthbars in a good position!!!
« Last Edit: 26 November 2014, 11:48:18 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

 

anything