Jump to content

JK2 1.02 specific jump bug in map making


Go to solution Solved by Boothand,

Recommended Posts

Posted

Sorry about the confusion. I just needed to move it somewhere where the "Mark Solved" feature worked. But yeah. Glad the problem got addressed and was fixed!

 

I seem to recall a staff member, I think @@Circa, simply added the "Mark solved" feature to one of the sub-forums on my request once. Shouldn't it be in any forum?

  • 2 weeks later...
Posted

the bug is present in 1.02 and 1.03, was fixed on 1.04, is called "jump over slopes" and the fix is in the 1.04 source code, in resume, is a function called PM_SetForceJumpZStart is used to prevent the jump over a slope when u are running/walking with the jump key pressed.

This is added in a lot of parts of movement files in the source code (bg_pmove, etc...) u should check that if u want fix it in 1.02

 

Example of the function in 1.04

 

 

//Set the height for when a force jump was started. If it's 0, nuge it up (slight hack to prevent holding jump over slopes)

void PM_SetForceJumpZStart(float value)
{
  pm->ps->fd.forceJumpZStart = value;
 
 if (!pm->ps->fd.forceJumpZStart)
  {
  pm->ps->fd.forceJumpZStart -= 0.1;
  }
}

And how is used to fix in every part where is needed

 

PM_SetForceJumpZStart(pm->ps->origin[2]);//so we don't take damage if we land at same height

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...