Imago wrote:QUOTE (Imago @ Aug 12 2009, 06:43 AM) if ((m_stateM & coastButtonIGC) && !afterF) - coastbutton WTF? ANYWAYS i usually hold down the boost key so i'm going to the else...
I would hazzard a guess that coast button = vector lock
What does the accel GA actually affect?
is float thrust = m_myHullType.GetThrust();
The thrust the ship can apply after GAs have been applied? - Is the accel GA a GA that effects the value of thrust returned by m_myHullType.GetThrust() ?
and
m_pHullData->thrust
The original value of thrust of the ship before any GAs?
I'm basically asking what variable the accel GA changes in that code?
edit:
I'm mainly interested in this line
Code: Select all
negDesiredSpeed = maxSpeed * (-1.0f - thrustRatio)
Thrust ratio is the ratio of booster thrust / ship thrust.
If the ship's thrust is
negDesiredSpeed = 100 * (-1 - 2)
negDesiredSpeed = 100 * (-3)
negDesiredSpeed = -300
Now, say if our ship's thrust is increased, by say a accel GA to say 40, and the booster's thrust is still 40, thrust ratio will be 40/40 = 1, if max speed is 100 and we are boosting, we will get
negDesiredSpeed = 100 * (-1 - 1)
negDesiredSpeed = 100 * (-2)
negDesiredSpeed = -200
and we have a lower target top speed for boosting
madpeople thinks that the accel GA isn't being applied to the boosters's thrust
so changing
float abThrust = afterburner->GetMaxThrust();
to include the accel GA might do it
... but then that's basically the same as imago's code, but doing it a different way (I'm doing (booster thrust + GA)/(ship thrust + GA), he is doing (booster thrust)/(ship thrust)
...
madpeople thinks printing out two copies of it, and dry running it, once withiout the GA, once with to see where things go wonkey might help.