Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CreateEffect(org, "fx/meteor.efx");
- void CreateEffect(vec3_t origin, char *name_fx)
- {
- DWORD adr_register_fx = 0x49A9F0;
- DWORD adr_create_fx = 0x499500;
- DWORD adr_unk_crfx = *((DWORD*)0x19A1BEC);
- DWORD *org = (DWORD*)origin;
- __asm {
- // FX_Register
- push name_fx
- call adr_register_fx
- add esp, 4
- // CreateEffect
- mov edx, eax
- mov ecx, org
- push adr_unk_crfx
- call adr_create_fx
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement