[bot] Implement/match n_GetPlayerSpecialAction(...)

* Implement/match `CNetGame::GetPlayerSpecialAction(...)`
This commit is contained in:
RD42
2024-07-08 18:01:38 +08:00
parent 2703cfe7a5
commit 6ead220db3
4 changed files with 20 additions and 2 deletions
+12
View File
@@ -220,6 +220,18 @@ BOOL CNetGame::GetPlayerKeys(PLAYERID playerId, WORD *udAnalog, WORD *lrAnalog,
}
}
BYTE CNetGame::GetPlayerSpecialAction(PLAYERID playerId)
{
if(playerId >= MAX_PLAYERS) return SPECIAL_ACTION_NONE;
if(bPlayerSlotState[playerId] == FALSE) return SPECIAL_ACTION_NONE;
if(bytePlayerState[playerId] == PLAYER_STATE_ONFOOT)
{
return unnamed_3[playerId].byteSpecialAction;
}
return SPECIAL_ACTION_NONE;
}
//----------------------------------------------------
// MATCH
BOOL CNetGame::IsPlayerAdded(PLAYERID playerId)