[BUG] Items ignoring team_name filter with halo property

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
Tonk
Posts: 5
Joined: April 15th, 2020, 8:08 am

[BUG] Items ignoring team_name filter with halo property

Post by Tonk »

Hi, I want to create a custom decoration for my mod which I only want to display in between certain teams. Also I want to display the graphic on top of the units, so they are properly visible. This is why I'm using the halo property to achieve the over layer effect, but the problem is when it given the item/decoration no longer respects the given team_name property, everybody can see it.
I've tested It with the image property and its working fine, but drawn beneath the units, so It quite not visible.
I doesn't find anything that describe this behaviour (here). Is it intended or a bug?

Some examples:

Code: Select all

# This is properly hiding the decoration from others, but drawn under the units (not exectly what I'm looking for)
[item]
  x=5
  y=5
  name="decor"
  image="decoration.png"
  team_name=1
[/item]

# Here an other one with halo. Which is nicely shown over the units, but every player can see it (same, not as expected)
[item]
  x=3
  y=3
  name="decor"
  halo="decoration.png"
  team_name=1
[/item]
Post Reply