CEGs are no longer firing off in water (In 85 and 86)

CEGs are no longer firing off in water (In 85 and 86)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

CEGs are no longer firing off in water (In 85 and 86)

Post by Forboding Angel »

Can someone please help me understand this? In 84 it still worked fine (I think), but basically when my units move the leave a dust trail. In water, the trail is similar but bubbly. However, once the unit gets into deeper water (not really deep, just semi deep) the effect disappears. Is this a bug or am I doing it wrong?

To recap, the water anim does fire off, but it disappears once the unit reaches a certain depth.

This is the ceg in question: http://code.google.com/p/evolutionrts/s ... s/dirt.lua
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by jK »

try setting "underwater=true,"
-> "water" means watersurface not underwater
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by smoth »

we have an underwater tag now? cool!
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by jK »

don't forget the "try"
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by Forboding Angel »

Yep that worked. Thanks JK.

Let me point out how incredibly awesome it is that we can switch cegs like that. For example in water I could have splashing, then underwater, bubbles.

Pretty friggin cool!
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by Kloot »

smoth wrote:we have an underwater tag now?
If by "now" you mean "for at least 6 years", then yes.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by Forboding Angel »

CEG hasn't even been around that long kloot.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by Kloot »

wrong (scroll up)

Technically not 6 years because that commit was made in June 2006, but close enough.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by Forboding Angel »

Why, for 6 years, did water = true cegs fire off in deep water, and then 6 years after being introduced... ohay there is an underwater tag?
varikonniemi
Posts: 451
Joined: 03 Jul 2011, 11:54

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by varikonniemi »

Maybe they started to work as intended? :D

(i have no idea, i am just a bit surprised about the gap of communication between engine and game developers)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: CEGs are no longer firing off in water (In 85 and 86)

Post by smoth »

Kloot, honestly didn't know.
Post Reply

Return to “Engine”