Commit Graph

197 Commits

Author SHA1 Message Date
8dcc 7e46e74b9e Replace hand chams with non-flat ones
Credits to @oxiKKK
2023-07-26 17:25:50 +02:00
8dcc 083186b497 Change default value of cv_chams
From 3 to 1
2023-07-26 17:25:33 +02:00
8dcc 7ad62b0fc4 Add hand chams 2023-07-26 16:34:14 +02:00
8dcc b5981b1da3 Change default value of cv_chams 2023-07-26 16:33:53 +02:00
8dcc ef29333d21 Update usehull check for crouched
Check its 1 instead of non-zero. Thanks to @oxiKKK
2023-07-26 14:26:09 +02:00
8dcc dbc12b6fb5 Sync detour.h with upstream
Add GET_ORIGINAL()
2023-07-26 13:35:11 +02:00
8dcc 684f950509 Clean hooks.c
Organize includes
Add comments
Rename clmove_data -> detour_data_clmove
Rename clmove_t -> clmove_type_t
2023-07-25 23:03:04 +02:00
8dcc 7a2d7b9377 Call engine_draw_text
Instead of pfnDrawConsoleString
2023-07-25 22:51:13 +02:00
8dcc 6e640f483e Add engine_draw_text to util 2023-07-25 22:50:29 +02:00
8dcc 56217cc7f3 Add cv_clmove cvar 2023-07-25 22:10:26 +02:00
8dcc 82580503ce Call hooks_restore() from destructor 2023-07-25 20:38:06 +02:00
8dcc 74f222c1db Hook CL_Move
Cheers, @Lak3!

Also add hooks_restore()
2023-07-25 20:37:45 +02:00
8dcc a103a53fda Add detour library for hooking
https://github.com/8dcc/detour-lib
2023-07-25 20:36:00 +02:00
8dcc 4b7cdc86b9 Add new_flags parameter to protect_addr 2023-07-25 20:35:50 +02:00
8dcc 0b72235dea Add visible_mode check to glColor4f hook 2023-07-25 14:46:37 +02:00
8dcc 889d9481aa Make visible_mode global 2023-07-25 14:46:25 +02:00
8dcc 6e39b49c4b Unhook glColor4f from destructor 2023-07-25 14:28:03 +02:00
8dcc 2caa3ae57e Save and restore i_enginestudio 2023-07-25 14:24:50 +02:00
8dcc b6cdb9a55d Add glColor4f hook
Add GL_HOOK and GL_UNHOOK macros
2023-07-25 14:20:38 +02:00
8dcc fdb5cdf356 Add change box esp size if player is crouched 2023-07-24 20:35:22 +02:00
8dcc 9fe986306d Add different values for cv_esp
0 - Off
1 - 3D Box
2 - Name
3 - 3D Box + Name
2023-07-24 18:02:05 +02:00
8dcc a87b30dc40 Add player check to valid_player 2023-07-24 17:33:27 +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 9627989304 Add chams code
No custom colors yet
2023-07-24 17:03:22 +02:00
8dcc 5858a2e4ec Add cv_chams cvar 2023-07-24 17:03:06 +02:00
8dcc 4183a0c2f0 Add enginestudio interface
Not really an interface but whatever
2023-07-24 16:29:46 +02:00
8dcc d5b8ce5b84 Add include to sdk 2023-07-24 16:28:35 +02:00
8dcc 78f0527317 Hook StudioRenderModel 2023-07-24 16:17:57 +02:00
8dcc c48c4164f2 Add hClientDLL handler and i_studiomodelrenderer
Fix error string
2023-07-24 15:57:48 +02:00
8dcc fee20bb1ec Add unprotect_addr to util.c 2023-07-24 15:57:25 +02:00
8dcc 44f00ace13 Add StudioModelRenderer_t to sdk.h 2023-07-24 15:57:08 +02:00
8dcc caf008403c Change low speed value, remove air check from autostrafe 2023-07-24 15:17:11 +02:00
8dcc 913e1c9a69 Only autostrafe if holding space 2023-07-24 10:29:34 +02:00
8dcc c131e5251d Change default value of cv_esp to 1 2023-07-24 10:18:29 +02:00
8dcc 4d71945eb3 Clamp viewangles in CL_CreateMove 2023-07-24 10:15:03 +02:00
8dcc 930ee5cef5 Add CLAMP macro and vec_clamp to util.c 2023-07-24 10:14:50 +02:00
8dcc e8e6e48952 Use get_entity instead of GetEntityByIndex 2023-07-23 22:31:37 +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 41e6b012d9
2023-07-23 22:22:36 +02:00
8dcc 02ba15ba3f Add rage autostrafe 2023-07-23 16:22:10 +02:00
8dcc 60847df031 Add vec_len2d and angle_delta_rad to util.c 2023-07-23 16:21:53 +02:00
8dcc 367a811667 Add DEBUG check to player pos 2023-07-23 16:12:31 +02:00
8dcc 611182e394 Add correct_movement, call from CL_CreateMove 2023-07-23 15:50:01 +02:00
8dcc ee2b9803e4 Add DEG2RAD macro 2023-07-23 15:49:34 +02:00
8dcc 1affa52bc8 Add legit autostrafe 2023-07-23 15:38:50 +02:00
8dcc 2141daae27 Add autostrafe cvar 2023-07-23 15:38:43 +02:00
8dcc 2e1b44a825 Change value of cv_esp to 0
Until it works perfectly (no ghost entities)
2023-07-23 14:57:20 +02:00
8dcc 41e6b012d9 Add 3d box esp
Sometimes shows "ghost" boxes with weird strings (not player names but
the coordinates that are drawn bellow the watermark)
2023-07-23 14:36:44 +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 195f9831af Change features.h includes 2023-07-22 16:23:15 +02:00
8dcc db9068d86f Move features/include/*.h to features/features.h 2023-07-22 16:22:34 +02:00
8dcc 33494b415f Move util functions to util.c
Move vec2_t to util.h
2023-07-22 16:16:09 +02:00
8dcc 0f473bba4e Call esp() from HUD_Redraw hook
Draw localplayer pos bellow watermark
2023-07-22 16:06:18 +02:00
8dcc f11378b38b Add esp source and header, with "utils" functions 2023-07-22 16:05:47 +02:00
8dcc 082a03878e Add triangleapi inlcude to sdk 2023-07-22 15:48:19 +02:00
8dcc 4913d4802c Fix globals_store and globals_restore 2023-07-22 15:48:01 +02:00
8dcc 24c1d796d9 Add esp cvar 2023-07-21 15:49:01 +02:00
8dcc 77a8a97a0f Add HUD_Redraw hook 2023-07-21 15:42:01 +02:00
8dcc 01312cb4b6 Add inline comments to constructor and destructor attributes 2023-07-21 13:59:38 +02:00
8dcc 4c5fbcd677 Add todo comment to unload() 2023-07-21 13:58:47 +02:00
8dcc 90ef1e4105 Update CVAR_HACK_ID 2023-07-21 13:49:12 +02:00
8dcc b25226b406 Add cv_bhop check to bhop() 2023-07-21 13:45:21 +02:00
8dcc 083778fad0 Add cvars_init() call to main 2023-07-21 13:44:53 +02:00
8dcc 2578db9486 Add cvars.c source with cv_bhop cvar 2023-07-21 13:44:18 +02:00
8dcc 9d9398e764 Add cvars.h header
With macros for declaring cvar_t ptrs in source and header, registering
new cvars and checking if the value is positive.

Also cvars_init function and cv_bhop declaration
2023-07-21 13:43:23 +02:00
8dcc 02517bf975 Add cvardef include to sdk.h 2023-07-21 13:43:00 +02:00
8dcc 6d9f73feb3 Add comment 2023-07-21 13:16:38 +02:00
8dcc 790de69b5c Add destructor for restoring globals 2023-07-21 07:02:38 +02:00
8dcc e86f10ec9f Add functions for storing and restoring globals 2023-07-21 07:02:26 +02:00
8dcc 8216613d11 Add localplayer entity 2023-07-20 23:30:44 +02:00
8dcc e3af8bd39a Call bhop after original in CL_CreateMove 2023-07-20 23:21:01 +02:00
8dcc 1f1df22414 Add features folder and bhop 2023-07-20 23:20:39 +02:00
8dcc 5849eb2ed3 Add interface checks to globals_init 2023-07-20 23:19:50 +02:00
8dcc 0bab33a08e Add pmove interface 2023-07-20 20:40:34 +02:00
8dcc 8cbb80196f Add include to sdk.h 2023-07-20 20:39:53 +02:00
8dcc 4db305daa2 Change prefix for interfaces
gp_* -> i_*
go_* -> o_*
2023-07-20 20:25:49 +02:00
8dcc f1953cc433 Update sdk location 2023-07-20 18:05:40 +02:00
8dcc 923be5eb11 Remove sdk folder, add as submodule in include 2023-07-20 17:59:26 +02:00
8dcc 4a7bfcf6dd Call hooks_init from main
Fix typos
Change include order
2023-07-20 17:44:35 +02:00
8dcc b7711d2503 Add hooks source
With hooks_init for hooking everything and CL_CreateMove hook
2023-07-20 17:44:04 +02:00
8dcc ef8504cdc9 Add hooks header
With macros for declaring hooks in header, in code, actually hooking and
calling the originals
Also with CL_CreateMove hooked
2023-07-20 17:42:06 +02:00
8dcc 9b20d7e71f Add usercmd_t include to sdk.h 2023-07-20 17:41:50 +02:00
8dcc b08e19d8fa Typo 2023-07-20 17:31:16 +02:00
8dcc ebb3f513d3 Change globals.h comment 2023-07-20 17:26:30 +02:00
8dcc 68c30891a8 Rename globals' macros
DECLARE -> DECL
SYMBOLS -> INTF
EXTERNS -> EXTERN
2023-07-20 16:38:02 +02:00
8dcc 340c5222b7 Comment unused sdk includes for now 2023-07-20 01:47:03 +02:00
8dcc 55fbf57d92 Add sdk header
With cl_clientfunc_t and sdk's includes
2023-07-20 01:45:45 +02:00
8dcc 6103ae8019 Add globals.c file
Declarations of the externs in the header
globals_init() function for getting the hw.so handler and the
gp_engine and gp_client symbol pointers
2023-07-20 01:44:20 +02:00
8dcc 12b3af41c1 Add header for globals.c
With DECLARE_SYMBOLS and DECLARE_EXTERNS macros
hw extern for hw.so handler
Externs engine and client symbol pointers (and originals)
globals_init function
2023-07-20 01:37:28 +02:00
8dcc eb64855797 Add header for main.c 2023-07-20 01:37:16 +02:00
8dcc bd8c2521be Add self_unload to main, print symbol addresses
Echo from game console
2023-07-20 01:29:11 +02:00
8dcc dd6c31afc3 Add SDK 2023-07-20 00:00:57 +02:00
8dcc 4549ddc570 Add constructor comment 2023-07-19 20:24:34 +02:00
8dcc ddbb36d191 Add main source 2023-07-19 19:39:50 +02:00