summaryrefslogtreecommitdiff
path: root/src/csgo/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/csgo/trace.h')
-rw-r--r--src/csgo/trace.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/csgo/trace.h b/src/csgo/trace.h
new file mode 100644
index 0000000..e496f15
--- /dev/null
+++ b/src/csgo/trace.h
@@ -0,0 +1,40 @@
+#include "../disasm.h"
+
+#include "hack.h"
+
+struct TRACE_ARGS {
+ U32 ignore_ent;
+ VEC3 start;
+ VEC3 end;
+ U32 mask;
+
+ VEC3 ret_end;
+ VEC3 ret_normal;
+ U32 ret_ent;
+};
+
+__declspec( naked ) void __stdcall trace_shellcode( TRACE_ARGS* args ) {
+ __asm {
+ push ebp
+ mov ebp, esp
+ sub esp, LOCAL_SIZE
+ }
+
+
+
+ DISASM_SIG();
+
+ __asm {
+ mov esp, ebp
+ pop ebp
+ ret
+ }
+}
+
+U32 trace_allocate( CSGO* p ) {
+ DISASM_INFO disasm = disasm_function( &trace_shellcode );
+}
+
+U32 trace_find_func( CSGO* p ) {
+
+} \ No newline at end of file