News: SMF - Just Installed!
 
Welcome, Guest. Please login or register.
+  AnthraxBio
|-+  Return to Castle Wolfenstein
| |-+  Coding Tutorials
| | |-+  Disabling the Jump Delay
« previous next »
Pages: [1] Print
Author Topic: Disabling the Jump Delay  (Read 275 times)
SkreamerVirii
Administrator
Full Member
*****
Posts: 133


View Profile
« on: September 03, 2008, 11:16:41 PM »

In this tutorial iwill show you how to Diable the the Jump Delay and then be able to jump like we did back in the q3 day

So To begin set your project to game and open up bg_pmove.c and find line 472 and you should
find this code
/*
=============
PM_CheckJump
=============
*/
static qboolean PM_CheckJump( void ) {
// JPW NERVE -- jumping in multiplayer uses and requires sprint juice (to prevent turbo skating, sprint + jumps)
if (pm->gametype != GT_SINGLE_PLAYER) {
// don't allow jump accel
if (pm->cmd.serverTime - pm->ps->jumpTime < 850)
return qfalse;
// don't allow if player tired
// if (pm->ps->sprintTime < 2500) // JPW pulled this per id request; made airborne jumpers wildly inaccurate with gunfire to compensate
// return qfalse;
}
change it took like this

/*
=============
PM_CheckJump
=============
*/
static qboolean PM_CheckJump( void ) {
// JPW NERVE -- jumping in multiplayer uses and requires sprint juice (to prevent turbo skating, sprint + jumps)
if (pm->gametype != GT_WOLF) {
// don't allow jump accel
//if (pm->cmd.serverTime - pm->ps->jumpTime < 850)
//return qfalse;
// don't allow if player tired
// if (pm->ps->sprintTime < 2500) // JPW pulled this per id request; made airborne jumpers wildly inaccurate with gunfire to compensate
// return qfalse;
}
There are actually 2 ways of doing this that was the first way
the second way is to make it look like this
/*
=============
PM_CheckJump
=============
*/
static qboolean PM_CheckJump( void ) {
// JPW NERVE -- jumping in multiplayer uses and requires sprint juice (to prevent turbo skating, sprint + jumps)
if (pm->gametype != GT_WOLF) {
// don't allow jump accel
if (pm->cmd.serverTime - pm->ps->jumpTime < 850)
return qtrue;
// don't allow if player tired
// if (pm->ps->sprintTime < 2500) // JPW pulled this per id request; made airborne jumpers wildly inaccurate with gunfire to compensate
// return qfalse;
by changing this
if (pm->cmd.serverTime - pm->ps->jumpTime < 850)
return qtrue;
then you can modify the jumptime
 
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Free SMF 1.1.5 Forum Theme by Tamuril. © 2008.