гейский анал
-
Автор темы
- #1
Практически деф гладиаторз
Восстановил ресольвер
и прочей хуйни по чуть-чуть
Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.
Код:
int __usercall Resolver@<eax>(int result@<eax>, int a2@<ecx>, double a3@<st0>)
{
int v3; // eax
int v4; // ST18_4
void *v5; // eax
float *v6; // eax
float v7; // ST40_4
_DWORD *v8; // esi
float v9; // ST38_4
float v10; // ST34_4
float v11; // ST30_4
float v12; // ST2C_4
_DWORD *v13; // esi
float *v14; // esi
float *v15; // esi
float *samegetSimTime; // esi
int v17; // eax
float standing_time; // ST28_4
float *samelby; // esi
int Sameplayerindex; // eax
float v21; // ST24_4
int Playerindex; // esi
float lbydelta; // ST20_4
int v24; // ST08_4
int v25; // ST04_4
void *v26; // eax
float v27; // ST1C_4
int *v28; // esi
int v29; // [esp+34h] [ebp-408h]
unsigned int v30; // [esp+40h] [ebp-3FCh]
_BYTE *v31; // [esp+4Ch] [ebp-3F0h]
int v32; // [esp+50h] [ebp-3ECh]
int i; // [esp+54h] [ebp-3E8h]
int player; // [esp+58h] [ebp-3E4h]
float v35[230]; // [esp+5Ch] [ebp-3E0h]
char v36; // [esp+3F4h] [ebp-48h]
int v37; // [esp+438h] [ebp-4h]
// (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)
// *(unsigned __int8 (__thiscall **)(_DWORD *))(*((_DWORD *)player + 2) + 36))((_DWORD *)player + 2
// PLAYER->GetIndex()
v32 = a2;
for ( i = 1; i <= *(_DWORD *)(dword_10320B0C + 24); ++i )
{
v31 = (_BYTE *)(v32 + 920 * i + 7020);
if ( *v31 )
{
player = sub_10008F20(i);
if ( player )
{
if ( isAlive((void *)player)
&& !(*(unsigned __int8 (__thiscall **)(int))(*(_DWORD *)(player + 8) + 36))(player + 8)
&& player != dword_1029FFD8 )
{
sub_10012D30((char *)v35);
if ( MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] > 5 )
MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 1;
if ( MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] < 0 )
MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 0;
v4 = v32 + 108 * (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8);
v29 = MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)];
if ( dword_10298204 > *(_DWORD *)(*(_DWORD *)(__readfsdword(0x2Cu) + 4 * TlsIndex) + 4) )
{
_Init_thread_header(&dword_10298204);// Dword - huy znaet
if ( dword_10298204 == -1 )
{
v37 = 0;
v5 = (void *)(*(int (__thiscall **)(int, const char *))(*(_DWORD *)dword_10320B14 + 68))(
dword_10320B14,
"weapon_accuracy_nospread");
is_nospread = sub_100214F0(v5);
v37 = -1;
_Init_thread_footer(&dword_10298204);
}
}
v6 = (float *)GetVelocity((char *)player);
Lenth2D(v6);
v7 = a3;
if ( v7 <= 45.0 )
{
if ( !byte_1029A158[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] )
{
samegetSimTime = (float *)GetSimTime((char *)player);
v17 = (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8);
a3 = fabs(*samegetSimTime - Last_movment_time[v17]);
standing_time = a3;
if ( standing_time > 0.30000001 ) // 0.3 seconds
{
if ( !is_breaking[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)]
&& (IsAdjustingBalance(player, (int)v31, &v36) || isFakewalking((char *)player, (int)v31)) )
{
is_breaking[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 1;
}
samelby = (float *)LowerBodyYaw(player);
Sameplayerindex = (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8);
a3 = fabs((float)(*samelby != last_move_lby[Sameplayerindex]));
v21 = a3;
if ( v21 <= 35.0 )
{
dword_1029A1E0[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 0.0;// Dont using anywhere
}
else
{
Playerindex = (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8);
lbydelta = last_move_lby[Playerindex] - *(float *)LowerBodyYaw(player);
dword_1029A1E0[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = lbydelta;
}
byte_1029A158[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 1;
}
}
v24 = dword_10299E34;
v25 = dword_1029FFD8;
v26 = sub_10024080();
a3 = sub_10012520((int)v26, a3, player, v25, v24, 0);
v27 = a3;
*(float *)(GetEyeAngeles(player) + 4) = v27;
}
else if ( *(_DWORD *)GetFlags((char *)player) == 0 )// AirResolver
{
switch ( v29 )
{
case 0:
v8 = (_DWORD *)LowerBodyYaw(player);
*(_DWORD *)(GetEyeAngeles(player) + 4) = *v8;
break;
case 1:
v9 = *(float *)LowerBodyYaw(player) + 180.0;
*(float *)(GetEyeAngeles(player) + 4) = v9;
break;
case 2:
v10 = *(float *)LowerBodyYaw(player) - 90.0;
*(float *)(GetEyeAngeles(player) + 4) = v10;
break;
case 3:
v11 = *(float *)LowerBodyYaw(player) + 90.0;
*(float *)(GetEyeAngeles(player) + 4) = v11;
break;
case 4:
v12 = *(float *)LowerBodyYaw(player) - 60.0;
*(float *)(GetEyeAngeles(player) + 4) = v12;
break;
default:
break;
}
}
else // Move
{
v13 = (_DWORD *)LowerBodyYaw(player);
*(_DWORD *)(GetEyeAngeles(player) + 4) = *v13;
v14 = (float *)LowerBodyYaw(player);
last_move_lby[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = *v14;
v15 = (float *)GetSimTime((char *)player);
Last_movment_time[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = *v15;
v30 = (*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8);
if ( v30 >= 64 )
__report_rangecheckfailure(); // break or continue
byte_1029A158[v30] = 0;
MissedShots[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = 1;
}
v28 = (int *)LowerBodyYaw(player);
dword_1029A2E0[(*(int (__thiscall **)(int))(*(_DWORD *)(player + 8) + 40))(player + 8)] = *v28;
sub_10025C50((int)v35, a3, (char *)player);// Useless normalize maybe
}
}
}
v3 = i + 1;
}
return v3;
}