void func_55() { func_48(0, &uLocal_88); if (func_8(iLocal_81)) { ENTITY::FREEZE_ENTITY_POSITION(iLocal_81, false); } func_57(&iLocal_81, 0); if (func_8(iLocal_80)) { ENTITY::FREEZE_ENTITY_POSITION(iLocal_80, false); } func_57(&iLocal_80, 0); if (func_8(iLocal_79)) { ENTITY::FREEZE_ENTITY_POSITION(iLocal_79, false); if (is_entity_playing_anim(iLocal_79, "special_ped@maude@base", "base_chair", 3)) { stop_entity_anim(iLocal_79, "base_chair", "special_ped@maude@base", -1000f); stop_synchronized_entity_anim(iLocal_79, -1000f, 1); } else if (is_entity_playing_anim(iLocal_79, func_11(), "Female_Flee_Table_Left_Maude_Chair", 3)) { stop_entity_anim(iLocal_79, "Female_Flee_Table_Left_Maude_Chair", func_11(), -1000f); stop_synchronized_entity_anim(iLocal_79, -1000f, 1); } } func_57(&iLocal_79, 0); if (func_51(iLocal_82)) { set_ped_keep_task(iLocal_82, true); PED::SET_PED_CONFIG_FLAG(iLocal_82, 118, true); } func_56(&iLocal_82, 1, 0, 1); remove_anim_dict(func_11()); terminate_this_thread(); }
/* * reads : g_9 g_23 g_12 g_19 g_34 g_32 g_21 g_41 g_22 g_57 g_58 g_59 g_68 g_69 * writes: g_12 g_9 g_23 g_34 g_32 g_41 g_69 g_70 g_85 */ static int32_t func_1(void) { /* block id: 0 */ uint8_t l_6 = 5UL; uint16_t l_10 = 1UL; int32_t *l_13 = &g_12[4][2]; uint32_t *l_31[8] = {&g_32,&g_32,&g_32,&g_32,&g_32,&g_32,&g_32,&g_32}; int32_t *l_33[8] = {&g_34,&g_34,&g_34,&g_34,&g_34,&g_34,&g_34,&g_34}; int32_t l_54[7]; uint32_t l_81 = 4294967290UL; int i; for (i = 0; i < 7; i++) l_54[i] = 0xA83BDBB1L; (*l_13) = ((!((((((func_3(((!l_6) | l_6)) | 0x57L) | g_9) , g_9) >= g_9) || 0x19L) || 0x14L)) | l_10); if ((g_34 &= ((((*l_13) = func_14(l_13, &g_12[4][2])) <= 0xFF2B3A76L) < 1L))) { /* block id: 21 */ uint32_t *l_37[1][5]; int i, j; for (i = 0; i < 1; i++) { for (j = 0; j < 5; j++) l_37[i][j] = (void*)0; } for (g_32 = 0; (g_32 <= 7); g_32 += 1) { /* block id: 24 */ uint8_t *l_38 = (void*)0; uint8_t *l_39[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}; int32_t l_44 = (-9L); uint32_t l_45 = 4294967295UL; int32_t l_46 = (-3L); int i; g_12[3][1] &= ((uint32_t)(&g_32 != l_37[0][4]) % (uint32_t)g_21); l_46 ^= (((((((--g_41) , (((((void*)0 == &g_32) < 0xA6L) <= g_23) | g_41)) && (*l_13)) >= l_44) != g_21) && g_22) < l_45); } } else { /* block id: 29 */ uint8_t l_47 = 246UL; int32_t l_79 = (-3L); int32_t **l_86 = &g_85[4]; if (l_47) { /* block id: 30 */ uint8_t *l_56 = &l_6; uint8_t **l_55 = &l_56; int32_t l_60[5] = {0xB7D5E362L,0xB7D5E362L,0xB7D5E362L,0xB7D5E362L,0xB7D5E362L}; int32_t l_61 = 0x92F9381BL; int i; (*g_68) = func_48(((((((((((*l_13) > l_47) != g_9) != l_54[6]) || l_47) && (-1L)) , l_55) != g_57[1][3]) , (*g_58)) , l_47), g_32, l_60[0], l_61, g_41); } else { /* block id: 35 */ uint8_t **l_73 = (void*)0; uint8_t *l_75 = &l_47; uint8_t **l_74 = &l_75; uint8_t *l_77 = &g_41; uint8_t **l_76 = &l_77; int32_t l_78 = 6L; int32_t l_80 = 0x1380A060L; (*l_13) = ((((uint16_t)(((((*l_76) = ((*l_74) = ((*g_69) = &l_6))) != &l_47) || g_12[3][1]) || 0xCFE2AFDDL) % (uint16_t)l_78) || g_32) , l_47); ++l_81; } (*l_86) = &l_79; } return (*l_13); }
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_18 = "NULL"; fLocal_21 = 0f; fLocal_25 = -0.0375f; fLocal_26 = 0.17f; fLocal_30 = 80f; fLocal_31 = 140f; fLocal_32 = 180f; iLocal_35 = 3; iLocal_85 = -1; iLocal_86 = -1; if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(19)) { func_55(); } if (!func_52()) { func_55(); } if (!func_51(iLocal_82)) { func_55(); } else { func_50(); iLocal_83 = GAMEPLAY::GET_GAME_TIMER(); iLocal_85 = func_49(); iLocal_84 = 0; func_48(1, &uLocal_88); } while (true) { if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID())) { if (!func_51(iLocal_82)) { func_55(); } vVar0 = {ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1)}; vVar3 = {ENTITY::GET_ENTITY_COORDS(iLocal_82, 1)}; if (vdist2(vVar0, vVar3) >= 100f * 100f) { func_55(); } switch (iLocal_87) { case 0: func_43(vVar3, vVar0, 18000, 1101004800); if (func_25(&iLocal_82, 0)) { func_24(); func_16(0); func_12(vVar3, vVar0); request_anim_dict(func_11()); iLocal_87 = 1; } break; case 1: if (func_5(&iLocal_82, &iLocal_79, &iLocal_86)) { iLocal_87 = 2; } break; case 2: if (!func_4(iLocal_82, 1805844857) && !is_ped_fleeing(iLocal_82)) { if (!is_entity_playing_anim(iLocal_82, func_11(), func_3(), 3)) { func_1(); } } else { func_55(); } break; } } wait(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; } }