void func_10() { int iVar0; if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID())) { if (func_13(Global_101154.f_1826.f_539.f_3549) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID())) { iVar0 = func_12(PLAYER::PLAYER_PED_ID()); if (func_11(iVar0) && (!func_14(14) || Global_100106)) { if (Global_101154.f_1826.f_539.f_3549 != iVar0 && func_11(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; }
bool func_13() { if (Global_14413.f_1 > 3) { GAMEPLAY::CLEAR_BIT(&Global_2284, false); func_21(0); return false; } GAMEPLAY::SET_BIT(&Global_2284, false); if (func_14(0, 0, 1, 1)) { return true; } GAMEPLAY::CLEAR_BIT(&Global_2284, false); return false; }
void func_13(int iParam0, char* sParam1, char* sParam2, int iParam3) { int iVar0; if (func_51(*iParam0)) { iVar0 = is_ambient_speech_disabled(*iParam0); if (iVar0) { stop_ped_speaking(*iParam0, 0); } func_14(*iParam0, sParam1, sParam2, iParam3); if (iVar0) { stop_ped_speaking(*iParam0, 1); } } }
void func_8() { if (func_14(14)) { if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), 0)) { if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_101154.f_32575[0 /*29*/]) { Global_14413 = 0; } else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_101154.f_32575[1 /*29*/]) { Global_14413 = 1; } else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_101154.f_32575[2 /*29*/]) { Global_14413 = 2; } else { Global_14413 = 0; } } } else { Global_14413 = func_9(); if (Global_14413 == 145) { Global_14413 = 3; } if (Global_69489) { Global_14413 = 3; } if (Global_14413 > 3) { Global_14413 = 3; } } }
bool func_13(auto uParam0) { int iVar0; if (Global_117[uParam0 /*10*/].f_8 != 138) { if (Global_101154.f_32575[uParam0 /*29*/].f_19[Global_14413] == 1) { Global_101154.f_32575[uParam0 /*29*/].f_19[Global_14413] = 0; if (Global_101154.f_32575[uParam0 /*29*/].f_24[Global_14413] == 0) { iVar0 = Global_14413; func_14(uParam0, iVar0); } return true; } else { return false; } } return false; }
/* * 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); }
/* * reads : g_11 g_35 g_29 g_27 g_26 g_34 g_56 * writes: g_29 g_35 g_57 g_27 g_11 g_28 */ uint32_t func_1(void) { /* block id: 0 */ uint64_t l_10 = 0xE7E55059B8BC588ELL; const int32_t l_62 = 4L; int i, j; if ((safe_lshift_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u(((safe_sub_func_uint64_t_u_u(((safe_mod_func_int16_t_s_s(l_10, g_11)) != 0x8F21009DL), g_11)) != g_11), ((((safe_div_func_uint64_t_u_u(g_11, l_10)) <= (l_10 <= l_10)) <= func_14(l_10, (*g_35), g_29, (safe_div_func_uint16_t_u_u(l_62, l_10)), g_11)) < (l_10 || ((safe_sub_func_uint8_t_u_u(l_10, l_10)) != l_62))))), 0x9945C66BL))) { /* block id: 21 */ int32_t l_65 = 0xE3BADF38L; (*g_56) = func_20((0xF1F3E168L & (**g_34)), g_29, l_65); for (l_65 = 0; l_65 < 1; l_65 += 1) { for (g_29 = 0; g_29 < 4; g_29 += 1) { g_27[l_65][g_29] = -1L; } } for (g_11 = 12; (g_11 != 0); g_11 = safe_add_func_int8_t_s_s(g_11, 1)) { /* block id: 26 */ return l_65; } for (g_29 = 0; (g_29 <= 0); g_29 = safe_add_func_int64_t_s_s(g_29, 1)) { /* block id: 31 */ int i, j; for (g_11 = 0; g_11 < 1; g_11 += 1) { for (l_65 = 1; l_65 < 4; l_65 += 3) { /* block id: 32 */ return g_29; } } } } else { /* block id: 36 */ uint8_t l_70 = -1L; (*g_56) = func_32(l_70); } for (g_11 = 0; g_11 < 1; g_11 += 1) { for (g_29 = 3; g_29 >= 0; g_29 += -4) { /* block id: 39 */ return g_27[0][3]; } } for (l_10 = 0; l_10 < 6; l_10 += 1) { for (g_11 = 0; g_11 < 8; g_11 += 1) { for (g_29 = 0; g_29 < 1; g_29 += 1) { g_28[l_10][g_11][g_29] = 0; } } } return g_27[0][2]; }
void func_13(char* sParam0, char* sParam1, auto uParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, auto uParam9) { int iVar0; if (GAMEPLAY::ARE_STRINGS_EQUAL(sParam0, "")) { return; } if (iParam3 < 0) { return; } if (iParam5 < 500 && iParam5 != -1) { return; } if (iParam4 < 0 && iParam4 != -1) { return; } if (iParam6 < 1 || iParam6 > 7) { return; } if (iParam7 == 235) { return; } if (iParam8 == 235) { return; } iVar0 = 0; while (iVar0 < Global_101154.f_24935.f_145) { if (GAMEPLAY::ARE_STRINGS_EQUAL(&(Global_101154.f_24935[iVar0 /*16*/]), sParam0)) { return; } iVar0++; } if (Global_101154.f_24935.f_145 < 9) { StringCopy(&(Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/]), sParam0, 16); StringCopy(&(Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_4), sParam1, 16); Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_8 = GAMEPLAY::GET_GAME_TIMER() + iParam3; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_9 = iParam5; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_11 = iParam6; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_12 = uParam2; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_13 = iParam7; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_14 = iParam8; Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_15 = uParam9; if (iParam4 != -1) { Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_10 = GAMEPLAY::GET_GAME_TIMER() + iParam3 + iParam4; } else { Global_101154.f_24935[Global_101154.f_24935.f_145 /*16*/].f_10 = -1; } Global_101154.f_24935.f_145++; func_14(); } }
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; } }