(mohaa 1.11) ok thanks, ive got it working, i did a bit of tracing back and i came to this function
im guessing its some function, that calls a bunch of drawing functions, its the 6th export called in GetCGameAPI hereCode:300205EA /. 55 PUSH EBP 300205EB |. 8BEC MOV EBP,ESP 300205ED |. E8 97FBFFFF CALL cgamex86.30020189 300205F2 |. E8 63EBFFFF CALL cgamex86.3001F15A 300205F7 |. E8 4DE1FFFF CALL cgamex86.3001E749 300205FC |. E8 31EEFFFF CALL cgamex86.3001F432 30020601 |. E8 2AF2FFFF CALL cgamex86.3001F830 30020606 |. E8 8BE4FFFF CALL cgamex86.3001EA96 3002060B |. E8 3AFCFFFF CALL cgamex86.3002024A 30020610 |. E8 CBFDFFFF CALL cgamex86.300203E0 30020615 |. E8 33F7FFFF CALL cgamex86.3001FD4D 3002061A |. E8 F9F7FFFF CALL cgamex86.3001FE18 3002061F |. E8 95F9FFFF CALL cgamex86.3001FFB9 30020624 |. E8 E3FCFFFF CALL cgamex86.3002030C 30020629 |. 5D POP EBP 3002062A \. C3 RETN
just hook that function as a void func(void) returning the original, and calling your drawing stuff before you return the originalCode:300242B7 >/$ 55 PUSH EBP 300242B8 |. 8BEC MOV EBP,ESP 300242BA |. C705 204E2630 >MOV DWORD PTR DS:[30264E20],cgamex86.30024135 300242C4 |. C705 284E2630 >MOV DWORD PTR DS:[30264E28],cgamex86.30048401 300242CE |. C705 244E2630 >MOV DWORD PTR DS:[30264E24],cgamex86.30024273 300242D8 |. C705 2C4E2630 >MOV DWORD PTR DS:[30264E2C],cgamex86.3001E339 300242E2 |. C705 304E2630 >MOV DWORD PTR DS:[30264E30],cgamex86.30023FDE ; Entry address 300242EC |. C705 344E2630 >MOV DWORD PTR DS:[30264E34],cgamex86.300205EA <----------
ukash : ukash@mombot.co.uk
edit: i need a lil help with the structs, if anyone doesnt mind helping me, my msn is above
edit2: by looking at the FAKK2 source code, i found out that function is actually CG_Draw2D ;-)


Reply With Quote
