1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 06:10:00 +00:00

More bike leftovers

This commit is contained in:
Sergeanur 2020-12-28 13:59:03 +02:00
parent 7eb96d5373
commit 9c2f1b0833
2 changed files with 22 additions and 2 deletions

View file

@ -3,6 +3,7 @@
#include "Script.h" #include "Script.h"
#include "ScriptCommands.h" #include "ScriptCommands.h"
#include "Bike.h"
#include "CarCtrl.h" #include "CarCtrl.h"
#include "Cranes.h" #include "Cranes.h"
#include "Credits.h" #include "Credits.h"
@ -415,8 +416,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
((CAutomobile*)pVehicle)->m_fTraction = fTraction; ((CAutomobile*)pVehicle)->m_fTraction = fTraction;
else else
// this is certainly not a boat, trane, heli or plane field // this is certainly not a boat, trane, heli or plane field
//((CBike*)pVehicle)->m_fTraction = fTraction; ((CBike*)pVehicle)->m_fTraction = fTraction;
*(float*)(((char*)pVehicle) + 1088) = fTraction;
return 0; return 0;
} }
case COMMAND_ARE_MEASUREMENTS_IN_METRES: case COMMAND_ARE_MEASUREMENTS_IN_METRES:

View file

@ -1,5 +1,7 @@
#pragma once #pragma once
#include "Vehicle.h"
// some miami bike leftovers // some miami bike leftovers
enum eBikeNodes { enum eBikeNodes {
@ -22,4 +24,22 @@ public:
AnimationId m_bikeSitAnimation; AnimationId m_bikeSitAnimation;
uint8 unk2[180]; uint8 unk2[180];
float m_aSuspensionSpringRatio[4]; float m_aSuspensionSpringRatio[4];
/* copied from VC, one of the floats here is gone, assuming m_bike_unused1 */
float m_aSuspensionSpringRatioPrev[4];
float m_aWheelTimer[4];
//float m_bike_unused1;
int m_aWheelSkidmarkType[2];
bool m_aWheelSkidmarkBloody[2];
bool m_aWheelSkidmarkUnk[2];
float m_aWheelRotation[2];
float m_aWheelSpeed[2];
float m_aWheelPosition[2];
float m_aWheelBasePosition[2];
float m_aSuspensionSpringLength[4];
float m_aSuspensionLineLength[4];
float m_fHeightAboveRoad;
/**/
float m_fTraction;
}; };