so the thing can recognize the pitch. Under the VH_SPEEDER functions in cg_event.c and cg_main.c i commented out:

vehAngles[PITCH] = 0.0f;

and

data->mAngles[PITCH] = 0.0f;

Now, what will happen is that everytime you pitch your mouse up and down the swoop bikes will also pitch up and down which looks stupid, so you wanna change it to where it is simply based on ground slope. So go to bg_pmove.c and there's this thing that reads:

veh->m_pVehicle->m_vOrientation[PITCH] = pm->ps->viewangles[PITCH];

comment it out and you should have a swoop that now floats on water and is parallel to the ground in both pitch and slope.

And i was also telling you about running on the surface of water shaolin style. This is the code i used for it in bg_pmove.c and i stuck it in void BG_AdjustClientSpeed(.... function because that's where it would compile properly, i stated:

what that does is whenever you enable force speed you can run across the surface of the water. its buggy and i'm havin difficulty getting it to just get it to work on force speed level 3 :/
anyways, that's the major chunk of what we were talking about, if you have any questions lemme know.

Azymn

08-07-2004, 01:20 AM

If you wanna limit the shaolin run it to just Force Level 3, just add this check:

&& (ps->fd.forcePowerLevel[FP_SPEED]==FORCE_LEVEL_3)

Also, for consistency you could probably add the code to Pmove_Single, right underneath where BG_AdjustClientSpeed is called.