Skip to content

Commit

Permalink
Support RL2.05 replays
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakkes committed Oct 8, 2021
1 parent 6fba4ff commit 75ee2d5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
15 changes: 12 additions & 3 deletions CPPRP/data/GameClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,24 @@ namespace CPPRP
float ReplicatedActivityTime;
};


struct CarComponent_AirActivate_TA : public CarComponent_TA
{
int AirActivateCount;
};

struct CarComponent_Jump_TA : public CarComponent_TA
{

};

struct CarComponent_DoubleJump_TA : public CarComponent_TA
struct CarComponent_DoubleJump_TA : public CarComponent_AirActivate_TA
{

};

struct CarComponent_Boost_TA : public CarComponent_TA

struct CarComponent_Boost_TA : public CarComponent_AirActivate_TA
{
float RechargeDelay;
bool bUnlimitedBoost;
Expand All @@ -310,9 +317,11 @@ namespace CPPRP
//unused
float StartBoostAmount;
float CurrentBoostAmount;
bool bRechargeGroundOnly;

};

struct CarComponent_Dodge_TA : public CarComponent_TA
struct CarComponent_Dodge_TA : public CarComponent_AirActivate_TA
{
struct Vector3I DodgeTorque;
};
Expand Down
7 changes: 4 additions & 3 deletions CPPRP/generated/ClassExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ namespace CPPRP {
, {"TAGame.PRI_TA","ProjectX.PRI_X"}
, {"TAGame.RBActor_TA","ProjectX.Pawn_X"}
, {"TAGame.CarComponent_TA","Engine.ReplicationInfo"}
, {"TAGame.CarComponent_AirActivate_TA","TAGame.CarComponent_TA"}
, {"TAGame.CarComponent_Jump_TA","TAGame.CarComponent_TA"}
, {"TAGame.CarComponent_DoubleJump_TA","TAGame.CarComponent_TA"}
, {"TAGame.CarComponent_Boost_TA","TAGame.CarComponent_TA"}
, {"TAGame.CarComponent_Dodge_TA","TAGame.CarComponent_TA"}
, {"TAGame.CarComponent_DoubleJump_TA","TAGame.CarComponent_AirActivate_TA"}
, {"TAGame.CarComponent_Boost_TA","TAGame.CarComponent_AirActivate_TA"}
, {"TAGame.CarComponent_Dodge_TA","TAGame.CarComponent_AirActivate_TA"}
, {"TAGame.CarComponent_FlipCar_TA","TAGame.CarComponent_TA"}
, {"TAGame.Ball_TA","TAGame.RBActor_TA"}
, {"TAGame.Team_TA","Engine.TeamInfo"}
Expand Down
3 changes: 3 additions & 0 deletions CPPRP/generated/GameClassMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ GAMECLASS(TAGame, CarComponent_TA);
GAMEFIELD(TAGame, CarComponent_TA, Vehicle, struct ActiveActor);
GAMEFIELD(TAGame, CarComponent_TA, ReplicatedActive, uint8_t);
GAMEFIELD(TAGame, CarComponent_TA, ReplicatedActivityTime, float);
GAMECLASS(TAGame, CarComponent_AirActivate_TA);
GAMEFIELD(TAGame, CarComponent_AirActivate_TA, AirActivateCount, int);
GAMECLASS(TAGame, CarComponent_Jump_TA);
GAMECLASS(TAGame, CarComponent_DoubleJump_TA);
GAMECLASS(TAGame, CarComponent_Boost_TA);
Expand All @@ -191,6 +193,7 @@ GAMEFIELD(TAGame, CarComponent_Boost_TA, RechargeRate, float);
GAMEFIELD(TAGame, CarComponent_Boost_TA, BoostModifier, float);
GAMEFIELD(TAGame, CarComponent_Boost_TA, StartBoostAmount, float);
GAMEFIELD(TAGame, CarComponent_Boost_TA, CurrentBoostAmount, float);
GAMEFIELD(TAGame, CarComponent_Boost_TA, bRechargeGroundOnly, bool);
GAMECLASS(TAGame, CarComponent_Dodge_TA);
GAMEFIELD(TAGame, CarComponent_Dodge_TA, DodgeTorque, struct Vector3I);
GAMECLASS(TAGame, CarComponent_FlipCar_TA);
Expand Down

0 comments on commit 75ee2d5

Please sign in to comment.