Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Draw Vectors Lines Using Engine
#1
PHP Code:
void (*Get_Draw_Vector_Line)(const vec3_t start, const vec3_t end, const vec3_t Minsint noIdea  ) = (void (__cdecl *)(const vec3_t , const vec3_t , const vec3_t int     ))0x402A50

PHP Code:
void (*Set_Draw_Vector_Line)(const vec3_t start, const vec3_t Mins, const vec3_t Maxsint noIdea, const vec3_t VecTorSizeint Unknow2int unknow3  ) = (void (__cdecl *)( const vec3_t , const vec3_t , const vec3_t int , const vec3_t int int   ))0x6B19F0

exemplar how to use

PHP Code:
TraceSettings->Mask get_bullet_penetration_table)->Mask;
        
                
vec3_t Start;
                
vec3_t Maxs;
                
                
Get_Draw_Vector_LineStartEndvec3_origin0  );
                
Set_Draw_Vector_LineStartvec3_originMaxs0vec3_origin00   );
                
Set_Draw_Vector_LineEndvec3_originMaxs0vec3_origin00   );
                
                
Set_Weapon_CL_Trace(CTraceStartvec3_originMaxsEndcent->ClientNum0x800000 1024TraceSettings ); 

but also check the isVisible Code

corrected

PHP Code:
void (*Draw2D_Debug_Line)(const vec3_t start, const vec3_t end,  vec4_t Colorbool dontDrawTruhWalls  ) = (void (__cdecl *)(const vec3_t  , const vec3_t ,  vec4_t bool ))0x402A50;
void (*Draw3D_Debug_Line)(const vec3_t start, const vec3_t BoxSize,   const vec3_t VecTorSize int noIdea,  vec4_t colorbool  dontDrawTruhWallsint PredictEffect  ) = (void (__cdecl *)( const  vec3_t , const vec3_t ,  const vec3_t int ,  vec4_t bool int    ))0x6B19F0

Just made 3D box as well

[Image: blaql.jpg]

asm

Draw2D_Debug_Line

PHP Code:
.text:00402A50 sub_402A50      proc near               CODE XREFsub_477DF0+B0p
.text:00402A50                                         sub_477DF0:loc_477F38p ...
.
text:00402A50
.text:00402A50 arg_0           dword ptr  4
.text:00402A50 arg_4           dword ptr  8
.text:00402A50 arg_8           dword ptr  0Ch
.text:00402A50 arg_C           dword ptr  10h
.text:00402A50
.text:00402A50                 mov     eax, [esp+arg_C]
.
text:00402A54                 mov     ecx, [esp+arg_8]
.
text:00402A58                 mov     edx, [esp+arg_4]
.
text:00402A5C                 push    0
.text:00402A5E                 push    eax
.text:00402A5F                 mov     eax, [esp+8+arg_0]
.
text:00402A63                 push    ecx
.text:00402A64                 push    edx
.text:00402A65                 push    eax
.text:00402A66                 call    sub_4D4880
.text:00402A6B                 add     esp14h
.text:00402A6E                 retn
.text:00402A6E sub_402A50      endp
.text:00402A6E 

Draw3D_Debug_Line

PHP Code:
.text:006B19F0
.text:006B19F0 ; =============== S U B R O U T I N E =======================================
.
text:006B19F0
.text:006B19F0
.text:006B19F0 sub_6B19F0      proc near               CODE XREF: .text:0040CDF7p
.text:006B19F0                                         ; .text:0049308Fp ...
.
text:006B19F0
.text:006B19F0 var_74          dword ptr -74h
.text:006B19F0 var_70          dword ptr -70h
.text:006B19F0 var_6C          dword ptr -6Ch
.text:006B19F0 var_68          dword ptr -68h
.text:006B19F0 var_64          dword ptr -64h
.text:006B19F0 var_60          byte ptr -60h
.text:006B19F0 var_5C          byte ptr -5Ch
.text:006B19F0 arg_0           dword ptr  4
.text:006B19F0 arg_4           dword ptr  8
.text:006B19F0 arg_8           dword ptr  0Ch
.text:006B19F0 arg_C           dword ptr  10h
.text:006B19F0 arg_10          dword ptr  14h
.text:006B19F0 arg_14          dword ptr  18h
.text:006B19F0 arg_18          dword ptr  1Ch
.text:006B19F0
.text:006B19F0                 sub     esp74h
.text:006B19F3                 movss   xmm0, [esp+74h+arg_C]
.
text:006B19FC                 mulss   xmm0ds:dword_A2F1E4
.text:006B1A04                 push    ebx
.text:006B1A05                 push    ebp
.text:006B1A06                 push    esi
.text:006B1A07                 lea     eax, [esp+80h+var_74]
.
text:006B1A0B                 lea     ecx, [esp+80h+var_70]
.
text:006B1A0F                 push    edi
.text:006B1A10                 mov     [esp+84h+var_68], eax
.text:006B1A14                 mov     [esp+84h+var_6C], ecx
.text:006B1A18                 movss   [esp+84h+var_64], xmm0
.text:006B1A1E                 push    eax
.text:006B1A1F                 push    ecx
.text:006B1A20                 fld     [esp+8Ch+var_64]
.
text:006B1A24                 fsincos
.text:006B1A26                 mov     ecx, [esp+8Ch+var_68]
.
text:006B1A2A                 mov     eax, [esp+8Ch+var_6C]
.
text:006B1A2E                 fstp    dword ptr [ecx]
.
text:006B1A30                 fstp    dword ptr [eax]
.
text:006B1A32                 pop     ecx
.text:006B1A33                 pop     eax
.text:006B1A34                 mov     eax, [esp+84h+arg_0]
.
text:006B1A3B                 movss   xmm0dword ptr [eax+8]
.
text:006B1A40                 movss   xmm5dword ptr [eax]
.
text:006B1A44                 movss   xmm6dword ptr [eax+4]
.
text:006B1A49                 mov     esi, [esp+84h+arg_8]
.
text:006B1A50                 mov     edi, [esp+84h+arg_4]
.
text:006B1A57                 movss   xmm3, [esp+84h+var_74]
.
text:006B1A5D                 movss   xmm4, [esp+84h+var_70]
.
text:006B1A63                 lea     eax, [esp+84h+var_5C]
.
text:006B1A67                 xor     ecxecx
.text:006B1A69                 movss   [esp+84h+var_64], xmm0
.text:006B1A6F                 mov     edxeax
.text:006B1A71
.text:006B1A71 loc_6B1A71:                             ; CODE XREFsub_6B19F0+122j
.text:006B1A71                 test    cl1
.text:006B1A74                 jz      short loc_6B1A7C
.text:006B1A76                 movss   xmm0dword ptr [esi]
.
text:006B1A7A                 jmp     short loc_6B1A80
.text:006B1A7C ; ---------------------------------------------------------------------------
.
text:006B1A7C
.text:006B1A7C loc_6B1A7C:                             ; CODE XREFsub_6B19F0+84j
.text:006B1A7C                 movss   xmm0dword ptr [edi]
.
text:006B1A80
.text:006B1A80 loc_6B1A80:                             ; CODE XREFsub_6B19F0+8Aj
.text:006B1A80                 movss   dword ptr [edx-4], xmm0
.text:006B1A85                 test    cl2
.text:006B1A88                 jz      short loc_6B1A91
.text:006B1A8A                 movss   xmm0dword ptr [esi+4]
.
text:006B1A8F                 jmp     short loc_6B1A96
.text:006B1A91 ; ---------------------------------------------------------------------------
.
text:006B1A91
.text:006B1A91 loc_6B1A91:                             ; CODE XREFsub_6B19F0+98j
.text:006B1A91                 movss   xmm0dword ptr [edi+4]
.
text:006B1A96
.text:006B1A96 loc_6B1A96:                             ; CODE XREFsub_6B19F0+9Fj
.text:006B1A96                 movss   dword ptr [edx], xmm0
.text:006B1A9A                 test    cl4
.text:006B1A9D                 jz      short loc_6B1AA6
.text:006B1A9F                 movss   xmm0dword ptr [esi+8]
.
text:006B1AA4                 jmp     short loc_6B1AAB
.text:006B1AA6 ; ---------------------------------------------------------------------------
.
text:006B1AA6
.text:006B1AA6 loc_6B1AA6:                             ; CODE XREFsub_6B19F0+ADj
.text:006B1AA6                 movss   xmm0dword ptr [edi+8]
.
text:006B1AAB
.text:006B1AAB loc_6B1AAB:                             ; CODE XREFsub_6B19F0+B4j
.text:006B1AAB                 movss   dword ptr [edx+4], xmm0
.text:006B1AB0                 movss   xmm0dword ptr [eax-4]
.
text:006B1AB5                 movss   xmm1dword ptr [eax]
.
text:006B1AB9                 movaps  xmm2xmm0
.text:006B1ABC                 mulss   xmm0xmm4
.text:006B1AC0                 movaps  xmm7xmm1
.text:006B1AC3                 mulss   xmm1xmm3
.text:006B1AC7                 addss   xmm0xmm1
.text:006B1ACB                 movss   dword ptr [eax], xmm0
.text:006B1ACF                 mulss   xmm2xmm3
.text:006B1AD3                 mulss   xmm7xmm4
.text:006B1AD7                 subss   xmm2xmm7
.text:006B1ADB                 movss   dword ptr [eax-4], xmm2
.text:006B1AE0                 movaps  xmm0xmm2
.text:006B1AE3                 addss   xmm0xmm5
.text:006B1AE7                 movss   dword ptr [eax-4], xmm0
.text:006B1AEC                 movss   xmm0dword ptr [eax]
.
text:006B1AF0                 addss   xmm0xmm6
.text:006B1AF4                 movss   dword ptr [eax], xmm0
.text:006B1AF8                 movss   xmm0dword ptr [eax+4]
.
text:006B1AFD                 addss   xmm0, [esp+84h+var_64]
.
text:006B1B03                 movss   dword ptr [eax+4], xmm0
.text:006B1B08                 inc     ecx
.text:006B1B09                 add     edx0Ch
.text:006B1B0C                 add     eax0Ch
.text:006B1B0F                 cmp     ecx8
.text:006B1B12                 jb      loc_6B1A71
.text:006B1B18                 mov     edi, [esp+84h+arg_18]
.
text:006B1B1F                 mov     ebx, [esp+84h+arg_14]
.
text:006B1B26                 mov     ebp, [esp+84h+arg_10]
.
text:006B1B2D                 xor     esiesi
.text:006B1B2F                 nop
.text:006B1B30
.text:006B1B30 loc_6B1B30:                             ; CODE XREFsub_6B19F0+16Dj
.text:006B1B30                 mov     eaxds:dword_AB726C[esi]
.
text:006B1B36                 push    edi
.text:006B1B37                 lea     edx, [eax+eax*2]
.
text:006B1B3A                 push    ebx
.text:006B1B3B                 lea     eax, [esp+edx*4+8Ch+var_60]
.
text:006B1B3F                 push    ebp
.text:006B1B40                 push    eax
.text:006B1B41                 mov     eaxds:dword_AB7268[esi]
.
text:006B1B47                 lea     ecx, [eax+eax*2]
.
text:006B1B4A                 lea     edx, [esp+ecx*4+94h+var_60]
.
text:006B1B4E                 push    edx
.text:006B1B4F                 call    sub_4D4880
.text:006B1B54                 add     esi8
.text:006B1B57                 add     esp14h
.text:006B1B5A                 cmp     esi60h
.text:006B1B5D                 jb      short loc_6B1B30
.text:006B1B5F                 pop     edi
.text:006B1B60                 pop     esi
.text:006B1B61                 pop     ebp
.text:006B1B62                 pop     ebx
.text:006B1B63                 add     esp74h
.text:006B1B66                 retn
.text:006B1B66 sub_6B19F0      endp 

edit:

easy reverence to find it in any cod

PHP Code:
bool __cdecl sub_7FCA20()
{
  return (
dword_33F0E34
       
|| (dword_33F0E2C 2048,
           
dword_33F0E4C 4096,
           
dword_33F0E3C 4096,
           
sub_711FD0((int)&dword_33F0E340x16000u, (int)"Client Debug Lines"),
           
sub_711FD0((int)&dword_33F0E380x2000u, (int)"Client Debug Lines"),
           
dword_33F0E30 0,
           
sub_711FD0((int)&dword_33F0E540x2C000u, (int)"Client Debug Lines"),
           
sub_711FD0((int)&dword_33F0E580x4000u, (int)"Client Debug Lines"),
           
dword_33F0E50 0,
           
sub_711FD0((int)&dword_33F0E440x2C000u, (int)"Client Debug Lines"),
           
dword_33F0E40 0,
           
dword_33F0E34))
      && 
dword_33F0E38
      
&& dword_33F0E54
      
&& dword_33F0E58
      
&& dword_33F0E44;


Client Debug Lines calls in the functions above

[Image: shot0156q.jpg]

Credits:
King-OrgY
Reply

#2
woah goodjob d0h!
--
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  TUTORIAL CHEAT ENGINE for mw3 [HARD] Tony. 5 4,667 10-24-2013, 15:22
Last Post: Tomsen1410
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 8,106 08-06-2013, 06:28
Last Post: 14th
  can't find script engine "VBScript" for script "C:\Windows\system32\slmgr.vbs" ddaavvee 6 24,634 06-18-2013, 03:46
Last Post: dylankrajewski
  [News] Call Of Duty: Ghosts - New Engine Video Tomsen1410 7 5,787 06-10-2013, 20:24
Last Post: Pozzuh
  Using Cheat Engine with Zombies Single Player kikkawa 3 10,891 06-03-2013, 01:18
Last Post: kikkawa
  [Request] draw fps lander 5 3,349 05-15-2013, 09:35
Last Post: Nekochan
  Why there are no modding for Frostbite Engine RaZ 2 3,333 03-30-2013, 17:14
Last Post: Pozzuh
  [Request] Chat Lines Extended xDarkPrince 3 3,187 09-20-2012, 19:48
Last Post: xDarkPrince
  [News] Black ops 2 zombies in MP engine Pozzuh 28 11,945 09-02-2012, 15:21
Last Post: Nekochan
  Can't play any unreal engine games. Pozzuh 2 3,348 07-09-2012, 19:53
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.