Page 1 of 1

Undead crashing aircraft

Posted: 19 Jan 2009, 16:44
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?

Re: Undead crashing aircraft

Posted: 19 Jan 2009, 17:01
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.

Re: Undead crashing aircraft

Posted: 19 Jan 2009, 17:33
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.

Re: Undead crashing aircraft

Posted: 19 Jan 2009, 19:15
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!

Re: Undead crashing aircraft

Posted: 20 Jan 2009, 11:13
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.

Re: Undead crashing aircraft

Posted: 20 Jan 2009, 14:14
by Anarchid
Set canCrash to 0, IIRC.
I suspected that something was missing on the wiki. ^^

4.241 kudos to Argh.