MaxAccel Bug [need assistance]

MaxAccel Bug [need assistance]

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

MaxAccel Bug [need assistance]

Post by Warlord Zsinj »

Well, I'm trying to get our aircraft through the mess that is Spring's flight code, and I've managed to get them to a point where they are behaving atleast ok.

In order to do this I've given the fastest aircraft (max velocity of 12) a maxaccel of 0.4.

This allows them to maintain speed into turns and just generally dogfight better.

However, when I've got this included, there is a weird bug where when the aircraft is shot down - that is, it's health is reduced to the point where it enters the 'crash' death anim, it starts to behave very strangely.

It will lose all of it's momentum, and will appear to go into a stall (if it was flying upwards). It will quickly face the ground, and then extremely slowly fall to the ground. Apart from looking ridiculous, they also have the opportunity to fire at anything there for an extremely long amount of time.

When I reduce the maxaccel to a point closer to spring's default (0.065), crashing works as normal. Of course, I also lose all the in-flight performance I wanted from my aircraft. I can go up to about .13 or so before I start to see the odd behaviour, but the flight behaviour I need needs >3 accel.

Do you have any suggestions as to how I can gain the performance I want with maxaccel set to a high value like .4, but not have the crash behaviour perform ridiculously?

I've had a look at a number of the older threads regarding this, none seem to have run into this problem...

Pulling my hair out over here.
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: MaxAccel Bug [need assistance]

Post by Pxtl »

Well, you could remove crashing for that unit - I think I saw a gadget to that effect in Fibre v13.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: MaxAccel Bug [need assistance]

Post by Warlord Zsinj »

We would have to remove crashing for all combat air units then.

I'd really rather not do that, I think crashing looks great and adds a lot to the drama of air combat.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: MaxAccel Bug [need assistance]

Post by Argh »

WZ, crashing behaviors (and death behaviors in general) obey the
"Spring laws of physics" in SVN, thanks to a patch by Kloot.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: MaxAccel Bug [need assistance]

Post by Warlord Zsinj »

Great, I'll just remove deaths until the next spring build, which will likely be before our public release.
Post Reply

Return to “Engine”