Rehevkor
4th Jun 2004, 09:33 PM
I have a static mesh that I created for my Alien Swarm map (see my other thread (http://www.blackcatgames.com/forums/showthread.php?t=4158)) that I want to make destructible in the same manner that AoAlienEgg is destructible. The mesh is a dirt/sand chimney that aliens use to reach the surface from underground. Here is a pic of it:
http://pages.xtn.net/~jcestep/images/ao-t_chimney.jpg
I have the "whole" mesh complete now, and I can easily make a "destroyed" version of it and a couple gib meshes for the explosion. I'm looking at the code for the alien egg, wondering how I could best use it to create the destructible chimney.
It seems that extending AoAlienEgg won't quite work, so I was wondering if the devs would mind if I copied the code into my own script and modified it. I'm also curious about how these lines work:
spawn(class'AoEggBloodSpurt',,,HitLocation);
...
spawn(class'AoAlienEggExplosion');
I know how spawning a class works, but what are those classes, and where can I get a look at them? I'll need to modify/extend them to implement the effects for damaging and destroying my mesh, but I'm not sure what AoEggBloodSpurt and AoAlienEggExplosion are. If one of the devs could explain them or tell me where I can find them in UED, I would be very grateful.
Thanks! :D
http://pages.xtn.net/~jcestep/images/ao-t_chimney.jpg
I have the "whole" mesh complete now, and I can easily make a "destroyed" version of it and a couple gib meshes for the explosion. I'm looking at the code for the alien egg, wondering how I could best use it to create the destructible chimney.
It seems that extending AoAlienEgg won't quite work, so I was wondering if the devs would mind if I copied the code into my own script and modified it. I'm also curious about how these lines work:
spawn(class'AoEggBloodSpurt',,,HitLocation);
...
spawn(class'AoAlienEggExplosion');
I know how spawning a class works, but what are those classes, and where can I get a look at them? I'll need to modify/extend them to implement the effects for damaging and destroying my mesh, but I'm not sure what AoEggBloodSpurt and AoAlienEggExplosion are. If one of the devs could explain them or tell me where I can find them in UED, I would be very grateful.
Thanks! :D