Advertisement
Guest User

Untitled

a guest
May 27th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. int EquipmentHook(unsigned short playerIndex, unsigned short equipmentIndex)
  2.     {
  3.  
  4.         Utils::DebugLog::Instance().Log("Debug", "Equip hook, playeridx: " + std::to_string(playerIndex) + ", equipIDX: " + std::to_string(equipmentIndex));
  5.  
  6.         typedef int(__thiscall* RunEventPtr)(unsigned short playerIndex, unsigned short equipmentIndex);
  7.         auto RunEvent = reinterpret_cast<RunEventPtr>(0x5666B0);
  8.         return RunEvent(playerIndex, equipmentIndex); // sub_82437A08
  9.  
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement