2024-01-12 23:49:19 +08:00
|
|
|
|
|
|
|
#include "../main.h"
|
|
|
|
|
|
|
|
// TODO: these RPCs
|
|
|
|
void Unk22(RPCParameters *rpcParams) {}
|
|
|
|
void Unk24(RPCParameters *rpcParams) {}
|
|
|
|
void Unk3A(RPCParameters *rpcParams) {}
|
|
|
|
void Unk3B(RPCParameters *rpcParams) {}
|
|
|
|
void Unk3D(RPCParameters *rpcParams) {}
|
|
|
|
void Unk6B(RPCParameters *rpcParams) {}
|
|
|
|
void Unk25(RPCParameters *rpcParams) {}
|
|
|
|
void Unk26(RPCParameters *rpcParams) {}
|
|
|
|
void Unk27(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void UpdateScoresPingsIPs(RPCParameters *rpcParams) {}
|
|
|
|
void SvrStats(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk82(RPCParameters *rpcParams) {}
|
2024-06-01 18:30:44 +08:00
|
|
|
void GameModeRestart(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void ClientMessage(RPCParameters *rpcParams) {}
|
|
|
|
void WorldTime(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk5F(RPCParameters *rpcParams) {}
|
|
|
|
void Unk3F(RPCParameters *rpcParams) {}
|
|
|
|
void Unk97(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void ScmEvent(RPCParameters *rpcParams) {}
|
|
|
|
void Weather(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk1D(RPCParameters *rpcParams) {}
|
|
|
|
void Unk1E(RPCParameters *rpcParams) {}
|
|
|
|
void Unk3C(RPCParameters *rpcParams) {}
|
|
|
|
void Unk20(RPCParameters *rpcParams) {}
|
|
|
|
void UnkA6(RPCParameters *rpcParams) {}
|
|
|
|
void UnkA3(RPCParameters *rpcParams) {}
|
|
|
|
void UnkA4(RPCParameters *rpcParams) {}
|
|
|
|
void UnkA5(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void DamageVehicle(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk18(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void EnterVehicle(RPCParameters *rpcParams) {}
|
|
|
|
void ExitVehicle(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk89(RPCParameters *rpcParams) {}
|
|
|
|
void Unk8A(RPCParameters *rpcParams) {}
|
|
|
|
void Unk8B(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void Chat(RPCParameters *rpcParams) {}
|
|
|
|
void RequestClass(RPCParameters *rpcParams) {}
|
|
|
|
void RequestSpawn(RPCParameters *rpcParams) {}
|
|
|
|
void EditAttachedObject(RPCParameters *rpcParams) {}
|
|
|
|
void EditObject(RPCParameters *rpcParams) {}
|
|
|
|
void SelectObject(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void Unk1C(RPCParameters *rpcParams) {}
|
|
|
|
void UnkAA(RPCParameters *rpcParams) {}
|
2024-04-28 21:00:12 +08:00
|
|
|
void ClientCheck(RPCParameters *rpcParams) {}
|
2024-01-12 23:49:19 +08:00
|
|
|
void UnkAB(RPCParameters *rpcParams) {}
|
|
|
|
void UnkAC(RPCParameters *rpcParams) {}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
void RegisterRPCs(RakClientInterface * pRakClient)
|
|
|
|
{
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk22);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk24);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk3A);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk3B);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk3D);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk6B);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk25);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk26);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk27);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,UpdateScoresPingsIPs);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,SvrStats);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk82);
|
2024-06-01 18:30:44 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,GameModeRestart);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,ClientMessage);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,WorldTime);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk5F);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk3F);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk97);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,ScmEvent);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Weather);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk1D);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk1E);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk3C);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk20);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkA6);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkA3);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkA4);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkA5);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,DamageVehicle);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk18);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,EnterVehicle);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,ExitVehicle);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk89);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk8A);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk8B);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Chat);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,RequestClass);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,RequestSpawn);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,EditAttachedObject);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,EditObject);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,SelectObject);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,Unk1C);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkAA);
|
2024-04-28 21:00:12 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,ClientCheck);
|
2024-01-12 23:49:19 +08:00
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkAB);
|
|
|
|
REGISTER_STATIC_RPC(pRakClient,UnkAC);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
void UnRegisterRPCs(RakClientInterface * pRakClient)
|
|
|
|
{
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk3C);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk20);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkA6);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkA3);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkA4);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkA5);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk18);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,RequestClass);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,RequestSpawn);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,DamageVehicle);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,EnterVehicle);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,ExitVehicle);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk22);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk24);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk3A);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk3B);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk3D);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk89);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk8A);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk8B);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Chat);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk6B);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk25);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk26);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk27);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UpdateScoresPingsIPs);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,SvrStats);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk82);
|
2024-06-01 18:30:44 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,GameModeRestart);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,ClientMessage);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,WorldTime);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk5F);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk3F);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk97);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,ScmEvent);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Weather);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk1D);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk1E);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,EditAttachedObject);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,EditObject);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,SelectObject);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,Unk1C);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkAA);
|
2024-04-28 21:00:12 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,ClientCheck);
|
2024-01-12 23:49:19 +08:00
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkAB);
|
|
|
|
UNREGISTER_STATIC_RPC(pRakClient,UnkAC);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------
|