Black Cat Forums   Alien Swarm - Steampowered Forums
Alien Swarm 2K4 - ThieveryUT
Black Cat Games - TTLG Forums

Go Back   Black Cat Forums > Alien Swarm 2K4 Forums > Alien Swarm 2K4 Mapping

Notices

Reply
 
Thread Tools
Old 4th Jun 2004, 10:33 PM   #1
Rehevkor
Member
 
Rehevkor's Avatar
 
Registered: May 2004
Posts: 93
Question Question regarding AoObject.AoAlienEgg class

I have a static mesh that I created for my Alien Swarm map (see my other thread) 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:



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:

Code:
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!
__________________
My UT2004 maps
Ao-BugCity
Rehevkor is offline   Reply With Quote
Old 5th Jun 2004, 02:09 PM   #2
Rehevkor
Member
 
Rehevkor's Avatar
 
Registered: May 2004
Posts: 93
C'mon devs, throw me a bone
__________________
My UT2004 maps
Ao-BugCity
Rehevkor is offline   Reply With Quote
Old 5th Jun 2004, 03:57 PM   #3
Dalai
Project Lead
 
Dalai's Avatar
 
Registered: May 2002
Posts: 2,369
You can extend the alien egg class and then just override the functions you want to provide your own effects.

In your subclass, I'd say copy and paste the 'open' and 'hatch' functions and change the SetStaticMesh lines to your new open and hatched meshes. You can also change the blood spurt spawn lines to spawn your own blood effects if you want.

As for finding classes, well, when working with script you really need to give up UEd. Open one of the scripts in UEd and choose 'export all scripts'. Then download WOTgreal and use that, it has full text search and open class by name features to make finding things a breeze.

If you want to keep all your script inside your map file, you'll have to still work in UEd when writing your scripts, but at least you can use WOTgreal for browsing code.
Dalai is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.