From bab1c17ca9631687390903c7ade26151f9aa8c12 Mon Sep 17 00:00:00 2001 From: Ehbw Date: Sun, 24 Dec 2023 16:20:31 +0000 Subject: [PATCH] feat(onesync): CTrainGameStateDataNode research --- .../include/state/ServerGameState.h | 17 +++++++++-- .../include/state/SyncTrees_Five.h | 29 ++++++++++++------- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/code/components/citizen-server-impl/include/state/ServerGameState.h b/code/components/citizen-server-impl/include/state/ServerGameState.h index 1fc7b10f69..d68ec1ea21 100644 --- a/code/components/citizen-server-impl/include/state/ServerGameState.h +++ b/code/components/citizen-server-impl/include/state/ServerGameState.h @@ -556,9 +556,9 @@ struct CTrainGameStateDataNodeData bool renderDerailed; // 2372 { - bool unk198; - bool unk224; - bool unk199; + bool unk198; //unk198 + bool highPrecisionBlending; //unk224 + bool hasNoThreadId; //unk199 // } bool forceDoorsOpen; @@ -648,6 +648,17 @@ enum ePopType POPTYPE_TOOL }; +//TODO: Probably should be moved out of fx::sync namespace +struct scrVector +{ + float x; + int pad; + float y; + int pad2; + float z; + int pad3; +}; + struct SyncTreeBase { public: diff --git a/code/components/citizen-server-impl/include/state/SyncTrees_Five.h b/code/components/citizen-server-impl/include/state/SyncTrees_Five.h index ae79c84654..94b56d6738 100644 --- a/code/components/citizen-server-impl/include/state/SyncTrees_Five.h +++ b/code/components/citizen-server-impl/include/state/SyncTrees_Five.h @@ -2623,21 +2623,30 @@ struct CTrainGameStateDataNode : GenericSerializeDataNode } } } - } + } virtual CDoorMovementDataNodeData* GetDoorMovement() override { @@ -3525,7 +3534,7 @@ struct SyncTree : public SyncTreeBaseImpl auto [hasNode, node] = this->template GetData(); return hasNode ? &node->data : nullptr; - } + } virtual void CalculatePosition() override {