From e1835e9e9936582991bf82d1b47bedf0e67d997b Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Thu, 3 Sep 2026 00:53:30 +0700 Subject: [PATCH] [saco] Implement/match `CNewPlayerTags::FUNC_1006CD80` and `FUNC_1006CD90`; the nametag pass brackets its batch with these --- saco/newplayertags.cpp | 13 +++++++++++++ saco/newplayertags.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/saco/newplayertags.cpp b/saco/newplayertags.cpp index 3a5aa78..d1595e5 100644 --- a/saco/newplayertags.cpp +++ b/saco/newplayertags.cpp @@ -76,6 +76,19 @@ void CNewPlayerTags::End() m_pStates->Apply(); } +// the nametag pass brackets its batch with these two instead of Begin/End +void CNewPlayerTags::FUNC_1006CD80() +{ + if(m_pSprite) + m_pSprite->Begin(D3DXSPRITE_ALPHABLEND); +} + +void CNewPlayerTags::FUNC_1006CD90() +{ + if(m_pSprite) + m_pSprite->End(); +} + void CNewPlayerTags::DeleteDeviceObjects() { SAFE_RELEASE(m_pStates); diff --git a/saco/newplayertags.h b/saco/newplayertags.h index 3cfa273..908339e 100644 --- a/saco/newplayertags.h +++ b/saco/newplayertags.h @@ -25,6 +25,8 @@ public: void Begin(); void End(); + void FUNC_1006CD80(); + void FUNC_1006CD90(); void Draw(D3DXVECTOR3* pPlayerPos, float fHealth, float fArmor, float fDistanceFromLocalPlayer); void DeleteDeviceObjects();