Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.92 KB | None | 0 0
  1. signed int __cdecl GetPosition(int a1)
  2. {
  3.   int v1; // edi@6
  4.   signed int result; // eax@8
  5.   char v3; // [sp+Ch] [bp-18h]@1
  6.   float v4; // [sp+18h] [bp-Ch]@6
  7.   float v5; // [sp+1Ch] [bp-8h]@6
  8.   float v6; // [sp+20h] [bp-4h]@6
  9.  
  10.   if ( sub_AA0400(a1, 1, "CLuaPlayer", 0, &v3)
  11.    && Lua_GetNumberInstance(a1, 2, 1, &v3)
  12.    && Lua_GetNumberInstance(a1, 3, 1, &v3)
  13.    && Lua_GetNumberInstance(a1, 4, 1, &v3)
  14.    && Lua_GetObjectInstance(a1, 5, &v3) )
  15.  {
  16.    v1 = sub_A9EF60(a1, 1, 0);
  17.     v6 = sub_A9EE90(a1, 2, 0.0);
  18.     v5 = sub_A9EE90(a1, 3, 0.0);
  19.     v4 = sub_A9EE90(a1, 4, 0.0);
  20.     if ( !v1 )
  21.       Lua_Throw_Error(a1, "invalid 'self' in function 'GetPosition'", 0);
  22.     sub_6C7890(&v6, &v5, &v4);
  23.     sub_A9FB20(a1, v6);
  24.     sub_A9FB20(a1, v5);
  25.     sub_A9FB20(a1, v4);
  26.     result = 3;
  27.   }
  28.   else
  29.   {
  30.     Lua_Throw_Error(a1, "#ferror in function 'GetPosition'.", &v3);
  31.     result = 0;
  32.   }
  33.   return result;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement