From 53a5bcb2ea51b3254f6bee12cc6c8eddfbe6cd38 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 7 Aug 2024 19:06:05 +0800 Subject: [PATCH] [saco] Implement/match `CEntity::DisableStreaming()` --- saco/game/entity.cpp | 10 ++++++++++ saco/game/entity.h | 1 + 2 files changed, 11 insertions(+) diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index 0257826..c751b79 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -544,6 +544,16 @@ void CEntity::SetWaitingForCollision(int iState) //----------------------------------------------------------- +void CEntity::DisableStreaming() +{ + if(!m_pEntity) return; + if(m_pEntity->vtable == 0x863C40) return; + + m_pEntity->dwProcessingFlags |= 0x80400; +} + +//----------------------------------------------------------- + BOOL CEntity::IsStationary() { if (!IsAdded()) return FALSE; // movespeed vectors are invalid if its not added diff --git a/saco/game/entity.h b/saco/game/entity.h index a6e7d12..fc57667 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -39,6 +39,7 @@ public: BOOL IsCollisionCheckingEnabled(); void SetGravityProcessing(int iState); void SetWaitingForCollision(int iState); + void DisableStreaming(); virtual void Add(); virtual void Remove(); BOOL IsAdded();