bool func_7()
{
	if (func_6() == 3 || func_6() == 2)
	{
		return true;
	}
	return false;
}
bool func_5()
{
	if (func_6() == 1 || func_6() == 4)
	{
		return true;
	}
	return false;
}
void func_3()
{
	int iVar0;
	
	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
	{
		if (func_7(Global_101154.f_1826.f_539.f_3549) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
		{
			iVar0 = func_6(PLAYER::PLAYER_PED_ID());
			if (func_5(iVar0) && (!func_4(14) || Global_100106))
			{
				if (Global_101154.f_1826.f_539.f_3549 != iVar0 && func_5(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;
}
Example #4
0
/* 
 * reads : g_3 g_13 g_16 g_35 g_12 g_17 g_11
 * writes: g_3 g_13 g_17 g_35 g_45 g_12 g_11
 */
static int16_t  func_1(void)
{ /* block id: 0 */
    uint32_t *l_44 = &g_45;
    int32_t l_50 = 0x82ADE89BL;
    int32_t *l_51 = &g_11;
    for (g_3[2] = (-6); (g_3[2] < (-29)); g_3[2] -= 3)
    { /* block id: 3 */
        int32_t *l_8 = &g_3[3];
        int32_t *l_18 = &g_12;
        int32_t *l_19 = &g_11;
        int32_t *l_20 = &g_12;
        int32_t *l_21 = &g_12;
        int32_t *l_22 = &g_11;
        int32_t *l_23 = &g_12;
        int32_t *l_24 = &g_11;
        int32_t *l_25 = &g_11;
        int32_t *l_26 = &g_11;
        int32_t *l_27 = &g_12;
        int32_t l_28 = 0xE35A12A2L;
        int32_t *l_29 = &g_12;
        int32_t *l_30 = &l_28;
        int32_t *l_31 = &g_11;
        int32_t *l_32 = &g_11;
        int32_t *l_33 = &g_11;
        int32_t *l_34[5][4] = {{&g_12,&l_28,&l_28,&g_12},{&g_12,&l_28,&l_28,&g_12},{&g_12,&l_28,&l_28,&g_12},{&g_12,&l_28,&l_28,&g_12},{&g_12,&l_28,&l_28,&g_12}};
        int i, j;
        (*g_16) = func_6(l_8);
        --g_35;
    }
    (*l_51) &= ((int16_t)func_40(((*l_44) = 4294967295UL), &g_17, l_44) << (int16_t)l_50);
    return (*l_51);
}
void func_2()
{
	func_6(-815326385);
	func_3("SHI_T_SANDY_2", 0, 0, -1, 10000, 7, 0, 0, 0);
	wait(0);
	func_3("SHI_T_SANDY_3", 0, 0, -1, 10000, 7, 0, 0, 0);
	iLocal_37 = 2;
}
bool func_5(int iParam0, int iParam1, int iParam2)
{
	int iVar0;
	
	if (func_51(*iParam0))
	{
		if (is_entity_playing_anim(*iParam0, func_10(), func_9(), 3))
		{
			if (!PED::IS_PED_RAGDOLL(*iParam0) || is_ped_getting_up(*iParam0))
			{
				request_anim_dict(func_11());
				if (has_anim_dict_loaded(func_11()))
				{
					*iParam2 = create_synchronized_scene(2727.4f, 4145.56f, 43.68f, 0f, 0f, -92.17f, 2);
					set_synchronized_scene_looped(*iParam2, false);
					_0x394B9CD12435C981(*iParam2, false);
					if (func_4(*iParam0, 1785177548))
					{
						stop_synchronized_entity_anim(*iParam0, -1000f, 1);
					}
					task_synchronized_scene(*iParam0, *iParam2, func_11(), func_3(), 1000f, -4f, 4626, 0, 1000f, 0);
					_0x2208438012482A1A(*iParam0, 0, 0);
					if (func_8(*iParam1))
					{
						if (is_entity_playing_anim(*iParam1, func_10(), func_7(), 3))
						{
							stop_synchronized_entity_anim(*iParam1, -16f, 0);
						}
						iVar0 = 0;
						iVar0 += 16;
						iVar0 += 64;
						iVar0 += 512;
						iVar0 += 4096;
						play_synchronized_entity_anim(*iParam1, *iParam2, func_6(), func_11(), 16f, -4f, iVar0, 1000f);
					}
					return true;
				}
			}
			else
			{
				return true;
			}
		}
		else
		{
			return true;
		}
	}
	return false;
}
Example #7
0
/* 
 * reads : g_5 g_17 g_3 g_25 g_26 g_28 g_4 g_46 g_24 g_66
 * writes: g_5 g_21 g_26 g_28 g_17 g_30.f0 g_24 g_90
 */
static int32_t  func_1(void)
{ /* block id: 0 */
    uint32_t l_2[3][6] = {{0xC3EEE2FDL,18446744073709551615UL,0xC3EEE2FDL,18446744073709551615UL,0xC3EEE2FDL,18446744073709551615UL},{0x121AC488L,18446744073709551615UL,0x121AC488L,18446744073709551615UL,0x121AC488L,18446744073709551615UL},{0xC3EEE2FDL,18446744073709551615UL,0xC3EEE2FDL,18446744073709551615UL,0xC3EEE2FDL,18446744073709551615UL}};
    int8_t *l_34 = &g_24;
    int32_t l_69 = 0x3FBECF30L;
    int32_t l_70 = 0xC15133AAL;
    int32_t l_71 = (-6L);
    int8_t l_72 = 0x34L;
    int8_t l_73 = (-1L);
    int32_t l_74 = (-5L);
    int8_t l_75 = 0x5DL;
    int32_t l_76 = 0x83BB0DECL;
    int32_t l_77 = 5L;
    int32_t l_78 = 0xC77F51BCL;
    int32_t l_80 = 4L;
    int32_t l_81 = 7L;
    int32_t l_82[8][7] = {{0xF9336AE2L,0xF9336AE2L,(-10L),(-1L),4L,(-10L),4L},{(-1L),0x0DA39397L,0x0DA39397L,(-1L),(-8L),0x816A8AB2L,(-1L)},{0x816A8AB2L,4L,(-8L),(-8L),4L,0x816A8AB2L,0x0DA39397L},{4L,(-1L),(-10L),0xF9336AE2L,0xF9336AE2L,(-10L),0x0DA39397L},{(-8L),(-10L),(-1L),(-8L),0L,0L,(-8L)},{(-1L),0x0DA39397L,(-1L),0L,0x0DA39397L,(-10L),(-10L)},{0x0DA39397L,(-8L),0xF9336AE2L,(-8L),0x0DA39397L,0xF9336AE2L,0x816A8AB2L},{0x816A8AB2L,(-10L),0L,0x816A8AB2L,0L,(-10L),0x816A8AB2L}};
    uint16_t l_84[8][8] = {{65530UL,0x57FFL,9UL,1UL,0x3FE0L,0x5EC1L,65535UL,3UL},{0x57FFL,65533UL,0xC5FAL,0UL,0UL,0xA8E8L,9UL,6UL},{1UL,6UL,0x7AA3L,0xC5FAL,0x7AA3L,6UL,1UL,65530UL},{0xC5FAL,1UL,0xA8E8L,0xF06FL,0x57FFL,0x058BL,0UL,9UL},{0xB2AAL,0xA8E8L,65533UL,65535UL,0x57FFL,0x82FDL,0x058BL,0xC5FAL},{0xC5FAL,0UL,65533UL,9UL,0x7AA3L,0x75E6L,0x75E6L,0x7AA3L},{1UL,65535UL,65535UL,1UL,0UL,0UL,3UL,0xA8E8L},{0x57FFL,0x7AA3L,1UL,0UL,0x3FE0L,65530UL,1UL,65533UL}};
    int i, j;
    for (g_5 = 0; (g_5 <= 2); g_5 += 1)
    { /* block id: 3 */
        int16_t l_15 = (-1L);
        int8_t *l_16 = (void*)0;
        int32_t *l_67[4] = {&g_46.f0,&g_46.f0,&g_46.f0,&g_46.f0};
        int32_t l_68 = 8L;
        int32_t l_79 = 0L;
        int16_t l_83 = (-9L);
        int i;
        (*g_66) = func_6(func_8(((g_17 = func_10(l_15, l_16, g_17, l_15)) != l_34)));
        l_84[4][1]--;
        for (l_71 = 2; (l_71 >= 0); l_71 -= 1)
        { /* block id: 45 */
            union U3 *l_87 = &g_46;
            union U2 *l_88 = &g_89;
            l_87 = l_87;
            g_90 = l_88;
        }
    }
    return (*g_25);
}
Example #8
0
/* 
 * reads : g_3 g_5
 * writes: g_3 g_5
 */
static int32_t  func_1(void)
{ /* block id: 0 */
    int32_t *l_2 = &g_3[1][0];
    (*l_2) &= 0x3AE35568L;
    if (((*l_2) = ((-(uint16_t)0x8D52L) >= g_3[1][2])))
    { /* block id: 3 */
        int32_t l_11 = (-8L);
        for (g_5 = 0; (g_5 <= 2); g_5 += 1)
        { /* block id: 6 */
            int32_t *l_12 = &g_3[1][0];
            if (g_3[1][2])
                break;
            (*l_12) = func_6(l_11, &g_3[0][2], l_12, g_5);
        }
        (*l_2) = 7L;
    }
    else
    { /* block id: 15 */
        return g_3[2][0];
    }
    return (*l_2);
}
bool func_3(char* sParam0, int iParam1, int iParam2)
{
    Global_15713 = 0;
    if (Global_15712 == 0 || Global_15714 == 2)
    {
        if (Global_15712 != 0)
        {
            if (iParam1 > Global_15714)
            {
                if (Global_15719 == 0)
                {
                    stop_scripted_conversation(false);
                    Global_14413.f_1 = 3;
                    Global_15712 = 0;
                    Global_15713 = 1;
                    Global_15765 = 0;
                    Global_15708 = 0;
                    Global_15709 = 0;
                    Global_15723 = 0;
                    Global_15722 = 0;
                    Global_14412 = 0;
                }
                else
                {
                    func_17();
                    return false;
                }
            }
            else
            {
                return false;
            }
        }
        if (is_scripted_conversation_ongoing())
        {
            return false;
        }
        if (func_16(8, -1))
        {
            return false;
        }
        Global_15788 = {Global_15782};
        func_15();
        Global_15001 = {Global_15166};
        Global_15718 = Global_15719;
        Global_15725 = Global_15726;
        Global_2621442 = Global_2621441;
        Global_15727 = {Global_15743};
        Global_15720 = Global_15721;
        Global_16702 = Global_16703;
        Global_16710 = {Global_16716};
        Global_16704 = Global_16705;
        Global_16706 = Global_16707;
        Global_16708 = Global_16709;
        Global_15331.f_370 = Global_16701;
        Global_15331.f_368 = Global_16699;
        Global_15331.f_369 = Global_16700;
        Global_15708 = Global_15709;
        if (Global_15718)
        {
            GAMEPLAY::CLEAR_BIT(&Global_2283, 20);
            GAMEPLAY::CLEAR_BIT(&Global_2284, 17);
            GAMEPLAY::CLEAR_BIT(&Global_2285, false);
            if (iParam2)
            {
                func_8();
                if (Global_3088[Global_14413 /*2811*/][0 /*281*/].f_259 == 2)
                {
                    if (iParam1 == 13)
                    {
                    }
                    else
                    {
                        return false;
                    }
                }
                if (Global_14413.f_1 > 3)
                {
                    return false;
                }
            }
            if (Global_14379 == 1)
            {
                return false;
            }
            if (is_player_playing(player_id()))
            {
                if (is_ped_in_melee_combat(PLAYER::PLAYER_PED_ID()))
                {
                    return false;
                }
                if (func_7())
                {
                    return false;
                }
                if (is_ped_sprinting(PLAYER::PLAYER_PED_ID()))
                {
                    return false;
                }
                if (PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID()))
                {
                    return false;
                }
                if (is_ped_in_parachute_free_fall(PLAYER::PLAYER_PED_ID()))
                {
                    return false;
                }
                if (get_is_ped_gadget_equipped(PLAYER::PLAYER_PED_ID(), joaat("gadget_parachute")))
                {
                    return false;
                }
                if (!Global_69489)
                {
                    if (is_entity_in_water(PLAYER::PLAYER_PED_ID()))
                    {
                        return false;
                    }
                    if (is_player_climbing(player_id()))
                    {
                        return false;
                    }
                    if (is_ped_planting_bomb(PLAYER::PLAYER_PED_ID()))
                    {
                        return false;
                    }
                    if (is_special_ability_active(player_id()))
                    {
                        return false;
                    }
                }
            }
            if (func_6())
            {
                return false;
            }
            else
            {
                switch (Global_14413.f_1)
                {
                case 7:
                    return false;
                    break;

                case 8:
                    return false;
                    break;

                case 9:
                    break;

                case 10:
                    break;

                default:
                    break;
                }
                if (GAMEPLAY::IS_BIT_SET(Global_2283, 9))
                {
                    return false;
                }
            }
            func_5();
            Global_15722 = iParam2;
        }
        Global_15714 = iParam1;
        StringCopy(&Global_15331, sParam0, 24);
        Global_14578 = 0;
        func_4();
        return true;
    }
    if (Global_15712 == 5)
    {
        return false;
    }
    if (iParam1 < Global_15714 || iParam1 == Global_15714)
    {
        return false;
    }
    if (iParam1 == 2)
    {
    }
    else
    {
        func_17();
    }
    return false;
}
Example #10
0
void main()
{
	int iVar0;
	
	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;
	iLocal_28 = 1;
	if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(18))
	{
		func_38();
	}
	func_37(20);
	func_36();
	func_35(1);
	func_35(0);
	func_35(2);
	func_35(13);
	func_35(12);
	Global_2288 = 1;
	func_34();
	if (!func_33(-1615086084))
	{
		func_32(-1615086084, 2, 2, 2, 1, -1, 5);
	}
	if (!func_33(-1970925435))
	{
		func_32(-1970925435, 2, 0, 0, 1, -1, 5);
	}
	if (!func_33(-1817481777))
	{
		func_32(-1817481777, 2, 12, 3, 1, -1, 5);
	}
	iVar0 = false;
	while (func_31(23) && !func_30(134))
	{
		if (func_26() == 1)
		{
			if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
			{
				if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
				{
					if ((!is_ped_falling(PLAYER::PLAYER_PED_ID()) && !is_entity_in_water(PLAYER::PLAYER_PED_ID())) && !is_entity_on_fire(PLAYER::PLAYER_PED_ID()))
					{
						if (!iVar0)
						{
							if (!((func_25() || is_player_switch_in_progress()) || func_24()))
							{
								if (func_13())
								{
									iVar0 = true;
								}
							}
						}
						else
						{
							if (iLocal_28)
							{
								set_player_control(player_id(), false, 384);
								set_ped_max_move_blend_ratio(PLAYER::PLAYER_PED_ID(), 0f);
								enable_control_action(0, 173, 1);
								enable_control_action(0, 172, 1);
								enable_control_action(0, 174, 1);
								enable_control_action(0, 175, 1);
								enable_control_action(0, 176, 1);
								enable_control_action(0, 177, 1);
								enable_control_action(0, 178, 1);
								enable_control_action(0, 179, 1);
								enable_control_action(0, 180, 1);
								enable_control_action(0, 181, 1);
							}
							else
							{
								set_player_control(player_id(), true, 0);
							}
							switch (func_12())
							{
								case -1615086084:
									if (!func_33(-1989308064))
									{
										func_8(-1989308064, 0, 1, 0, 1, 6000, 6000, -1, 0, -1, 68);
									}
									break;
								
								case -1989308064:
									func_7(12, 0);
									func_6(134, 1);
									STATS::STAT_SET_INT(joaat("sp_final_decision"), 2, 1);
									break;
								
								case -1970925435:
									if (!func_33(-1060930305))
									{
										func_8(-1060930305, 0, 1, 2, 2, 6000, 6000, -1, 0, -1, 68);
									}
									break;
								
								case -1060930305:
									func_7(12, 1);
									func_6(134, 1);
									STATS::STAT_SET_INT(joaat("sp_final_decision"), true, 1);
									break;
								
								case -1817481777:
									func_7(12, 2);
									func_6(134, 1);
									STATS::STAT_SET_INT(joaat("sp_final_decision"), 3, 1);
									break;
								
								default:
									if (!func_5(0))
									{
										iVar0 = false;
									}
									else if (iLocal_28)
									{
										if (func_4())
										{
											iLocal_28 = 0;
										}
									}
									break;
								}
							}
						}
					}
				}
		}
		wait(0);
	}
	func_3(20);
	Global_91317 = 0;
	func_1();
	func_38();
}
Example #11
0
void func_5(char* sParam0)
{
	func_6(sParam0);
}
void func_4()
{
	int iVar0;
	
	switch (iLocal_88)
	{
		case 0:
			vLocal_61[0 /*3*/] = {-1542.113f, -3023.802f, 23.2538f};
			vLocal_61[1 /*3*/] = {-3089.888f, -1960.075f, 313.559f};
			vLocal_61[2 /*3*/] = {-1037.638f, -3316.12f, 23.2475f};
			vLocal_61[3 /*3*/] = {451.174f, -4009.46f, 135.1171f};
			vLocal_74 = {-1612.174f, -2688.442f, 12.9444f};
			if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
			{
				if ((is_ped_in_any_heli(PLAYER::PLAYER_PED_ID()) || is_ped_in_any_plane(PLAYER::PLAYER_PED_ID())) || is_player_wanted_level_greater(player_id(), 0))
				{
					iLocal_78 = false;
				}
				else
				{
					iLocal_78 = true;
				}
			}
			iLocal_88 = 1;
			break;
		
		case 1:
			STREAMING::REQUEST_MODEL(joaat("jet"));
			STREAMING::REQUEST_MODEL(iLocal_84);
			request_vehicle_recording(101, "AirportJetTakeOff");
			request_vehicle_recording(103, "AirplaneLandingRedux");
			request_vehicle_recording(101, "EastWestFlight");
			request_vehicle_recording(101, "AirportNew");
			request_vehicle_recording(104, "AirplaneLandingRedux");
			iLocal_88 = 2;
			break;
		
		case 2:
			if (!iLocal_82)
			{
				if ((((((STREAMING::HAS_MODEL_LOADED(joaat("jet")) && STREAMING::HAS_MODEL_LOADED(iLocal_84)) && has_vehicle_recording_been_loaded(101, "AirportJetTakeOff")) && has_vehicle_recording_been_loaded(103, "AirplaneLandingRedux")) && has_vehicle_recording_been_loaded(101, "AirportNew")) && has_vehicle_recording_been_loaded(104, "AirplaneLandingRedux")) && has_vehicle_recording_been_loaded(101, "EastWestFlight"))
				{
					iLocal_82 = true;
				}
				else
				{
					STREAMING::REQUEST_MODEL(joaat("jet"));
					STREAMING::REQUEST_MODEL(iLocal_84);
					request_vehicle_recording(101, "AirportJetTakeOff");
					request_vehicle_recording(102, "AirportJetTakeOff");
					request_vehicle_recording(101, "AirportNew");
					request_vehicle_recording(102, "AirportNew");
					request_vehicle_recording(101, "EastWestFlight");
				}
			}
			if (iLocal_82)
			{
				if (!CAM::IS_SPHERE_VISIBLE(vLocal_61[0 /*3*/], 50f) && !CAM::IS_SPHERE_VISIBLE(vLocal_74, 50f))
				{
					iLocal_88 = 3;
				}
				else
				{
					if (CAM::IS_SPHERE_VISIBLE(vLocal_61[0 /*3*/], 50f))
					{
					}
					if (CAM::IS_SPHERE_VISIBLE(vLocal_74, 50f))
					{
					}
				}
			}
			break;
		
		case 3:
			iLocal_49[0] = create_vehicle(joaat("jet"), vLocal_61[0 /*3*/], 0, 1, true);
			set_entity_heading(iLocal_49[0], 240.3179f);
			_0x279D50DE5652D935(iLocal_49[0], 0);
			iLocal_49[1] = create_vehicle(joaat("jet"), vLocal_61[1 /*3*/], 0, 1, true);
			_0x279D50DE5652D935(iLocal_49[1], 0);
			iLocal_49[2] = create_vehicle(joaat("jet"), vLocal_61[2 /*3*/], 0, 1, true);
			_0x279D50DE5652D935(iLocal_49[2], 0);
			iLocal_49[3] = create_vehicle(joaat("jet"), vLocal_61[3 /*3*/], 0, 1, true);
			_0x279D50DE5652D935(iLocal_49[3], 0);
			iVar0 = 0;
			while (iVar0 < 4)
			{
				if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[iVar0]))
				{
					iLocal_55[iVar0] = PED::CREATE_PED_inside_vehicle(iLocal_49[iVar0], 4, iLocal_84, -1, 1, true);
					set_entity_lod_dist(iLocal_49[iVar0], 1000);
					set_vehicle_engine_on(iLocal_49[iVar0], true, 1, 0);
					set_blocking_of_non_temporary_events(iLocal_55[iVar0], true);
				}
				iVar0++;
			}
			func_8(&(iLocal_49[1]), &(iLocal_55[1]));
			func_8(&(iLocal_49[2]), &(iLocal_55[2]));
			func_8(&(iLocal_49[3]), &(iLocal_55[3]));
			if (iLocal_78)
			{
				if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[0]))
				{
					if (has_vehicle_recording_been_loaded(101, "AirportJetTakeOff"))
					{
						start_playback_recorded_vehicle_with_flags(iLocal_49[0], 101, "AirportJetTakeOff", 2, 5, 786603);
						iLocal_77 = 1;
					}
					else
					{
						request_vehicle_recording(101, "AirportJetTakeOff");
					}
				}
			}
			iLocal_88 = 4;
			break;
		
		case 4:
			if (iLocal_81)
			{
				if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[3]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[3], 0))
				{
					if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_49[3]))
					{
						if (!iLocal_79)
						{
							func_8(&(iLocal_49[3]), &(iLocal_55[3]));
							iLocal_79 = 1;
						}
					}
				}
			}
			func_3(0);
			func_7();
			switch (iLocal_87)
			{
				case 0:
					if (!iLocal_77)
					{
						if (iLocal_78)
						{
							if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[0]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[0], 0))
							{
								if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_49[0]) && !CAM::IS_SPHERE_VISIBLE(vLocal_61[0 /*3*/], 50f))
								{
									if (has_vehicle_recording_been_loaded(101, "AirportJetTakeOff"))
									{
										start_playback_recorded_vehicle_with_flags(iLocal_49[0], 101, "AirportJetTakeOff", 2, 5, 786603);
										iLocal_77 = 1;
									}
									else
									{
										request_vehicle_recording(101, "AirportJetTakeOff");
									}
								}
							}
						}
					}
					if (iLocal_77)
					{
						if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[0]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[0], 0))
						{
							if (is_playback_going_on_for_vehicle(iLocal_49[0]))
							{
								fLocal_85 = get_position_in_recording(iLocal_49[0]);
							}
						}
						if (fLocal_85 > 1100f)
						{
							iLocal_87 = 1;
						}
					}
					break;
				
				case 1:
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[1]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[1], 0))
					{
						if (iLocal_78)
						{
							if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_49[1]))
							{
								if (iLocal_81)
								{
									if (iLocal_79)
									{
										func_6(&(iLocal_49[1]), &(iLocal_55[1]));
										if (has_vehicle_recording_been_loaded(103, "AirplaneLandingRedux"))
										{
											start_playback_recorded_vehicle_with_flags(iLocal_49[1], 103, "AirplaneLandingRedux", 2, 5, 786603);
											iLocal_80 = 0;
											iLocal_87 = 2;
										}
										else
										{
											request_vehicle_recording(103, "AirplaneLandingRedux");
										}
									}
								}
								else
								{
									func_6(&(iLocal_49[1]), &(iLocal_55[1]));
									if (has_vehicle_recording_been_loaded(103, "AirplaneLandingRedux"))
									{
										start_playback_recorded_vehicle_with_flags(iLocal_49[1], 103, "AirplaneLandingRedux", 2, 5, 786603);
										iLocal_80 = 0;
										iLocal_87 = 2;
									}
									else
									{
										request_vehicle_recording(103, "AirplaneLandingRedux");
									}
								}
							}
						}
					}
					break;
				
				case 2:
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[1]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[1], 0))
					{
						if (!is_playback_going_on_for_vehicle(iLocal_49[1]))
						{
							iLocal_87 = 3;
						}
					}
					break;
				
				case 3:
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[2]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[2], 0))
					{
						if (has_vehicle_recording_been_loaded(101, "AirportNew"))
						{
							if (!CAM::IS_SPHERE_VISIBLE(vLocal_61[2 /*3*/], 50f))
							{
								if (!is_playback_going_on_for_vehicle(iLocal_49[2]))
								{
									func_6(&(iLocal_49[2]), &(iLocal_55[2]));
									start_playback_recorded_vehicle(iLocal_49[2], 101, "AirportNew", 1);
									iLocal_87 = 4;
								}
							}
						}
					}
					break;
				
				case 4:
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[2]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[2], 0))
					{
						if (is_playback_going_on_for_vehicle(iLocal_49[2]))
						{
							fLocal_86 = get_position_in_recording(iLocal_49[2]);
						}
					}
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[1]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[1], 0))
					{
						if (!is_playback_going_on_for_vehicle(iLocal_49[1]))
						{
							if (ENTITY::IS_ENTITY_OCCLUDED(iLocal_49[1]))
							{
								func_8(&(iLocal_49[1]), &(iLocal_55[1]));
								iLocal_80 = 1;
							}
						}
					}
					if (fLocal_86 > 1100f)
					{
						if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[3]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[3], 0))
						{
							if (has_vehicle_recording_been_loaded(104, "AirplaneLandingRedux"))
							{
								if (!CAM::IS_SPHERE_VISIBLE(vLocal_61[3 /*3*/], 50f))
								{
									if (!is_playback_going_on_for_vehicle(iLocal_49[3]) && iLocal_80)
									{
										func_6(&(iLocal_49[3]), &(iLocal_55[3]));
										start_playback_recorded_vehicle(iLocal_49[3], 104, "AirplaneLandingRedux", 1);
										iLocal_87 = 5;
									}
								}
							}
						}
					}
					break;
				
				case 5:
					if (ENTITY::DOES_ENTITY_EXIST(iLocal_49[3]) && !ENTITY::IS_ENTITY_DEAD(iLocal_49[3], 0))
					{
						if (!is_playback_going_on_for_vehicle(iLocal_49[3]))
						{
							func_5();
							iLocal_87 = 0;
						}
					}
					break;
			}
			break;
	}
}