Undead crashing aircraft

Undead crashing aircraft

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Undead crashing aircraft

Post by Anarchid »

Well. I've been making a certain unit that has an Independence-Day-style beam as its only weapon. Since it should fire directly downwards, and gunships have a hard-wired "strafe left-right at some range" behaviour, they are unapplicable. So i played with the physics settings for the airplane model, and got myself a quite acceptable "zeppelin" that has zero mygravity, zero elevator and near-zero aileron (since completely zero aileron crashes the game when attempting to fps it).

It works as intended; The only trouble is that when the "zeppelin" gets shot down, it won't always blow up in midair, but sometimes will start "crashing". Now, since it is "lighter than air", it won't actually fall, and will just sit there in the sky emitting a profound volume of smoke.

Now: is there any way do disable the crashing behaviour for certain units? Or at least find out when they enter the crashing states to euthanize them by Lua?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Undead crashing aircraft

Post by lurker »

I think you can do it with a tag, but I know you can disable a gunship from strafing. And killing units with a script as plan B will also definitely work.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Undead crashing aircraft

Post by Anarchid »

And killing units with a script as plan B will also definitely work.
Axm, that's the thing about the undead. They don't count as dead either, so neither UnitDestroyed call-in will report them, nor will IsUnitDead return true. ^^

I'll try the "airstrafe=0" tho.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Undead crashing aircraft

Post by Acidd_UK »

Anarchid wrote:to euthanize them
I'm not sure that this counts as euthenasia, given the zeppelin clearly doesn't want to die!
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Undead crashing aircraft

Post by Argh »

It works as intended; The only trouble is that when the "zeppelin" gets shot down, it won't always blow up in midair, but sometimes will start "crashing".
Set canCrash to 0, IIRC.
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Undead crashing aircraft

Post by Anarchid »

Set canCrash to 0, IIRC.
I suspected that something was missing on the wiki. ^^

4.241 kudos to Argh.
Post Reply

Return to “Help & Bugs”