Rename player functions from util
valid_client -> valid_player get_entity -> get_player
This commit is contained in:
		| @@ -24,7 +24,7 @@ bool chams(void* this_ptr) { | ||||
|     if (ent->index == localplayer->index) { | ||||
|         /* TODO: Hand chams (set var, check in gl hook, return true) */ | ||||
|         return false; | ||||
|     } else if (!valid_client(ent) || !is_alive(ent)) { | ||||
|     } else if (!valid_player(ent) || !is_alive(ent)) { | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -66,10 +66,9 @@ void esp(void) { | ||||
|  | ||||
|     /* Iterate all clients */ | ||||
|     for (int i = 1; i <= i_engine->GetMaxClients(); i++) { | ||||
|         cl_entity_t* ent = get_entity(i); | ||||
|         cl_entity_t* ent = get_player(i); | ||||
|  | ||||
|         if (!ent || !valid_client(ent) || !is_alive(ent) || | ||||
|             vec_is_zero(ent->origin)) | ||||
|         if (!valid_player(ent) || !is_alive(ent) || vec_is_zero(ent->origin)) | ||||
|             continue; | ||||
|  | ||||
|         const int bh = 70; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user