void func_27()
{
	int iVar0;
	
	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
	{
		if (func_29(Global_101154.f_1826.f_539.f_3549) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
		{
			iVar0 = func_28(PLAYER::PLAYER_PED_ID());
			if (func_10(iVar0) && (!func_17(14) || Global_100106))
			{
				if (Global_101154.f_1826.f_539.f_3549 != iVar0 && func_10(Global_101154.f_1826.f_539.f_3549))
				{
					Global_101154.f_1826.f_539.f_3550 = Global_101154.f_1826.f_539.f_3549;
				}
				Global_101154.f_1826.f_539.f_3551 = iVar0;
				Global_101154.f_1826.f_539.f_3549 = iVar0;
				return;
			}
		}
		else
		{
			if (Global_101154.f_1826.f_539.f_3549 != 145)
			{
				Global_101154.f_1826.f_539.f_3551 = Global_101154.f_1826.f_539.f_3549;
			}
			return;
		}
	}
	Global_101154.f_1826.f_539.f_3549 = 145;
}
Exemple #2
0
/* 
 * reads : g_2 g_5 g_37 g_39
 * writes: g_2 g_5 g_38
 */
int64_t  func_1(void)
{ /* block id: 0 */
     const int32_t *l_22 = &g_5;
    int64_t l_23 = 0xF0796840EB449523LL;
    for (g_2[1] = -7; (g_2[1] < 4); g_2[1] = safe_sub_func_int32_t_s_s(g_2[1], 1))
    { /* block id: 3 */
        int16_t l_12 = 1L;
        int32_t l_28 = 0xF7A9D2E8L;
        for (g_5 = 8; (g_5 != 0); g_5 = safe_sub_func_uint32_t_u_u(g_5, 1))
        { /* block id: 6 */
            int32_t *l_21 = 0;
            int32_t l_36 = 1L;
            for (g_5 = -30; (g_5 <= 0); g_5 = safe_add_func_int16_t_s_s(g_5, 1))
            { /* block id: 9 */
                 volatile int32_t *l_11 = &g_2[1];
                 volatile int32_t **l_10 = &l_11;
                (*l_10) = &g_2[1];
                return l_12;
            }
            l_28 = (0xD63A88E0L ^ (safe_mod_func_int16_t_s_s((safe_mod_func_int16_t_s_s(((safe_sub_func_int32_t_s_s(g_2[6], (safe_rshift_func_int8_t_s_s(l_12, g_5)))) | ((l_21 == l_22) | l_23)), (safe_mod_func_int64_t_s_s(((safe_mul_func_uint8_t_u_u(g_5, l_12)) || l_12), 0x27F08E22L)))), g_5)));
            (*g_37) = func_29((0 == l_21), (*l_22), (l_36 <= l_28), &l_21, g_2[1]);
        }
        (*g_39) = (*g_39);
        return g_5;
    }
    return g_2[1];
}
Exemple #3
0
/* 
 * reads : g_13 g_9 g_36 g_43 g_35 g_5
 * writes: g_5 g_35 g_36 g_9 g_44
 */
static struct S0  func_16(int32_t * p_17, int32_t  p_18, int32_t * p_19, uint32_t  p_20, int32_t * p_21)
{ /* block id: 13 */
    uint16_t l_25 = 65526UL;
    int16_t *l_34[1];
    int32_t l_37 = 0x90B8A442L;
    int32_t *l_38 = &g_5;
    uint16_t l_61[2];
    int32_t l_75 = 2L;
    int32_t l_76 = 0x1A3E7089L;
    int32_t l_79 = 0xF4C00391L;
    uint32_t l_80 = 0xF6D4B686L;
    struct S0 l_83 = {18446744073709551607UL};
    int i;
    for (i = 0; i < 1; i++)
        l_34[i] = (void*)0;
    for (i = 0; i < 2; i++)
        l_61[i] = 65534UL;
    (*p_19) = ((uint8_t)g_13 + (uint8_t)l_25);
    if (func_26(func_29(((l_37 = (g_36 ^= (g_35 = g_9))) , l_37), l_25, &g_4, l_38), l_38))
    { /* block id: 40 */
        int32_t *l_58 = (void*)0;
        int32_t *l_59 = (void*)0;
        int32_t *l_60[4][1];
        int i, j;
        for (i = 0; i < 4; i++)
        {
            for (j = 0; j < 1; j++)
                l_60[i][j] = &l_37;
        }
        for (g_36 = 0; (g_36 <= (-26)); g_36 -= 4)
        { /* block id: 43 */
            struct S0 l_56[7][8] = {{{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL}},{{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL}},{{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL}},{{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL}},{{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL}},{{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL},{18446744073709551615UL},{2UL},{18446744073709551615UL}},{{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL},{0xA4A91A3DL},{2UL},{2UL}}};
            struct S0 *l_57 = &l_56[1][6];
            int i, j;
            (*l_57) = l_56[3][0];
        }
        ++l_61[1];
    }
    else
    { /* block id: 47 */
        int32_t *l_64 = &g_5;
        int32_t *l_65 = &l_37;
        int32_t *l_66 = &g_9;
        int32_t *l_67 = &g_5;
        int32_t *l_68 = &g_5;
        int32_t *l_69 = &l_37;
        int32_t *l_70 = &g_5;
        int32_t l_71[5];
        int32_t *l_72 = &g_5;
        int32_t *l_73[7];
        int8_t l_74 = 0L;
        int i;
        for (i = 0; i < 5; i++)
            l_71[i] = 0xEEA3ADEBL;
        for (i = 0; i < 7; i++)
            l_73[i] = (void*)0;
        ++l_80;
    }
    return l_83;
}
bool func_28(int iParam0, float fParam1)
{
	auto uVar0;
	Vector3 vVar1;
	
	if ((((_0x82FDE6A57EE4EE44(iParam0, joaat("weapon_grenade"), fParam1, &vVar1, &uVar0, 0) || _0x82FDE6A57EE4EE44(iParam0, joaat("weapon_smokegrenade"), fParam1, &vVar1, &uVar0, 0)) || _0x82FDE6A57EE4EE44(iParam0, joaat("weapon_bzgas"), fParam1, &vVar1, &uVar0, 0)) || _0x82FDE6A57EE4EE44(iParam0, joaat("weapon_stickybomb"), fParam1, &vVar1, &uVar0, 0)) || _0x82FDE6A57EE4EE44(iParam0, joaat("weapon_molotov"), fParam1, &vVar1, &uVar0, 0))
	{
		if (func_29(iParam0, vVar1, 90f, 0))
		{
			return true;
		}
	}
	return false;
}
int func_28(int iParam0)
{
	int iVar0;
	int iVar1;
	
	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
	{
		iVar1 = ENTITY::GET_ENTITY_MODEL(iParam0);
		iVar0 = 0;
		while (iVar0 <= 2)
		{
			if (func_29(iVar0) == iVar1)
			{
				return iVar0;
			}
			iVar0++;
		}
	}
	return 145;
}
bool func_28()
{
	if (func_29(0))
	{
		return false;
	}
	if (Global_91317.f_8)
	{
		if (Global_91317.f_10 > 0)
		{
			return false;
		}
	}
	else if (Global_91317.f_10 > 1)
	{
		return false;
	}
	Global_91317.f_10++;
	return true;
}
void main()
{
	Vector3 vVar0;
	Vector3 vVar3;
	
	iLocal_2 = 1;
	iLocal_3 = 134;
	iLocal_4 = 134;
	iLocal_5 = 1;
	iLocal_6 = 1;
	iLocal_7 = 1;
	iLocal_8 = 134;
	iLocal_9 = 1;
	iLocal_10 = 12;
	iLocal_11 = 12;
	fLocal_14 = 0.001f;
	iLocal_17 = -1;
	sLocal_20 = "NULL";
	fLocal_21 = 0f;
	fLocal_25 = -0.0375f;
	fLocal_26 = 0.17f;
	fLocal_30 = 80f;
	fLocal_31 = 140f;
	fLocal_32 = 180f;
	iLocal_35 = 3;
	func_29(29);
	if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(210))
	{
		func_28();
	}
	iLocal_37 = 0;
	func_27(&uLocal_38);
	func_26(&uLocal_38, 1701.78f, 3225.148f, 40.0202f);
	func_26(&uLocal_38, 1678.909f, 3287.602f, 39.9648f);
	func_26(&uLocal_38, 1710.438f, 3326.499f, 40.1797f);
	func_26(&uLocal_38, 1738.879f, 3335.25f, 40.1493f);
	func_26(&uLocal_38, 1768.387f, 3312.101f, 40.2875f);
	func_26(&uLocal_38, 1819.241f, 3225.449f, 42.9019f);
	func_25(&uLocal_38);
	while (true)
	{
		switch (iLocal_37)
		{
			case 0:
				if (func_18())
				{
					if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
					{
						vVar0 = {ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1)};
						vVar3 = {1749.71f, 3267.83f, 40.24f};
						if (func_17(vVar0, vVar3, 75f))
						{
							if (func_16(&uLocal_38, vVar0))
							{
								if (vVar0.z > 39f && vVar0.z < 43f)
								{
									iLocal_37 = 1;
								}
								else
								{
									wait(100);
								}
							}
							else
							{
								wait(100);
							}
						}
						else
						{
							wait(1500);
						}
					}
				}
				else
				{
					wait(1500);
				}
				break;
			
			case 1:
				func_2();
				break;
			
			case 2:
				func_1(29);
				func_28();
				break;
		}
		wait(0);
	}
}