Add get_cur_game to util.c

Reverse is_alive method to avoid esp on some dead people
Add game check to is_friend, since the team method only works on certain games
This commit is contained in:
8dcc
2023-07-28 15:43:51 +02:00
parent de578033f2
commit 418f1afaca
2 changed files with 32 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ bool is_alive(cl_entity_t* ent);
bool valid_player(cl_entity_t* ent);
bool is_friend(cl_entity_t* ent);
char* get_name(int ent_idx);
game_id get_cur_game(void);
vec3_t vec3(float x, float y, float z);
bool vec_is_zero(vec3_t v);
float vec_len2d(vec3_t v);