Can it be done?
It needs to be able to be tied smoothly into aircraft crashing - so that a plane that goes into a tailspin and crashes into the ground produces the wreckage at that crash point.
Wreckage would have to be not created/removed if the aircraft collides with anything while crashing (ie: flies into a building or unit).
It strikes me as a shame that players don't receive an advantage by having air combat occur over their territory. Typically when a battle occurs on your territory, you are at a disadvantage (being under attack), but you gain an advantage because you can then reclaim the wrecks of enemy and friendly units alike to give you a boost to 'bounce back' from the attack. It also adds to the value of capturing no-man's land that neither player controls but is typically strewn with free metal.
I think it is a shame that this doesn't extend to air combat. It's especially important in IW, where aircombat forms quite an integral part of the mod.
Aircraft wreckages
Moderator: Moderators
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Aircraft wreckages
maybe the wreckages should be generated when aircrafts fall down(not explode into fragment). if they explode, nothing left.
by adjusting the frequency that planes are shot down but not disintegrated can we adjust the profit the defender could gain after the combat.
by adjusting the frequency that planes are shot down but not disintegrated can we adjust the profit the defender could gain after the combat.
Re: Aircraft wreckages
We can already adjust the frequency at which planes crash if we so wish. That's not the problem.- Added CRASHING (97) get/set constant to COB. Can be used to get/set whether an
aircraft is crashing. Is ignored for non-CAirMoveType units.
(including CTAAirMoveType aircraft)
Though Zsinj, Maelstrom's script might already work for this... I'll have to give it a try.
Re: Aircraft wreckages
You can control what kind of wreckage is produced depending on the amount of damage received in the last shot.HoneyFox wrote:maybe the wreckages should be generated when aircrafts fall down(not explode into fragment). if they explode, nothing left.
by adjusting the frequency that planes are shot down but not disintegrated can we adjust the profit the defender could gain after the combat.
Re: Aircraft wreckages
Dammit Bruce, you had to reply so now editing my post would be useless
The point is that the standard corpse handling (including what you just referenced) doesn't work on aircraft at all right now. Aircraft simply don't get corpses.
Maelstrom's luacob corpse spawner works for this, but it since you have to continuously loop while(get CRASHING) to wait to spawn the corpse, you get a cob error at the end because it invariably checks one more time after the unit is actually dead and gone. Looks like it will definitely need an engine patch

Maelstrom's luacob corpse spawner works for this, but it since you have to continuously loop while(get CRASHING) to wait to spawn the corpse, you get a cob error at the end because it invariably checks one more time after the unit is actually dead and gone. Looks like it will definitely need an engine patch

Re: Aircraft wreckages
I meant that's how it's handled for things that can have wreckages, it seemed logical to use the same or at least a very similar approach for aircraft.
Re: Aircraft wreckages
Well, aircraft can definitely have a corpse via usual tdf tags. It appears if the plane is blown to pieces midair (as in it exploded instead of crashing to the ground). That corpse then SLOOOWLY floats down (at the same speed ship corpses sink to the bottom), which looks quite bad. That works for both fighter and gunship-style aircraft.