Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signed int __cdecl GetPosition(int a1)
- {
- int v1; // edi@6
- signed int result; // eax@8
- char v3; // [sp+Ch] [bp-18h]@1
- float v4; // [sp+18h] [bp-Ch]@6
- float v5; // [sp+1Ch] [bp-8h]@6
- float v6; // [sp+20h] [bp-4h]@6
- if ( sub_AA0400(a1, 1, "CLuaPlayer", 0, &v3)
- && Lua_GetNumberInstance(a1, 2, 1, &v3)
- && Lua_GetNumberInstance(a1, 3, 1, &v3)
- && Lua_GetNumberInstance(a1, 4, 1, &v3)
- && Lua_GetObjectInstance(a1, 5, &v3) )
- {
- v1 = sub_A9EF60(a1, 1, 0);
- v6 = sub_A9EE90(a1, 2, 0.0);
- v5 = sub_A9EE90(a1, 3, 0.0);
- v4 = sub_A9EE90(a1, 4, 0.0);
- if ( !v1 )
- Lua_Throw_Error(a1, "invalid 'self' in function 'GetPosition'", 0);
- sub_6C7890(&v6, &v5, &v4);
- sub_A9FB20(a1, v6);
- sub_A9FB20(a1, v5);
- sub_A9FB20(a1, v4);
- result = 3;
- }
- else
- {
- Lua_Throw_Error(a1, "#ferror in function 'GetPosition'.", &v3);
- result = 0;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement