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