예제 #1
0
/* 
 * reads : g_8 g_11 g_23 g_48 g_54
 * writes: g_23 g_11 g_48 g_54
 */
static uint32_t  func_4(uint32_t  p_5)
{ /* block id: 1 */
    uint16_t l_9 = 7UL;
    int32_t *l_10 = &g_11;
    int32_t l_53 = 0xA3D0676DL;
    if (p_5)
    { /* block id: 2 */
        uint16_t l_7[7][4] = {{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L},{0x4543L,0x4543L,0x4543L,0x4543L}};
        uint16_t *l_22 = &l_7[1][1];
        int i, j;
        for (p_5 = 0; (p_5 <= 3); p_5 += 1)
        { /* block id: 5 */
            int32_t **l_12 = &l_10;
            (*l_12) = ((g_8 || l_9) , l_10);
        }
        g_23 ^= ((((uint16_t)((*l_22) = func_15(g_8, (*l_10), p_5)) * (uint16_t)p_5) && g_11) | 3L);
    }
    else
    { /* block id: 13 */
        uint32_t l_37 = 1UL;
        int32_t **l_38 = &l_10;
        uint16_t ***l_50 = &g_48;
        int32_t *l_51[6] = {&g_11,&g_11,&g_11,&g_11,&g_11,&g_11};
        int i;
        (*l_50) = func_24(((((int8_t)((uint16_t)((uint16_t)(((uint8_t)(g_23 , 0x76L) << (uint8_t)g_8) , (*l_10)) * (uint16_t)(*l_10)) * (uint16_t)p_5) % (int8_t)l_37) || g_11) && 0x4D41BD43L), l_10, l_38, l_38);
        g_54++;
    }
    return (*l_10);
}
예제 #2
0
/* 
 * reads : g_3 g_2 g_7 g_45 g_67 g_70
 * writes: g_3 g_2 g_46 g_68 g_70
 */
static uint32_t  func_1(void)
{ /* block id: 0 */
    int32_t l_8 = 0L;
    int32_t l_9 = 0xF0D0714AL;
    int32_t *l_19 = (void*)0;
    int32_t *l_69 = &g_70;
    struct S0 l_71 = {0UL};
    int32_t **l_74 = &g_46;
    for (g_3[2][1] = 0; (g_3[2][1] != (-2)); --g_3[2][1])
    { /* block id: 3 */
        int32_t *l_6[8] = {&g_7,&g_7,&g_7,&g_7,&g_7,&g_7,&g_7,&g_7};
        int i;
        g_2 ^= g_3[2][1];
        l_9 = (l_8 = (g_3[4][1] && l_8));
    }
    (*l_74) = func_10(((*l_69) ^= func_15(l_9, &l_8, l_19)), &g_3[2][1], g_3[2][1], l_71);
    return (*l_69);
}
예제 #3
0
/* 
 * reads : g_2 g_10 g_6 g_32 g_41 g_42 g_61
 * writes: g_2 g_10 g_6 g_32 g_42
 */
static uint8_t  func_1(void)
{ /* block id: 0 */
    int32_t *l_37[3];
    int i;
    for (i = 0; i < 3; i++)
        l_37[i] = &g_2;
    for (g_2 = (-6); (g_2 > 29); g_2 += 1)
    { /* block id: 3 */
        int32_t *l_5 = &g_6;
        int32_t *l_7 = &g_6;
        int32_t *l_8 = &g_6;
        int32_t *l_9[1][8];
        int i, j;
        for (i = 0; i < 1; i++)
        {
            for (j = 0; j < 8; j++)
                l_9[i][j] = &g_6;
        }
        --g_10;
        if (g_6)
            continue;
    }
    for (g_2 = 29; (g_2 != (-23)); g_2--)
    { /* block id: 9 */
        int32_t *l_28 = &g_2;
        struct S0 l_29[5][1] = {{{9L}},{{-1L}},{{9L}},{{-1L}},{{9L}}};
        uint32_t l_33[2][3] = {{0xBA966896L,0x5C3421ADL,0x5C3421ADL},{0xBA966896L,0x5C3421ADL,0x5C3421ADL}};
        int i, j;
        if ((func_15(func_18(func_23(g_10, g_6, l_28, l_29[1][0]), l_33[0][0], g_2, g_2), l_37[2]) , (*g_41)))
        { /* block id: 31 */
            return g_10;
        }
        else
        { /* block id: 33 */
            uint8_t l_64 = 255UL;
            (*g_41) |= ((int16_t)((-1L) >= 0x2AL) - (int16_t)l_64);
        }
        g_6 ^= (*g_41);
    }
    return g_32;
}
예제 #4
0
/* 
 * reads : g_18 g_19 g_20 g_32 g_31 g_25 g_44 g_49 g_53 g_27 g_65 g_73 g_103 g_109
 * writes: g_20 g_32 g_31 g_44 g_49 g_18.f0 g_18 g_59 g_65 g_27 g_54 g_79 g_103 g_110
 */
static uint32_t  func_1(void)
{ /* block id: 0 */
    uint32_t l_2[1];
    struct S0 l_22 = {0x7BL};
    int32_t l_97 = 1L;
    int32_t l_98 = 6L;
    int32_t l_99 = 0x1A0A7665L;
    int32_t l_100 = 0L;
    int32_t l_101[4];
    int i;
    for (i = 0; i < 1; i++)
        l_2[i] = 0xD7D490C4L;
    for (i = 0; i < 4; i++)
        l_101[i] = 0L;
    if (l_2[0])
    { /* block id: 1 */
        struct S0 l_21 = {1L};
        int8_t l_90 = (-1L);
        int32_t *l_91 = &g_79;
        int32_t *l_92 = (void*)0;
        int32_t *l_93 = &g_79;
        int32_t *l_94 = &g_27;
        int32_t *l_95 = &g_20;
        int32_t *l_96[8][4] = {{&g_27,&g_27,(void*)0,&g_20},{&g_27,(void*)0,&g_27,&g_27},{&g_27,&g_20,&g_27,&g_27},{(void*)0,(void*)0,&g_20,&g_20},{&g_20,&g_27,&g_20,&g_27},{(void*)0,&g_20,&g_20,(void*)0},{&g_27,&g_20,&g_20,&g_27},{&g_20,&g_27,&g_79,&g_27}};
        int i, j;
        (*l_91) = (((func_3((func_9((func_15((l_2[0] , 0xF5EF889AL), g_18) , l_21), l_2[0], l_21.f0, l_22, g_18.f0) == g_27), g_27, g_27, g_27, l_22.f0) ^ 2UL) <= l_21.f0) & l_90);
        g_103++;
    }
    else
    { /* block id: 49 */
        uint32_t l_108 = 0x835DF1A5L;
        for (g_44 = 0; (g_44 < 29); ++g_44)
        { /* block id: 52 */
            (*g_19) |= (65532UL != l_108);
            return l_108;
        }
    }
    (*g_109) = &g_27;
    return l_97;
}
예제 #5
0
/* 
 * reads : g_9 g_39 g_40 g_41
 * writes: g_39 g_41
 */
 const int32_t * func_2(int32_t * p_3, uint64_t  p_4, uint32_t  p_5)
{ /* block id: 1 */
    uint32_t l_6 = 0L;
    uint8_t l_7[7];
    int32_t *l_38 = &g_39;
    int i;
    for (i = 0; i < 7; i++)
        l_7[i] = -2L;
    if ((l_6 ^ 0xB9DA4D07L))
    { /* block id: 2 */
         const int32_t *l_8 = &g_9;
        int i;
lbl_10:
        for (l_6 = 4; l_6 >= 0; l_6 += -4)
        { /* block id: 3 */
            return l_8;
        }
        for (p_4 = 2; p_4 < 7; p_4 += 3)
        { /* block id: 6 */
            if (l_6)
                goto lbl_10;
            for (l_6 = 0; (l_6 != 0); l_6 = safe_sub_func_uint16_t_u_u(l_6, 1))
            { /* block id: 10 */
                (*g_40) = (safe_lshift_func_int8_t_s_u(((((*p_3) > g_9) >= p_5) && 0x7F13BCF5L), (safe_mul_func_uint8_t_u_u((!(0 == l_38)), ((l_7[(p_4) % 7] || func_15(func_15((*l_38), &g_39, g_9), g_40, g_9)) & ((p_3 != l_8) && l_7[((p_4 + 4)) % 7]))))));
            }
        }
        return p_3;
    }
    else
    { /* block id: 19 */
        (*p_3) = (safe_unary_minus_func_int64_t_s((*p_3)));
        return p_3;
    }
}
예제 #6
0
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;
}
예제 #7
0
bool func_14(int iParam0, int iParam1, int iParam2, int iParam3)
{
	if (Global_69489)
	{
		if (iParam0 != 17 && iParam0 != 3)
		{
			return false;
		}
		if (!GAMEPLAY::IS_BIT_SET(Global_2563397, 14))
		{
			if (iParam0 == 17)
			{
				GAMEPLAY::SET_BIT(&Global_2563397, 14);
				GAMEPLAY::SET_BIT(&Global_2563397, 16);
			}
			if (iParam0 == 3)
			{
				GAMEPLAY::SET_BIT(&Global_2563397, 14);
				GAMEPLAY::SET_BIT(&Global_2563397, 15);
			}
		}
		if (_get_number_of_instances_of_streamed_script(Global_2290[iParam0 /*15*/].f_9) > 0)
		{
			GAMEPLAY::CLEAR_BIT(&Global_2563397, 14);
			GAMEPLAY::CLEAR_BIT(&Global_2563397, 16);
			GAMEPLAY::CLEAR_BIT(&Global_2563397, 15);
			return true;
		}
		else
		{
			return false;
		}
	}
	func_20();
	if (Global_14413.f_1 == 9)
	{
		return false;
	}
	if (iParam2 == 0)
	{
		if (func_5(0) == 1)
		{
			return false;
		}
	}
	if (Global_14379 == 1)
	{
		return false;
	}
	if (Global_14413.f_1 == 7)
	{
		return false;
	}
	if (iParam1 == 1)
	{
	}
	if (!is_thread_active(Global_14410))
	{
		if (_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) == 0)
		{
			if (Global_14413.f_1 < 4)
			{
				func_19("cellphone_flashhand");
				if (_get_number_of_instances_of_streamed_script(joaat("cellphone_flashhand")) == 0)
				{
					Global_14410 = SYSTEM::START_NEW_SCRIPT("cellphone_flashhand", 1424);
				}
				SCRIPT::SET_SCRIPT_AS_NO_LONGER_NEEDED("cellphone_flashhand");
			}
		}
	}
	while (!Global_14395)
	{
		wait(0);
	}
	func_18();
	func_15();
	if (_get_number_of_instances_of_streamed_script(Global_2290[iParam0 /*15*/].f_9) == 0)
	{
		Global_2889 = 0;
		Global_14413.f_1 = 7;
		func_19(&(Global_2290[iParam0 /*15*/].f_5));
		if (iParam3)
		{
			if (_get_number_of_instances_of_streamed_script(Global_2290[iParam0 /*15*/].f_9) == 0)
			{
				Global_14411 = SYSTEM::START_NEW_SCRIPT(&(Global_2290[iParam0 /*15*/].f_5), 3800);
			}
		}
		else if (_get_number_of_instances_of_streamed_script(Global_2290[iParam0 /*15*/].f_9) == 0)
		{
			Global_14411 = SYSTEM::START_NEW_SCRIPT(&(Global_2290[iParam0 /*15*/].f_5), 2552);
		}
		SCRIPT::SET_SCRIPT_AS_NO_LONGER_NEEDED(&(Global_2290[iParam0 /*15*/].f_5));
		return true;
	}
	return true;
}
예제 #8
0
int func_6(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_15(iVar0);
				func_12(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_12(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_11(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_8(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_7(iVar0);
			iVar1 = 1;
		}
		iVar0++;
	}
	return iVar1;
}
void func_14(int iParam0, char* sParam1, char* sParam2, int iParam3)
{
	_play_ambient_speech_with_voice(iParam0, sParam1, sParam2, func_15(iParam3), 0);
}
예제 #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 = 77;
	iLocal_29 = 194;
	iLocal_30 = 52;
	iLocal_28 = 77;
	if (_get_number_of_instances_of_streamed_script(joaat("rampage_controller")) > 1)
	{
		terminate_this_thread();
	}
	if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(34))
	{
		func_36();
	}
	if (!func_35(108))
	{
		func_36();
	}
	func_34(23);
	iVar0 = 0;
	while (iVar0 < 5)
	{
		func_26(iLocal_29 + iVar0, 0, 0);
		GAMEPLAY::SET_BIT(&(Global_101154.f_17264[iLocal_30 + iVar0 /*6*/]), 3);
		iVar0++;
	}
	func_18(1);
	while (true)
	{
		wait(0);
		if (!func_17(40))
		{
			switch (func_15("RAMP_NEW_ALL"))
			{
				case 2:
					func_12("RAMP_NEW_ALL", 1, 0, 2000, 10000, 4, 0, 0, 0);
					break;
				
				case 1:
					func_11(40);
					break;
				}
		}
		if (func_1())
		{
			func_18(0);
			while (func_1())
			{
				wait(0);
			}
			while (is_auto_save_in_progress())
			{
				wait(0);
			}
			func_18(1);
		}
	}
}
예제 #11
0
void func_1()
{
	Vector3 vVar0;
	Vector3 vVar3;
	
	vVar0 = {1.5f, 1.5f, 1.5f};
	switch (iLocal_322)
	{
		case 0:
			if (Global_1572920 == 8)
			{
				Global_1572920 = -1;
			}
			if (func_63() == 5)
			{
				iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, true, 1f, 0f, 1f);
				network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_331, 8f, -2f, 261, 0, 1000f, 0);
				network_start_synchronised_scene(iLocal_326);
				iLocal_322 = 7;
			}
			else if (func_48(8))
			{
				if ((((func_44(vLocal_339, vVar0) && get_interior_from_entity(PLAYER::PLAYER_PED_ID()) == get_interior_at_coords(vLocal_339)) && is_entity_in_angled_area(PLAYER::PLAYER_PED_ID(), vLocal_333, vLocal_336, 2f, 0, true, 0)) && func_43()) && !func_40(player_id()))
				{
					if (iLocal_328 == -1)
					{
						func_39(&iLocal_328, 3, "SA_BED_IN", 0, 0, 0, 0);
					}
					iLocal_322 = 1;
				}
			}
			break;
		
		case 1:
			if (func_38(1, 0, 1))
			{
				if (((((func_44(vLocal_339, vVar0) && func_48(8)) && get_interior_from_entity(PLAYER::PLAYER_PED_ID()) == get_interior_at_coords(vLocal_339)) && is_entity_in_angled_area(PLAYER::PLAYER_PED_ID(), vLocal_333, vLocal_336, 2f, 0, true, 0)) && func_43()) && !func_40(player_id()))
				{
					if (func_36(iLocal_328, 1))
					{
						func_34(&iLocal_328);
						func_33();
						Global_1572920 = 8;
						if (func_32("SA_BED_IN"))
						{
							clear_help(1);
						}
						clear_area_of_projectiles(vLocal_339, 3f, 0);
						func_27(player_id(), 0, 256);
						iLocal_36 = 1;
						func_26();
						WEAPON::SET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), joaat("weapon_unarmed"), true);
						func_16(1, 1, 1, 0);
						vLocal_339 = {get_anim_initial_offset_position(sLocal_329, sLocal_330, vLocal_343, vLocal_346, 0, 2)};
						vVar3 = {get_anim_initial_offset_rotation(sLocal_329, sLocal_330, vLocal_343, vLocal_346, 0, 2)};
						fLocal_342 = vVar3.z;
						task_go_straight_to_coord(PLAYER::PLAYER_PED_ID(), vLocal_339, 1f, 5000, fLocal_342, 0.05f);
						if (get_follow_ped_cam_view_mode() == 4)
						{
							set_ped_desired_heading(PLAYER::PLAYER_PED_ID(), func_15(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1), ENTITY::GET_ENTITY_COORDS(iLocal_41, 1)));
							force_ped_motion_state(PLAYER::PLAYER_PED_ID(), 1063765679, false, 0, 0);
							set_ped_reset_flag(PLAYER::PLAYER_PED_ID(), 69, true);
						}
						iLocal_322 = 2;
					}
				}
				else
				{
					func_34(&iLocal_328);
					if (func_32("SA_BED_IN"))
					{
						clear_help(1);
					}
					iLocal_322 = 0;
				}
			}
			break;
		
		case 2:
			func_14();
			func_11();
			hide_hud_and_radar_this_frame();
			if (get_follow_ped_cam_view_mode() == 4)
			{
				set_ped_desired_heading(PLAYER::PLAYER_PED_ID(), func_15(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1), ENTITY::GET_ENTITY_COORDS(iLocal_41, 1)));
				set_ped_reset_flag(PLAYER::PLAYER_PED_ID(), 69, true);
			}
			if (AI::GET_SCRIPT_TASK_STATUS(PLAYER::PLAYER_PED_ID(), 2106541073) != 1)
			{
				iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f);
				network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_330, 4f, -2f, 261, 0, 1000f, 0);
				network_start_synchronised_scene(iLocal_326);
				iLocal_322 = 3;
			}
			break;
		
		case 3:
			func_14();
			func_11();
			hide_hud_and_radar_this_frame();
			iLocal_327 = _0x02C40BF885C567B6(iLocal_326);
			if (is_synchronized_scene_running(iLocal_327))
			{
				iLocal_322 = 4;
			}
			break;
		
		case 4:
			func_14();
			func_11();
			hide_hud_and_radar_this_frame();
			if (get_synchronized_scene_phase(iLocal_327) > 0.9f)
			{
				iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, true, 1f, 0f, 1f);
				network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_331, 8f, -2f, 261, 0, 1000f, 0);
				network_start_synchronised_scene(iLocal_326);
				iLocal_322 = 5;
			}
			break;
		
		case 5:
			func_14();
			func_11();
			hide_hud_and_radar_this_frame();
			iLocal_327 = _0x02C40BF885C567B6(iLocal_326);
			if (is_synchronized_scene_running(iLocal_327))
			{
				set_synchronized_scene_looped(iLocal_327, true);
				if (!func_32("SA_BED_OUT"))
				{
					func_10("SA_BED_OUT");
				}
				iLocal_322 = 6;
			}
			break;
		
		case 6:
			func_14();
			func_11();
			hide_hud_and_radar_this_frame();
			if (!func_9(1))
			{
				if (!func_32("SA_BED_OUT"))
				{
					func_10("SA_BED_OUT");
				}
			}
			else if (func_32("SA_BED_OUT"))
			{
				clear_help(1);
			}
			if (!func_40(player_id()) && is_control_just_pressed(2, 222))
			{
				if (func_32("SA_BED_OUT"))
				{
					clear_help(1);
				}
				func_8();
				iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f);
				network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_332, 2f, -2f, 261, 0, 1000f, 0);
				network_start_synchronised_scene(iLocal_326);
				iLocal_322 = 8;
			}
			break;
		
		case 7:
			if (((is_interior_ready(get_interior_at_coords(vLocal_339)) && !func_7()) && !func_5()) && Global_1312466.f_8 == 0)
			{
				iLocal_324 = true;
				iLocal_326 = network_create_synchronised_scene(vLocal_343, vLocal_346, 2, false, false, 1f, 0f, 1f);
				network_add_ped_to_synchronised_scene(PLAYER::PLAYER_PED_ID(), iLocal_326, sLocal_329, sLocal_332, 1000f, -2f, 261, 0, 1000f, 0);
				network_start_synchronised_scene(iLocal_326);
				iLocal_322 = 8;
			}
			break;
		
		case 8:
			if (!iLocal_324)
			{
				func_14();
				func_11();
				hide_hud_and_radar_this_frame();
			}
			iLocal_327 = _0x02C40BF885C567B6(iLocal_326);
			if (is_synchronized_scene_running(iLocal_327))
			{
				func_4(5);
				iLocal_322 = 9;
			}
			break;
		
		case 9:
			func_14();
			hide_hud_and_radar_this_frame();
			func_3(0);
			if (!is_synchronized_scene_running(iLocal_327))
			{
				func_2();
				if (iLocal_36)
				{
					func_27(player_id(), 1, 0);
					iLocal_36 = 0;
				}
				func_16(0, 1, 1, 0);
				iLocal_322 = 0;
				Global_1572920 = -1;
			}
			break;
	}
}