Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Unnamed
Wednesday, May 16th, 2012 at 1:43:11pm MDT 

  1. bool _stdcall Exit_Ladder_Hook(GameObject* /* SoldierGameObj */ SoldierObj)
  2. {
  3.         Console_Output("Soldier = %s\n",
  4.                 Commands->Get_Preset_Name(SoldierObj));
  5.  
  6.         return true;
  7. }
  8.  
  9. void _declspec(naked) Exit_Ladder_Hook_Glue()
  10. {
  11.         _asm
  12.         {       
  13.                 push ecx
  14.                 push ecx
  15.                 call Exit_Ladder_Hook
  16.                 pop ecx
  17.                 test al, al
  18.                 jz return_now
  19.                
  20.                 push 0
  21.                 push 0
  22.                 add     ecx, 990h
  23.                 mov eax, 0x0069A7F0
  24.                 call eax
  25. return_now:
  26.                 retn
  27.         }
  28. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation
fantasy-obligation