From f3dac635fc54a008ea368bb653995345f4ce6c7d Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Thu, 3 Sep 2026 00:50:20 +0700 Subject: [PATCH] [saco] Match the `field_2C9` and `field_2C1` accessors at 0x100ADFA0, 0x100ADFB0 and 0x100ADC90 --- saco/game/playerped.cpp | 22 ++++++++++++++++++++++ saco/game/playerped.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 3afe826..15ffddd 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -1245,6 +1245,28 @@ BOOL CPlayerPed::IsDancing() return FALSE; } +//----------------------------------------------------------- +// drunk level, driven from the net layer and read by the blur overlay + +int CPlayerPed::sub_100ADFA0() +{ + return field_2C9; +} + +//----------------------------------------------------------- + +void CPlayerPed::FUNC_100ADFB0(int iLevel) +{ + field_2C9 = iLevel; +} + +//----------------------------------------------------------- + +int CPlayerPed::FUNC_100ADC90() +{ + return field_2C1; +} + //----------------------------------------------------------- void CPlayerPed::ProcessMarkers(BOOL bMarkerStreamingEnabled, float fMarkerStreamRadius, BOOL bVisible) diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 110d142..44665b8 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -112,6 +112,8 @@ public: CPlayerPed(); int sub_100ADFA0(); // .text:100ADFA0 + void FUNC_100ADFB0(int iLevel); // .text:100ADFB0 + int FUNC_100ADC90(); // .text:100ADC90 void ProcessVehicleHorn();