Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Feb 21, 2025 4:40 pm
All times are UTC + 0
AttachEffect animation (Ares)
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Bugsey827
Grenadier


Joined: 15 Apr 2008

PostPosted: Thu Feb 06, 2025 7:34 am    Post subject:  AttachEffect animation (Ares) Reply with quote  Mark this post and the followings unread

So I have a building which buffs it's owner's units, and gives an attach effect animation to display a little star "animation" on the affected unit. This all works fine, but the problem is, I want the star to be visible on top of other units.
What I mean is that current if one unit is behind another, the unit in front can block out the unit behind's star.

See the ships in this image. The one in the front is fine...


Here I circled them, the two further back (circled in red) are partially obscured by the ships in front


Often, when units are moving or turning the star gets hidden behind the unit it's attached to, too.

The code that attaches it to the unit in the rulesmd.ini is
Code:

AttachEffect.Animation=KOMMIBUFFPIPT2
AttachEffect.Duration=-1


And the art code for that is
Code:

[KOMMIBUFFPIPT2]
AltPalette=yes
Normalized=yes
Remapable=no
DetailLevel=1


Yes the animation is added under [Animations] in the rules too.

I tried adding Layer=top to it but all that did is make them visible through the fog

Notice the stars are still being obscured by the units there lol
ZAdjust made no difference either.

Not sure what else to try. How can I make them permanently visible on top of units? Similar to how you always see the promotion insignias on top of units.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Thu Feb 06, 2025 8:57 am    Post subject: Reply with quote  Mark this post and the followings unread


_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Bugsey827
Grenadier


Joined: 15 Apr 2008

PostPosted: Thu Feb 06, 2025 5:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thank you, that did the trick.
Setting it to 1000 made it appear over the unit and other units, whilst still being hidden behind buildings as with promotion insignias. Perfect, thanks again.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2671s ][ Queries: 11 (0.1146s) ][ Debug on ]