SA-MP/saco/game/common.h

59 lines
1.0 KiB
C
Raw Normal View History

2023-10-31 21:15:51 +08:00
#pragma once
#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-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
typedef struct _VECTOR {
float X,Y,Z;
} VECTOR, *PVECTOR;
2023-10-31 21:15:51 +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;
//-----------------------------------------------------------
#pragma pack(1)
typedef struct _ENTITY_TYPE
{
// ENTITY STUFF
DWORD vtable; // 0-4
char _pad4[16];
MATRIX4X4 *mat; // 20-24
DWORD *pdwRenderWare; // 24-28
} ENTITY_TYPE;
//-----------------------------------------------------------
#pragma pack(1)
typedef struct _PED_TYPE
{
ENTITY_TYPE entity;
} PED_TYPE;
//-----------------------------------------------------------