2023-10-31 21:15:51 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
#include <windows.h>
|
|
|
|
|
2024-02-06 22:20:05 +08:00
|
|
|
#define MAX_PLAYERS 1004
|
2024-02-12 20:12:15 +08:00
|
|
|
#define MAX_ACTORS 1000
|
2024-02-06 22:08:24 +08:00
|
|
|
#define MAX_VEHICLES 2000
|
2024-02-12 20:10:26 +08:00
|
|
|
#define MAX_OBJECTS 1000
|
2024-02-12 20:22:51 +08:00
|
|
|
#define MAX_MENUS 128
|
2024-02-16 22:32:25 +08:00
|
|
|
#define MAX_TEXT_DRAWS 2304
|
2024-02-18 23:26:49 +08:00
|
|
|
#define MAX_GANG_ZONES 1024
|
2024-02-12 20:16:37 +08:00
|
|
|
#define MAX_LABELS 2048
|
2023-10-31 21:15:51 +08:00
|
|
|
#define PLAYER_PED_SLOTS 210
|
|
|
|
|
2024-02-06 22:08:24 +08:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
typedef unsigned short VEHICLEID;
|
2024-02-12 20:12:15 +08:00
|
|
|
typedef unsigned short ACTORID;
|
2024-02-06 22:20:05 +08:00
|
|
|
typedef unsigned short PLAYERID;
|
2024-02-06 22:08:24 +08:00
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
typedef struct _VECTOR {
|
|
|
|
float X,Y,Z;
|
|
|
|
} VECTOR, *PVECTOR;
|
2023-10-31 21:15:51 +08:00
|
|
|
|
2024-02-06 21:37:52 +08:00
|
|
|
typedef struct _MATRIX4X4 {
|
|
|
|
VECTOR right;
|
|
|
|
DWORD flags;
|
|
|
|
VECTOR up;
|
|
|
|
float pad_u;
|
|
|
|
VECTOR at;
|
|
|
|
float pad_a;
|
|
|
|
VECTOR pos;
|
|
|
|
float pad_p;
|
|
|
|
} MATRIX4X4, *PMATRIX4X4;
|
2024-02-10 22:48:48 +08:00
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _ENTITY_TYPE
|
|
|
|
{
|
|
|
|
// ENTITY STUFF
|
|
|
|
DWORD vtable; // 0-4
|
|
|
|
|
|
|
|
char _pad4[16];
|
|
|
|
|
|
|
|
MATRIX4X4 *mat; // 20-24
|
2024-02-16 22:27:57 +08:00
|
|
|
DWORD *pdwRenderWare; // 24-28
|
2024-02-10 22:48:48 +08:00
|
|
|
|
2024-02-27 21:25:04 +08:00
|
|
|
char _gap1C[6];
|
|
|
|
|
|
|
|
WORD nModelIndex; // 34-36
|
|
|
|
|
|
|
|
char _gap24[32];
|
2024-02-18 22:43:14 +08:00
|
|
|
|
|
|
|
VECTOR vecMoveSpeed; // 68-80
|
2024-02-19 21:10:50 +08:00
|
|
|
VECTOR vecTurnSpeed; // 80-92
|
2024-02-18 22:43:14 +08:00
|
|
|
|
2024-02-21 19:32:18 +08:00
|
|
|
char _gap5C[88];
|
|
|
|
|
|
|
|
DWORD dwUnkModelRel; // 180-184
|
2024-02-10 22:48:48 +08:00
|
|
|
} ENTITY_TYPE;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
2024-02-15 21:41:26 +08:00
|
|
|
#pragma pack(1)
|
|
|
|
typedef struct _PED_TYPE
|
|
|
|
{
|
|
|
|
ENTITY_TYPE entity;
|
|
|
|
|
|
|
|
} PED_TYPE;
|
|
|
|
|
2024-02-26 23:05:29 +08:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
typedef struct _VEHICLE_TYPE
|
|
|
|
{
|
|
|
|
char _gap0;
|
|
|
|
} VEHICLE_TYPE;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2024-02-27 21:25:04 +08:00
|
|
|
#define TRAIN_PASSENGER_LOCO 537
|
|
|
|
#define TRAIN_FREIGHT_LOCO 538
|
|
|
|
#define TRAIN_PASSENGER 569
|
|
|
|
#define TRAIN_FREIGHT 570
|
|
|
|
#define TRAIN_TRAM 449
|
|
|
|
#define HYDRA 520
|
2024-02-15 21:41:26 +08:00
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2024-02-19 21:08:29 +08:00
|
|
|
// ---- weapon id defines ----
|
|
|
|
#define WEAPON_BRASSKNUCKLE 1
|
|
|
|
#define WEAPON_GOLFCLUB 2
|
|
|
|
#define WEAPON_NITESTICK 3
|
|
|
|
#define WEAPON_KNIFE 4
|
|
|
|
#define WEAPON_BAT 5
|
|
|
|
#define WEAPON_SHOVEL 6
|
|
|
|
#define WEAPON_POOLSTICK 7
|
|
|
|
#define WEAPON_KATANA 8
|
|
|
|
#define WEAPON_CHAINSAW 9
|
|
|
|
#define WEAPON_DILDO 10
|
|
|
|
#define WEAPON_DILDO2 11
|
|
|
|
#define WEAPON_VIBRATOR 12
|
|
|
|
#define WEAPON_VIBRATOR2 13
|
|
|
|
#define WEAPON_FLOWER 14
|
|
|
|
#define WEAPON_CANE 15
|
|
|
|
#define WEAPON_GRENADE 16
|
|
|
|
#define WEAPON_TEARGAS 17
|
|
|
|
#define WEAPON_MOLTOV 18
|
|
|
|
#define WEAPON_ROCKET 19
|
|
|
|
#define WEAPON_ROCKET_HS 20
|
|
|
|
#define WEAPON_FREEFALLBOMB 21
|
|
|
|
#define WEAPON_COLT45 22
|
|
|
|
#define WEAPON_SILENCED 23
|
|
|
|
#define WEAPON_DEAGLE 24
|
|
|
|
#define WEAPON_SHOTGUN 25
|
|
|
|
#define WEAPON_SAWEDOFF 26
|
|
|
|
#define WEAPON_SHOTGSPA 27
|
|
|
|
#define WEAPON_UZI 28
|
|
|
|
#define WEAPON_MP5 29
|
|
|
|
#define WEAPON_AK47 30
|
|
|
|
#define WEAPON_M4 31
|
|
|
|
#define WEAPON_TEC9 32
|
|
|
|
#define WEAPON_RIFLE 33
|
|
|
|
#define WEAPON_SNIPER 34
|
|
|
|
#define WEAPON_ROCKETLAUNCHER 35
|
|
|
|
#define WEAPON_HEATSEEKER 36
|
|
|
|
#define WEAPON_FLAMETHROWER 37
|
|
|
|
#define WEAPON_MINIGUN 38
|
|
|
|
#define WEAPON_SATCHEL 39
|
|
|
|
#define WEAPON_BOMB 40
|
|
|
|
#define WEAPON_SPRAYCAN 41
|
|
|
|
#define WEAPON_FIREEXTINGUISHER 42
|
|
|
|
#define WEAPON_CAMERA 43
|
|
|
|
#define WEAPON_NIGHTVISION 44
|
|
|
|
#define WEAPON_INFRARED 45
|
|
|
|
#define WEAPON_PARACHUTE 46
|
|
|
|
#define WEAPON_ARMOUR 47
|
|
|
|
#define WEAPON_VEHICLE 49
|
|
|
|
#define WEAPON_HELIBLADES 50
|
|
|
|
#define WEAPON_EXPLOSION 51
|
|
|
|
#define WEAPON_DROWN 53
|
|
|
|
#define WEAPON_COLLISION 54
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2024-02-21 19:35:39 +08:00
|
|
|
#define MAPICON_LOCAL 0
|
|
|
|
#define MAPICON_GLOBAL 1
|
|
|
|
#define MAPICON_LOCAL_CHECKPOINT 2
|
|
|
|
#define MAPICON_GLOBAL_CHECKPOINT 3
|