From 6a3f528e9fb872035c01f738f2b0871462d71b8f Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:09:06 +0800 Subject: [PATCH] [saco] Implement/match `CActorPed::SetStateFlags(...)` --- saco/game/actorped.cpp | 8 ++++++++ saco/game/actorped.h | 1 + 2 files changed, 9 insertions(+) diff --git a/saco/game/actorped.cpp b/saco/game/actorped.cpp index 8dabc53..0ef2fcb 100644 --- a/saco/game/actorped.cpp +++ b/saco/game/actorped.cpp @@ -169,3 +169,11 @@ DWORD CActorPed::GetStateFlags() //----------------------------------------------------------- +void CActorPed::SetStateFlags(DWORD dwState) +{ + if(!m_pPed) return; + m_pPed->dwStateFlags = dwState; +} + +//----------------------------------------------------------- + diff --git a/saco/game/actorped.h b/saco/game/actorped.h index 3b2bd53..837be41 100644 --- a/saco/game/actorped.h +++ b/saco/game/actorped.h @@ -19,6 +19,7 @@ public: float GetArmour(); void SetArmour(float fArmour); DWORD GetStateFlags(); + void SetStateFlags(DWORD dwStateFlags); void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT, int opt1, int opt2, int opt3, int opt4, int iUnk);