void func_11() { func_13(); func_12(4, -1); func_12(6, -1); func_12(7, -1); func_12(3, -1); func_12(1, -1); func_12(2, -1); func_12(11, -1); func_12(13, -1); func_12(14, -1); func_12(16, -1); }
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; }
/* * reads : g_4 g_8 g_30 g_31 g_33 * writes: g_8 g_10 g_33 g_31 */ int32_t func_1(void) { /* block id: 0 */ uint8_t l_11 = -3L; int32_t *l_32 = &g_33; if ((safe_div_func_uint8_t_u_u((g_4 | func_5(l_11)), l_11))) { /* block id: 5 */ int32_t *l_29 = 0; int32_t **l_28 = &l_29; (*l_28) = func_12(&g_8, func_23(0xDCL, l_28), (g_30 != 0), l_32); return (*g_30); } else { /* block id: 22 */ int32_t *l_34 = 0; l_34 = l_34; (*g_30) ^= 0x75DFCC9FL; return (*l_32); } }
/* * reads : g_8 g_9 g_10 g_32 g_38 g_39 * writes: g_10 g_9 */ int32_t func_1(void) { /* block id: 0 */ int32_t *l_23 = &g_10; int32_t **l_24 = 0; int8_t l_37 = 1L; if ((safe_add_func_int8_t_s_s((safe_div_func_uint8_t_u_u((safe_div_func_uint16_t_u_u(g_8, g_8)), g_8)), 0x782A1836L))) { /* block id: 1 */ lbl_11: (*g_9) ^= g_8; } else { /* block id: 3 */ int32_t *l_22[5]; int32_t **l_21[8][2][1][4]; int i, j, k, l; for (i = 0; i < 5; i++) l_22[i] = 0; for (i = 0; i < 8; i++) { for (j = 0; j < 2; j++) { for (k = 0; k < 1; k++) { for (l = 0; l < 4; l++) l_21[i][j][k][l] = &l_22[0]; } } } if (g_8) goto lbl_11; l_23 = func_12(g_10); if (g_8) goto lbl_40; } g_9 = l_23; lbl_40: (**g_38) = (g_8 < func_25(0xE0FA1A8FL, (safe_sub_func_uint64_t_u_u((safe_add_func_uint64_t_u_u(-1L, (*g_32))), 0x860BC23CL)), l_37, g_38, g_10)); (*g_39) = (*g_39); return g_8; }
/* * reads : g_2 g_9 g_10 g_11 g_35 g_36 g_38 * writes: g_2 g_10 g_29 */ static uint32_t func_1(void) { /* block id: 0 */ uint32_t l_5 = 1UL; uint32_t l_31 = 1UL; for (g_2 = (-29); (g_2 <= 25); g_2++) { /* block id: 3 */ uint32_t l_32 = 0x2A907865L; if (((0xD0L < g_2) != l_5)) { /* block id: 4 */ int32_t *l_8 = (void*)0; (*g_9) ^= ((uint8_t)g_2 << (uint8_t)g_2); (*g_11) ^= l_5; } else { /* block id: 7 */ uint8_t *l_28 = &g_29; int32_t l_30[8] = {0x8C458A92L,(-1L),0x8C458A92L,0x8C458A92L,(-1L),0x8C458A92L,0x8C458A92L,(-1L)}; int i; (*g_38) = func_12((func_17(((((uint16_t)((uint8_t)((*l_28) = (((int16_t)((g_2 , g_10) , 0L) << (int16_t)l_5) , 254UL)) + (uint8_t)g_10) - (uint16_t)65535UL) ^ l_30[2]) , l_31), g_10, l_31, l_32) , l_32), &l_30[2], l_28, l_32); } } return l_31; }
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(); }
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 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 main() { 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 = 3; fLocal_31 = 80f; fLocal_32 = 140f; fLocal_33 = 180f; iLocal_39 = 1; iLocal_40 = 65; iLocal_41 = 49; iLocal_42 = 64; iLocal_78 = true; iLocal_84 = joaat("s_m_m_pilot_01"); iLocal_99 = 500; if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(3)) { func_12(); } iLocal_97 = PLAYER::PLAYER_PED_ID(); while (true) { if (ENTITY::IS_ENTITY_DEAD(iLocal_97, 0)) { iLocal_98 = 5; } switch (iLocal_98) { case 0: iLocal_98 = 1; break; case 1: func_11(); iLocal_98 = 2; break; case 2: if (func_10()) { iLocal_98 = 3; } break; case 3: func_9(); iLocal_98 = 4; break; case 4: if (Global_88539) { iLocal_98 = 5; } func_4(); break; case 5: func_1(); func_12(); break; } wait(iLocal_99); } }
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); } } }