API: Implemented CBasePlayer::Observer_FindNextPlayer() (#1065)

This commit is contained in:
Eason 2025-04-07 02:13:23 +08:00 committed by GitHub
parent 312dc3eb84
commit 797c265db3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View File

@ -412,6 +412,11 @@ EXT_FUNC void CCSPlayer::Observer_SetMode(int iMode)
BasePlayer()->Observer_SetMode(iMode);
}
EXT_FUNC void CCSPlayer::Observer_FindNextPlayer(bool bReverse, const char *name)
{
BasePlayer()->Observer_FindNextPlayer(bReverse, name);
}
EXT_FUNC bool CCSPlayer::SelectSpawnSpot(const char *pEntClassName, CBaseEntity *&pSpot)
{
return BasePlayer()->SelectSpawnSpot(pEntClassName, pSpot);

View File

@ -117,6 +117,7 @@ public:
virtual void Reset();
virtual void OnSpawnEquip(bool addDefault = true, bool equipGame = true);
virtual void SetScoreboardAttributes(CBasePlayer *destination = nullptr);
virtual void Observer_FindNextPlayer(bool bReverse, const char *name = nullptr);
bool IsPlayerDominated(int iPlayerIndex) const;
void SetPlayerDominated(CBasePlayer *pPlayer, bool bDominated);

View File

@ -38,7 +38,7 @@
#include <API/CSInterfaces.h>
#define REGAMEDLL_API_VERSION_MAJOR 5
#define REGAMEDLL_API_VERSION_MINOR 28
#define REGAMEDLL_API_VERSION_MINOR 29
// CBasePlayer::Spawn hook
typedef IHookChainClass<void, class CBasePlayer> IReGameHook_CBasePlayer_Spawn;

View File

@ -6,5 +6,5 @@
#pragma once
#define VERSION_MAJOR 5
#define VERSION_MINOR 28
#define VERSION_MINOR 29
#define VERSION_MAINTENANCE 0