[bot] Add few classes

This commit is contained in:
RD42 2023-10-31 21:31:16 +08:00
parent 49b2219015
commit ba1294ad03
11 changed files with 113 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -119,6 +119,19 @@
<File
RelativePath=".\net\netgame.h">
</File>
<File
RelativePath=".\net\playerpool.cpp">
</File>
<File
RelativePath=".\net\playerpool.h">
</File>
<File
RelativePath=".\net\vehiclepool.cpp">
</File>
<File
RelativePath=".\net\vehiclepool.h">
</File>
</Filter>
</Filter>
<File
RelativePath=".\bot.rc">
@ -129,9 +142,21 @@
<File
RelativePath=".\main.h">
</File>
<File
RelativePath=".\npcmode.cpp">
</File>
<File
RelativePath=".\npcmode.h">
</File>
<File
RelativePath=".\resource.h">
</File>
<File
RelativePath=".\scrtimers.cpp">
</File>
<File
RelativePath=".\scrtimers.h">
</File>
</Files>
<Globals>
</Globals>

14
bot/net/playerpool.cpp Normal file
View File

@ -0,0 +1,14 @@
#include "playerpool.h"
CPlayerPool::CPlayerPool()
{
// TODO: CPlayerPool::CPlayerPool W: 004196A0 L: 080B1F4E
field_7163 = 0;
field_8107 = 0;
for(unsigned short i = 0; i < 1000; i++) {
field_0[i] = 0;
field_7167[i] = 0;
field_810B[i] = 0;
}
}

15
bot/net/playerpool.h Normal file
View File

@ -0,0 +1,15 @@
class CPlayerPool // size: 41035
{
private:
int field_0[1000];
char _gapFA0[25027];
int field_7163;
int field_7167[1000];
int field_8107;
int field_810B[1000];
char gap90AB[4000];
public:
CPlayerPool();
};

10
bot/net/vehiclepool.cpp Normal file
View File

@ -0,0 +1,10 @@
#include "vehiclepool.h"
CVehiclePool::CVehiclePool()
{
// TODO: CVehiclePool::CVehiclePool W: 0041A890 L: 080B9408
for(unsigned short i = 0; i < 2000; i++) {
field_84D0[i] = 0;
}
}

11
bot/net/vehiclepool.h Normal file
View File

@ -0,0 +1,11 @@
class CVehiclePool // size: 114000
{
private:
char _gap0[34000];
int field_84D0[2000];
char _gapA410[72000];
public:
CVehiclePool();
};

12
bot/npcmode.cpp Normal file
View File

@ -0,0 +1,12 @@
// Now the question is, is this called CGameMode or something else?
// It is basically the same as what the server has with minor differences
#include "npcmode.h"
CNPCMode::CNPCMode()
{
// TODO: CNPCMode::CNPCMode W: 0041A9C0 L: 080A940C
field_68 = 0;
field_69 = 0;
}

12
bot/npcmode.h Normal file
View File

@ -0,0 +1,12 @@
class CNPCMode // size: 110
{
private:
char _gap0[104];
char field_68;
char field_69;
float field_6A;
public:
CNPCMode();
};

7
bot/scrtimers.cpp Normal file
View File

@ -0,0 +1,7 @@
#include "scrtimers.h"
CScriptTimers::CScriptTimers()
{
// TODO: CScriptTimers::CScriptTimers W: 0041D700 L: 080B8036
}

7
bot/scrtimers.h Normal file
View File

@ -0,0 +1,7 @@
class CScriptTimers // size W 16/L 25
{
private:
public:
CScriptTimers();
};