2023-10-22 17:08:53 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-04-25 22:10:37 +08:00
|
|
|
#define GAMESTATE_CONNECTING 1
|
2024-01-29 19:34:27 +08:00
|
|
|
#define GAMESTATE_CONNECTED 2
|
|
|
|
|
2023-10-22 17:08:53 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
class CNetGame // size: 910 bytes
|
|
|
|
{
|
|
|
|
private:
|
2024-01-15 23:53:36 +08:00
|
|
|
RakClientInterface *m_pRakClient;
|
|
|
|
CPlayerPool *m_pPlayerPool;
|
2024-04-25 22:10:37 +08:00
|
|
|
CVehiclePool *m_pVehiclePool;
|
|
|
|
int m_iGameState;
|
|
|
|
BOOL m_bLanMode;
|
2024-01-15 23:53:36 +08:00
|
|
|
|
2024-04-25 22:10:37 +08:00
|
|
|
int m_iSpawnsAvailable;
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap18[6];
|
2024-04-25 22:10:37 +08:00
|
|
|
BYTE m_byteWorldTime;
|
|
|
|
BYTE m_byteWorldMinute;
|
|
|
|
BYTE m_byteWeather;
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap21[16];
|
2024-04-25 22:10:37 +08:00
|
|
|
BYTE m_byteFriendlyFire;
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap32[2];
|
2024-04-25 22:10:37 +08:00
|
|
|
float m_fGravity;
|
|
|
|
int m_iDeathDropMoney;
|
|
|
|
BYTE m_byteHoldTime;
|
|
|
|
bool m_bInstagib;
|
|
|
|
bool m_bZoneNames;
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap3F;
|
2024-04-25 22:10:37 +08:00
|
|
|
bool m_bUseCJWalk;
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap41[9];
|
2024-04-25 22:10:37 +08:00
|
|
|
DWORD m_dwMapIcon[100];
|
2023-10-22 17:08:53 +08:00
|
|
|
char _gap1DA[4];
|
|
|
|
int field_1DE;
|
|
|
|
int field_1E2;
|
|
|
|
char _gap1E6[12];
|
|
|
|
int field_1F2;
|
|
|
|
char _gap1F6[4];
|
|
|
|
int field_1FA;
|
|
|
|
int field_1FE;
|
2023-11-18 00:00:52 +08:00
|
|
|
|
|
|
|
char m_szHostName[256];
|
|
|
|
char m_szHostOrIp[128];
|
|
|
|
int m_iPort;
|
|
|
|
|
2024-01-19 23:19:26 +08:00
|
|
|
CGameMode* m_pGameMode;
|
2023-11-18 00:00:52 +08:00
|
|
|
CScriptTimers* m_pScriptTimers;
|
2023-10-22 17:08:53 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
CNetGame();
|
|
|
|
~CNetGame();
|
|
|
|
|
2024-01-29 19:34:27 +08:00
|
|
|
int GetGameState() { return m_iGameState; };
|
|
|
|
|
|
|
|
RakClientInterface * GetRakClient() { return m_pRakClient; };
|
|
|
|
|
2023-11-18 00:00:52 +08:00
|
|
|
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
|
2023-10-22 17:08:53 +08:00
|
|
|
void Process();
|
|
|
|
|
2024-03-14 23:24:26 +08:00
|
|
|
void sub_415EA0(PLAYERID playerId, BOOL a2);
|
|
|
|
void sub_415EC0(VEHICLEID VehicleID, BOOL a2);
|
2023-10-22 17:08:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------
|