14 Commits

Author SHA1 Message Date
8dcc
6e640f483e Add engine_draw_text to util 2023-07-25 22:50:29 +02:00
8dcc
4b7cdc86b9 Add new_flags parameter to protect_addr 2023-07-25 20:35:50 +02:00
8dcc
f3046d6ac8 Rename player functions from util
valid_client -> valid_player
get_entity -> get_player
2023-07-24 17:09:55 +02:00
8dcc
fee20bb1ec Add unprotect_addr to util.c 2023-07-24 15:57:25 +02:00
8dcc
930ee5cef5 Add CLAMP macro and vec_clamp to util.c 2023-07-24 10:14:50 +02:00
8dcc
a257317f58 Add get_entity to util.c
With checks to make sure entity is correct
Remove is_alive check from valid_client

Fixes 41e6b012d9e34712e2080ff11a9c9a56cfcbbc13
2023-07-23 22:22:36 +02:00
8dcc
60847df031 Add vec_len2d and angle_delta_rad to util.c 2023-07-23 16:21:53 +02:00
8dcc
ee2b9803e4 Add DEG2RAD macro 2023-07-23 15:49:34 +02:00
8dcc
797c2183e2 Add gl_drawline_points to util.c 2023-07-23 14:35:52 +02:00
8dcc
fba031944e Add gl_drawbox to util.c 2023-07-23 01:47:52 +02:00
8dcc
5aa85bc274 Add gl_drawline to util.c 2023-07-23 01:46:53 +02:00
8dcc
9ec237509d Add vec3() function for creating 3d vecs 2023-07-23 00:34:10 +02:00
8dcc
25a9a474cf Fix *_H_ defines
_NAME_H -> NAME_H_
Remove comments from sdk.h
Add credits for cl_clientfuncs_s
2023-07-22 16:31:48 +02:00
8dcc
33494b415f Move util functions to util.c
Move vec2_t to util.h
2023-07-22 16:16:09 +02:00