Hiyah!
I’m new to q3 based engines - but anyways I was doing tweaks & screwing around with the ET source - I’ve done already pretty cool things already (remade the whole artillery thing – no more gay smoke puff … only sound of distant cannons fireing away which are in sync with the explosions ofcourse
I’ll put it out for test in a couple of days …
But when I decided to make the panzer flightpath more realistic (so that it drops slightly over distance etc.) - I came across this bit of code:
bg_misc.c
void BG_EvaluateTrajectory( const trajectory_t *tr, int atTime, vec3_t result, qboolean isAngle, int splinePath )
...
case TR_GRAVITY_LOW:
deltaTime = ( atTime - tr->trTime ) * 0.001; // milliseconds to seconds
VectorMA( tr->trBase, deltaTime, tr->trDelta, result );
result[2] -= 0.5 * (DEFAULT_GRAVITY * 0.3) * deltaTime * deltaTime; // FIXME: local gravity...
break;
...
the FIXME bit is annoying me - DEFAULT_GRAVITY - I’d like to have the servers gravity setting affect the trajectories (it was some cvar) so I tried to use the g_gravity.value (if I remember the name correctly) variable with no avail (link fails coz the .c / .obj file where its physically lies aint associated with the project) then i tried the getcvar routine - which again results in a link failure of the same type as above … any ideas guys??
And finally what do I need to get this thing compiled under linux - i couldnt find any make files :???:
happy codin’
-tcm