Add extra_player_info_cs_t struct

Same as extra_player_info_t but for cstrike
Change members of old one with stdint types
This commit is contained in:
8dcc 2023-07-28 16:30:24 +02:00
parent 91944e7f64
commit b0b54faf14
1 changed files with 31 additions and 10 deletions

View File

@ -1,6 +1,8 @@
#ifndef SDK_H_ #ifndef SDK_H_
#define SDK_H_ #define SDK_H_
#include <stdint.h>
/* /*
* cl_enginefunc_t: * cl_enginefunc_t:
* sdk/cl_dll/cl_dll.h:40 -> sdk/engine/cdll_int.h:164 ---+ * sdk/cl_dll/cl_dll.h:40 -> sdk/engine/cdll_int.h:164 ---+
@ -320,17 +322,36 @@ typedef struct {
} game_t; } game_t;
/* sdk/cl_dll/hud.h */ /* sdk/cl_dll/hud.h */
#ifndef MAX_TEAM_NAME
#define MAX_TEAM_NAME 16
#endif
typedef struct { typedef struct {
short frags; int16_t frags;
short deaths; int16_t deaths;
short playerclass; int16_t playerclass;
short health; /* UNUSED */ int16_t health; /* UNUSED */
bool dead; bool dead;
short teamnumber; int16_t teamnumber;
char teamname[MAX_TEAM_NAME]; char teamname[16];
} extra_player_info_t; } extra_player_info_t; /* hl1, tfc */
typedef struct {
int16_t frags;
int16_t deaths;
int16_t team_id;
int32_t has_c4;
int32_t vip;
vec3_t origin;
int32_t radarflash;
int32_t radarflashon;
int32_t radarflashes;
int16_t playerclass;
int16_t teamnumber;
char teamname[16];
bool dead;
int32_t showhealth;
int32_t health;
char location[32];
int32_t sb_health;
int32_t sb_account;
int32_t has_defuse_kit;
} extra_player_info_cs_t; /* cstrike */
#endif /* SDK_H_ */ #endif /* SDK_H_ */