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!!!