Advertisement
jvrnejm

Untitled

Oct 28th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1.  bool SetupBones(matrix3x4 *pBoneToWorldOut, int nMaxBones, int boneMask, float currentTime)
  2.     {
  3.         typedef bool(__thiscall* oSetupBones)(PVOID, matrix3x4*, int, int, float);
  4.         return call_vfunc< oSetupBones>(this, 13)(this, pBoneToWorldOut, nMaxBones, boneMask, currentTime);
  5.     }
  6. void* GetClientRenderable3()
  7.     {
  8.         return reinterpret_cast<void*>(this + 0x4);
  9.     }
  10.  
  11.     IClientRenderable* GetClientRenderable2()
  12.     {
  13.         return reinterpret_cast<IClientRenderable*>(this + 0x4);
  14.     }
  15.  
  16.  
  17.     int DrawModel2(int flags, uint8_t alpha)
  18.     {
  19.         typedef int(__thiscall* OrigFn)(void*, int, uint8_t);
  20.         return call_vfunc<OrigFn>(this->GetClientRenderable3(), 9)(this->GetClientRenderable2(), flags, alpha);
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement