question about map features made up of multiple parts

question about map features made up of multiple parts

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

question about map features made up of multiple parts

Post by enetheru »

hai all once again..

once again this is a general question seeking a "possible or not" answer..

I want to make some map features of buildings that can be destroyed in parts..

1. can I make the health of a feature depend on another feature? such that if the lower floor is destroyed the upper floor gets destroyed too?

2. or for more detail, if there are no supporting features left the supported feature gets destroyed(multiple dependence)?

3. with the way one feature dies and becomes another feature(usually corpse, but can have multiple depths) can I have the spawn of the corpse animated? like a spawn animation.. then idle.

The buildings I want to create I want to make multiple levels of death, and for more than one height level.. so you can destroy/reclaim it incrementally.

4. Can the feature die in different ways depending on whether its reclaimed, or burned or damaged?

OK thats enough feature related questions for now. thanks.

I hate my ambition...
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: question about map features made up of multiple parts

Post by Forboding Angel »

Wrt features, there is always the standard forum answer of "Lua it, noob!"

Features have death corpses. That is to say, when a feature dies, it turns into another feature, and you can chain these along indefinitely. You could even loop them if you were so inclined.

Others might have answers to the other questions.

Lathan Stanley combined many features into one coherent feature in black lake swamp. That might be worth taking a look at.
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

Re: question about map features made up of multiple parts

Post by enetheru »

Forboding Angel wrote:Wrt features, there is always the standard forum answer of "Lua it, noob!"
I'm sorry, I don't understand your sense of humour...

<snip>
Forboding Angel wrote: Lathan Stanley combined many features into one coherent feature in black lake swamp. That might be worth taking a look at.
Thanks, will check it out :D
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: question about map features made up of multiple parts

Post by Beherith »

Its not humor, all of those questions are YES. With Lua.
User avatar
enetheru
Posts: 627
Joined: 11 Jun 2010, 07:32

Re: question about map features made up of multiple parts

Post by enetheru »

Beherith wrote:Its not humor, all of those questions are YES. With Lua.
thanks, that's what I needed to hear to continue
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: question about map features made up of multiple parts

Post by FLOZi »

The biggest problem I envisage is with hit volumes.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: question about map features made up of multiple parts

Post by knorke »

you read/set feature positions, read/set their health and kill/create them. you can also detect their death.
enetheru wrote:4. Can the feature die in different ways depending on whether its reclaimed, or burned or damaged?
Unless there are forgotten parametes:

FeatureDestroyed() --> "featureID, allyTeam"
UnitFeatureCollision(colliderID, collideeID, crushKilled) -- needs SetWatchUnit for first and SetWatchFeature for second party

Sadly these callins do not give enough information to differentiate all possible ways to die for a feature. (i think) Might need some messing around to detect eg death by burning/reclaim
The buildings I want to create I want to make multiple levels of death, and for more than one height level.. so you can destroy/reclaim it incrementally.
could also have an invisible feature an a visible but unclickable unit for that. Have the unitscript/gadget hide more and more pieces as the feature gets reclaimed. (could also have animation like parts breaking off instead of just disappear)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: question about map features made up of multiple parts

Post by zwzsg »

You don't need Lua.

Just chain features: In each featuredef, there is a field "featuredead", which points to another feature to turn into when dead.
Post Reply

Return to “Map Creation”