Advertisement
BratokHR

Untitled

Dec 5th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. // CreateEffect(org, "fx/meteor.efx");
  2. void CreateEffect(vec3_t origin, char *name_fx)
  3. {
  4.     DWORD adr_register_fx = 0x49A9F0;
  5.     DWORD adr_create_fx = 0x499500;
  6.     DWORD adr_unk_crfx = *((DWORD*)0x19A1BEC);
  7.     DWORD *org = (DWORD*)origin;
  8.  
  9.     __asm {
  10.         // FX_Register
  11.         push    name_fx
  12.         call    adr_register_fx
  13.         add     esp, 4
  14.  
  15.         // CreateEffect
  16.         mov     edx, eax
  17.         mov     ecx, org
  18.         push    adr_unk_crfx
  19.         call    adr_create_fx
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement