Page 1 of 1

Feature CEG Gadget

Posted: 21 Jun 2009, 08:02
by Evil4Zerggin
Plays a given ceg when a feature is created or destroyed. Nothing fancy code-wise at least for the near future; the idea is more valuable than the code.

Image

Use: The customParams ceg_created and ceg_destroyed control what ceg is spawned.

You can get it here: http://spring1944.svn.sourceforge.net/v ... iew=markup

Re: Feature CEG Gadget

Posted: 21 Jun 2009, 11:31
by TheFatController
As there's no GetFeatureBasePosition you may want to use GetGroundHeight on fx,fz to get fy otherwise not all the parts of the ceg will show up I believe (had this problem with the groundflash/glow on comgate gadget)

Also cool idea ;)

Re: Feature CEG Gadget

Posted: 22 Jun 2009, 07:12
by Evil4Zerggin
Thanks for the tip. Strangely, it seems to work properly when I tried it (note the groundflash around the burning tanks), but if I run into problems I'll keep that in mind.