From bfe3405ce6370c33a86689ca1729aac0fbd2546c Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Sun, 3 Aug 2025 21:00:36 +0300 Subject: [PATCH] Update CGameEntitySystem & EventQueuePrioritizedEvent_t --- public/entity2/entitysystem.h | 5 ++++- public/tier1/keyvalues3.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/entity2/entitysystem.h b/public/entity2/entitysystem.h index 57f11241..7dbb88ba 100644 --- a/public/entity2/entitysystem.h +++ b/public/entity2/entitysystem.h @@ -123,6 +123,10 @@ struct EventQueuePrioritizedEvent_t variant_t m_VariantValue; // variable-type parameter + void *m_unk101; + KeyValues3 m_KV3; + KeyValues3::Data_t m_KV3Data; + EventQueuePrioritizedEvent_t *m_pNext; EventQueuePrioritizedEvent_t *m_pPrev; }; @@ -365,7 +369,6 @@ public: void RemoveListenerEntity(IEntityListener* pListener); public: - int m_iMaxNetworkedEntIndex; int m_iNetworkedEntCount; int m_iNonNetworkedSavedEntCount; CUtlDict m_spawnGroupEntityFilters; diff --git a/public/tier1/keyvalues3.h b/public/tier1/keyvalues3.h index 42d49b64..aaed0e33 100644 --- a/public/tier1/keyvalues3.h +++ b/public/tier1/keyvalues3.h @@ -572,7 +572,6 @@ public: KeyValues3& operator=( const KeyValues3& src ); KeyValues3( const KeyValues3 &other ) : KeyValues3() { CopyFrom( &other ); } -private: union Data_t { Data_t() : m_nMemory(0) @@ -613,6 +612,7 @@ private: char m_Memory[1]; }; +private: void Alloc( int initial_size = 0, Data_t data = {}, int bytes_available = 0, bool should_free = false ); CKeyValues3Array *AllocArray( int initial_size = 0 );