int func_35(int iParam0, int iParam1, float fParam2, int iParam3, int iParam4, int iParam5)
{
	auto uVar0;
	Vector3 vVar1;
	int iVar4;
	
	iVar4 = func_41(iParam0, iParam1);
	if (!func_8(iParam0) || !func_8(iParam1))
	{
		if (iVar4 != -1)
		{
			func_40(&(Local_37[iVar4 /*4*/]));
		}
		return false;
	}
	if (!func_39(iParam0, iParam1, fParam2, iParam3))
	{
		return false;
	}
	if (iVar4 == -1)
	{
		iVar4 = func_38();
		if (iVar4 == -1)
		{
			return false;
		}
		Local_37[iVar4 /*4*/].f_1 = iParam0;
		Local_37[iVar4 /*4*/].f_2 = iParam1;
	}
	vVar1 = {get_ped_bone_coords(iParam0, 31086, 0f, 0f, 0f)};
	uVar0 = func_36(&(Local_37[iVar4 /*4*/]), vVar1, iParam1, &(Local_37[iVar4 /*4*/].f_3), iParam0, iParam5);
	return (uVar0 || GAMEPLAY::GET_GAME_TIMER() - Local_37[iVar4 /*4*/].f_3 < iParam4);
}
Esempio n. 2
0
/* 
 * reads : g_10 g_22 g_35 g_40 g_38 g_36
 * writes: g_22 g_10 g_31 g_36
 */
static uint32_t  func_1(void)
{ /* block id: 0 */
    uint32_t l_11 = 0UL;
    int32_t l_29 = 1L;
    if (func_2((((int16_t)((uint8_t)g_10 << (uint8_t)l_11) << (int16_t)2) , 9UL), g_10, l_11))
    { /* block id: 20 */
        int32_t l_27 = 0x976D9935L;
        uint16_t l_28 = 0x708BL;
        (*g_35) = func_25((l_29 = ((func_2(l_11, l_27, l_28) < g_10) < 8UL)));
    }
    else
    { /* block id: 34 */
        uint8_t l_37 = 0x5CL;
        l_37 = 3L;
        for (l_11 = 0; (l_11 <= 7); l_11 += 1)
        { /* block id: 38 */
            int32_t **l_39 = (void*)0;
            int32_t **l_46 = &g_36;
            int i;
            (*g_40) = &l_29;
            (*l_46) = func_41(g_38[l_11], l_37);
        }
    }
    return g_22;
}
Esempio n. 3
0
int func_39(int iParam0)
{
	int iVar0;
	int iVar1;
	
	iVar1 = 0;
	iVar0 = 0;
	while (iVar0 < Global_101154.f_6378.f_136)
	{
		if (Global_101154.f_6378[iVar0 /*15*/] == iParam0)
		{
			if (Global_36258 != iVar0)
			{
				func_46(iVar0);
				func_43(iParam0);
				iVar1 = 1;
			}
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_101154.f_6378.f_198)
	{
		if (Global_101154.f_6378.f_137[iVar0 /*15*/] == iParam0)
		{
			func_43(iParam0);
			iVar1 = 1;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_101154.f_6378.f_650)
	{
		if (Global_101154.f_6378.f_199[iVar0 /*15*/] == iParam0)
		{
			func_42(iParam0);
			iVar1 = 1;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_101154.f_6378.f_764)
	{
		if (Global_101154.f_6378.f_651[iVar0 /*14*/] == iParam0)
		{
			func_41(iVar0);
			iVar1 = 1;
		}
		iVar0++;
	}
	iVar0 = 0;
	while (iVar0 < Global_101154.f_6378.f_866)
	{
		if (Global_101154.f_6378.f_765[iVar0 /*10*/] == iParam0)
		{
			func_40(iVar0);
			iVar1 = 1;
		}
		iVar0++;
	}
	return iVar1;
}