mirror of
https://github.com/CTR-tools/CTR-ModSDK.git
synced 2025-03-01 09:36:28 +00:00
progress
This commit is contained in:
parent
3cecd2dddd
commit
f970801fe2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user