Skip to content

Commit

Permalink
API: Implemented CBasePlayer::Observer_FindNextPlayer() Function (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-up authored Aug 4, 2024
1 parent 2296032 commit 4a41ef6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions regamedll/dlls/API/CSPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions regamedll/public/regamedll/API/CSPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class CCSPlayer: public CCSMonster {
virtual void SendItemStatus();
virtual void ReloadWeapons(CBasePlayerItem *pWeapon = nullptr, bool bForceReload = false, bool bForceRefill = false);
virtual void Observer_SetMode(int iMode);
virtual void Observer_FindNextPlayer(bool bReverse, const char *name = nullptr);
virtual bool SelectSpawnSpot(const char *pEntClassName, CBaseEntity* &pSpot);
virtual bool SwitchWeapon(CBasePlayerItem *pWeapon);
virtual void SwitchTeam();
Expand Down

0 comments on commit 4a41ef6

Please sign in to comment.