Changing Jumping Hieght


Posted by [QBS]Quadrant (217.32.148.*) at 7:41 PM, 8/13/2001:
In reply to: Jumping & climbing stairs posted by crash (65.9.98.*) at 7:25 PM, 8/13/2001

ok at the bottom of g_local.h add this one line

// lowering the value makes you jump higher at 650 it lets you jump up big boxes
// so you will need to increase it to say 1000
#define Jump 650// default gravity is 800

ok next in p_client.c function ClientThink

add this peice of code in the [QBS] bracket area


if (memcmp(&ent->client->old_pmove, &pm.s, sizeof(pm.s)))
pm.snapinitial = true;
pm.cmd = *ucmd;
//[QBS]start
if ( pm.cmd.upmove >= 10 )
pm.s.gravity = Jump;
//[QBS]end
pm.trace = PM_trace;
pm.pointcontents = gi.pointcontents;
gi.Pmove(&pm);
ent->client->ps.pmove = pm.s;


And that all you ahve to do then from the line you added in g_local.h you can change the jump height,

Bye for now... bed time for me 3:50am