This commit is contained in:
Niko 2024-02-10 11:22:56 -05:00
parent 3cecd2dddd
commit f970801fe2
2 changed files with 9 additions and 4 deletions

View File

@ -869,8 +869,11 @@ CheckJumpButtons:
driverSpeedOrSmth = driver->const_BackwardSpeed * -3;
driverSpeedSmth2 = driverSpeedOrSmth >> 2;
if (driverSpeedOrSmth < 0) driverSpeedSmth2 = (driverSpeedOrSmth + 3) >> 2;
LAB_8006248c:
// reversing engine, and brakes
actionsFlagSetCopy |= 0x20020;
LAB_80062548:
uVar20 = actionsFlagSetCopy & 0x9fffffff;
approximateSpeed2 = driverSpeedSmth2;
@ -909,8 +912,8 @@ CheckJumpButtons:
}
}
// if accel prevention (hold square)
actionsFlagSetCopy = uVar20 & 8;
if (actionsFlagSetCopy != 0)
{
// high speed
@ -958,6 +961,8 @@ CheckJumpButtons:
//Racer struct + 0x39E = Racer's Base Speed
*(u_short*)&driver->fireSpeed = approximateSpeed2;
}
// brakes
if ((uVar20 & 0x800020) == 0)
{
driverSpeedOrSmth = driver->terrainMeta2->unk_0x8;
@ -1010,7 +1015,7 @@ CheckJumpButtons:
// === not rubbing on wall now, or recently ===
// if not holding Square (& 0x8)
// or holding Square + Cross (& 0x20)
// or not using brakes (& 0x20)
if ((uVar20 & 0x28) == 0)
{
// use const_TurnRate + turnConst<<1/5

View File

@ -465,8 +465,8 @@ struct Driver
// 0x00000002 - started touching quadblock this frame
// 0x00000004 - holding L1 or R1
// 0x00000008 - accel prevention (holding square)
// 0x00000010 - ?
// 0x00000020 - ?
// 0x00000010 - ? steering
// 0x00000020 - ? brakes
// 0x00000040 - ? COLL-related (ghost)
// 0x00000080 - ? OnRender-related, turbo-related
// 0x00000100 - driving wrong way