Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #region Local Var
- var uLocal_0 = 0;
- var uLocal_1 = 0;
- int iLocal_2 = 0;
- int iLocal_3 = 0;
- int iLocal_4 = 0;
- int iLocal_5 = 0;
- int iLocal_6 = 0;
- int iLocal_7 = 0;
- int iLocal_8 = 0;
- int iLocal_9 = 0;
- int iLocal_10 = 0;
- int iLocal_11 = 0;
- var uLocal_12 = 0;
- var uLocal_13 = 0;
- float fLocal_14 = 0f;
- var uLocal_15 = 0;
- var uLocal_16 = 0;
- int iLocal_17 = 0;
- char* sLocal_18 = NULL;
- var uLocal_19 = 0;
- var uLocal_20 = 0;
- var uLocal_21 = 0;
- var uLocal_22 = 0;
- float fLocal_23 = 0f;
- float fLocal_24 = 0f;
- float fLocal_25 = 0f;
- var uLocal_26 = 0;
- var uLocal_27 = 0;
- int CURRENT_ITERATED_INTERIOR = 0;
- int PREVIOUS_ITERATED_INTERIOR = 0;
- vector3 POSITION_ZERO = { 0f, 0f, 0f };
- int LOCAL_ENTITY = 0;
- int BIT_ADDRESS = 0;
- #endregion
- void __EntryFunction__()
- {
- 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_23 = 80f;
- fLocal_24 = 140f;
- fLocal_25 = 180f;
- PREVIOUS_ITERATED_INTERIOR = -1;
- POSITION_ZERO = { 0f, 0f, 0f };
- if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(2))
- {
- SCRIPT::TERMINATE_THIS_THREAD();
- }
- while (true)
- {
- SYSTEM::WAIT(0);
- if (!NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
- {
- SCRIPT::TERMINATE_THIS_THREAD();
- }
- if (func_23(PLAYER::PLAYER_ID()) && ENTITY::DOES_ENTITY_EXIST(SCR_GET_Global_2359302_f_2()))
- {
- LOCAL_ENTITY = SCR_GET_Global_2359302_f_2();
- }
- else
- {
- LOCAL_ENTITY = PLAYER::PLAYER_PED_ID();
- }
- if (ENTITY::IS_ENTITY_DEAD(LOCAL_ENTITY, 0))
- {
- }
- SCR_LOOP();
- }
- }
- void SCR_LOOP()
- {
- vector3 _pos;
- vector3 _fIntPos;
- bool _isInFakeInterior;
- int _curRoom;
- SCR_ITERATE_INTERIOR_STEP();
- if (PREVIOUS_ITERATED_INTERIOR != -1 && SCR_ONE(PREVIOUS_ITERATED_INTERIOR))
- {
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- _fIntPos = { SCR_GET_FAKE_INTERIOR_POSITION(PREVIOUS_ITERATED_INTERIOR) };
- if (SYSTEM::VDIST2(_fIntPos, _pos) < IntToFloat(SCR_GET_FAKE_INTERIOR_RANGE(PREVIOUS_ITERATED_INTERIOR)))
- {
- _isInFakeInterior = false;
- _curRoom = 0;
- _curRoom = 0;
- while (_curRoom < SCR_GET_FAKE_INTERIOR_ROOM_COUNT(PREVIOUS_ITERATED_INTERIOR))
- {
- if (!_isInFakeInterior)
- {
- if (ENTITY::IS_ENTITY_IN_ANGLED_AREA(LOCAL_ENTITY, SCR_GET_FAKE_INTERIOR_ROOM_POSITIONS2(PREVIOUS_ITERATED_INTERIOR, _curRoom), SCR_GET_FAKE_INTERIOR_ROOM_POSITIONS(PREVIOUS_ITERATED_INTERIOR, _curRoom), SCR_GET_FAKE_INTERIOR_ROOM_ANGLE(PREVIOUS_ITERATED_INTERIOR, _curRoom), 0, true, 0))
- {
- _isInFakeInterior = true;
- }
- }
- _curRoom++;
- }
- if (_isInFakeInterior)
- {
- HUD::SET_RADAR_AS_INTERIOR_THIS_FRAME(MISC::GET_HASH_KEY(SCR_GET_FAKE_INTERIOR_NAME(PREVIOUS_ITERATED_INTERIOR)), _fIntPos.x, _fIntPos.y, SCR_GET_FAKE_INTERIOR_ZERO(PREVIOUS_ITERATED_INTERIOR), SCR_GET_RADAR_ZOOM_FROM_Z(PREVIOUS_ITERATED_INTERIOR));
- SCR_SET_FAKE_POSITION(PREVIOUS_ITERATED_INTERIOR);
- }
- }
- }
- if (NETWORK::NETWORK_IS_GAME_IN_PROGRESS())
- {
- if (func_2())
- {
- if (MISC::IS_BIT_SET(BIT_ADDRESS, 1))
- {
- MISC::CLEAR_BIT(&BIT_ADDRESS, 1);
- }
- if (HUD::IS_PAUSE_MENU_ACTIVE())
- {
- if (!MISC::IS_BIT_SET(BIT_ADDRESS, 0))
- {
- HUD::SET_MINIMAP_COMPONENT(15, 1, -1);
- MISC::SET_BIT(&BIT_ADDRESS, 0);
- }
- }
- else if (MISC::IS_BIT_SET(BIT_ADDRESS, 0))
- {
- HUD::SET_MINIMAP_COMPONENT(15, 0, -1);
- MISC::CLEAR_BIT(&BIT_ADDRESS, 0);
- }
- }
- else if (!MISC::IS_BIT_SET(BIT_ADDRESS, 1))
- {
- HUD::SET_MINIMAP_COMPONENT(15, 0, -1);
- MISC::CLEAR_BIT(&BIT_ADDRESS, 0);
- MISC::SET_BIT(&BIT_ADDRESS, 1);
- }
- }
- }
- int func_2()
- {
- int iVar0;
- if (func_7(PLAYER::PLAYER_ID()))
- {
- return 1;
- }
- if (func_5(PLAYER::PLAYER_ID(), 1))
- {
- iVar0 = func_4();
- if (iVar0 != SCR_MINUS_ONE())
- {
- if (func_7(iVar0))
- {
- return 1;
- }
- }
- }
- return 0;
- }
- int SCR_MINUS_ONE()
- {
- return -1;
- }
- var func_4()
- {
- return Global_1624079[PLAYER::PLAYER_ID() /*558*/].f_11;
- }
- bool func_5(int _p0, bool bParam1)
- {
- if (!bParam1)
- {
- if (func_6(_p0))
- {
- return 0;
- }
- }
- return Global_1624079[_p0 /*558*/].f_11 != SCR_MINUS_ONE();
- }
- int func_6(int _p0)
- {
- if (_p0 != SCR_MINUS_ONE())
- {
- if (Global_1624079[_p0 /*558*/].f_11 != SCR_MINUS_ONE())
- {
- return Global_1624079[_p0 /*558*/].f_11 == _p0;
- }
- }
- return 0;
- }
- int func_7(int _p0)
- {
- int iVar0;
- if (SCR_IS_VALUE_VALID(_p0))
- {
- iVar0 = func_8(_p0);
- if ((iVar0 == 3 || iVar0 == 4) || iVar0 == 5)
- {
- return 1;
- }
- }
- return 0;
- }
- int func_8(int _p0)
- {
- if (_p0 != SCR_MINUS_ONE())
- {
- return Global_1589291[_p0 /*770*/].f_273.f_249;
- }
- return 0;
- }
- int SCR_IS_VALUE_VALID(int _p0)
- {
- if (_p0 != SCR_MINUS_ONE())
- {
- return Global_1589291[_p0 /*770*/].f_273.f_249 != 0;
- }
- return 0;
- }
- void SCR_SET_FAKE_POSITION(int _p0)
- {
- vector3 _pos;
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- HUD::_SET_PLAYER_BLIP_POSITION_THIS_FRAME(_pos.x, _pos.y);
- switch (_p0)
- {
- case 0:
- break;
- case 1:
- break;
- case 2:
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- HUD::_SET_PLAYER_BLIP_POSITION_THIS_FRAME(_pos.x, _pos.y);
- break;
- case 3:
- HUD::SET_RADAR_AS_EXTERIOR_THIS_FRAME();
- break;
- case 4:
- HUD::SET_RADAR_AS_EXTERIOR_THIS_FRAME();
- break;
- }
- }
- int SCR_GET_RADAR_ZOOM_FROM_Z(int _p0)
- {
- vector3 _pos;
- switch (_p0)
- {
- case 0:
- return 0;
- break;
- case 1:
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- if (_pos.z < 9.7796f)
- {
- return 0;
- }
- else if (_pos.z > 9.7796f && _pos.z < 16f)
- {
- return 1;
- }
- else
- {
- return 2;
- }
- break;
- case 2:
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- if (_pos.z < 178.9f)
- {
- return 0;
- }
- else if (_pos.z > 178.9f && _pos.z < 188.7f)
- {
- return 1;
- }
- else
- {
- return 2;
- }
- break;
- case 3:
- return 0;
- break;
- case 4:
- return 0;
- break;
- }
- return 0;
- }
- int SCR_GET_FAKE_INTERIOR_ZERO(int _p0)
- {
- switch (_p0)
- {
- case 0:
- return 0;
- break;
- case 1:
- return 0;
- break;
- case 2:
- return 0;
- break;
- case 3:
- return 0;
- break;
- case 4:
- return 0;
- break;
- }
- return 0;
- }
- char* SCR_GET_FAKE_INTERIOR_NAME(int _p0)
- {
- switch (_p0)
- {
- case 0:
- return "V_FakeBoatPO1SH2A";
- break;
- case 1:
- return "V_FakeWarehousePO103";
- break;
- case 2:
- return "V_FakeKortzCenter";
- break;
- case 3:
- return "V_FakePrison";
- break;
- case 4:
- return "V_FakeMilitaryBase";
- break;
- }
- return "";
- }
- float SCR_GET_FAKE_INTERIOR_ROOM_ANGLE(int _p0, int _p1)
- {
- switch (_p0)
- {
- case 0:
- switch (_p1)
- {
- case 0:
- return 28.125f;
- break;
- }
- break;
- case 1:
- switch (_p1)
- {
- case 0:
- return 32.6875f;
- break;
- case 1:
- return 13.1875f;
- break;
- case 2:
- return 16.25f;
- break;
- case 3:
- return 21.75f;
- break;
- }
- break;
- case 2:
- switch (_p1)
- {
- case 0:
- return 95f;
- break;
- case 1:
- return 78.75f;
- break;
- case 2:
- return 70.6875f;
- break;
- case 3:
- return 64.4375f;
- break;
- case 4:
- return 32.375f;
- break;
- case 5:
- return 19f;
- break;
- case 6:
- return 19f;
- break;
- case 7:
- return 19.78125f;
- break;
- case 8:
- return 32.0625f;
- break;
- case 9:
- return 35.8125f;
- break;
- case 10:
- return 30.5f;
- break;
- }
- break;
- case 3:
- switch (_p1)
- {
- case 0:
- return 3000f;
- break;
- }
- break;
- case 4:
- switch (_p1)
- {
- case 0:
- return 1500f;
- break;
- }
- break;
- }
- return 0f;
- }
- Vector3 SCR_GET_FAKE_INTERIOR_ROOM_POSITIONS(int _p0, int _p1)
- {
- switch (_p0)
- {
- case 0:
- switch (_p1)
- {
- case 0:
- return 1240.537f, -3057.289f, 40.75164f;
- break;
- }
- break;
- case 1:
- switch (_p1)
- {
- case 0:
- return 34.27837f, -2654.244f, 20.9423f;
- break;
- case 1:
- return 13.93163f, -2654.561f, 14.44239f;
- break;
- case 2:
- return 55.59572f, -2667.499f, 10.82245f;
- break;
- case 3:
- return 34.5866f, -2746.387f, 10.95006f;
- break;
- }
- break;
- case 2:
- switch (_p1)
- {
- case 0:
- return -2169.17f, 256.7264f, 203.4081f;
- break;
- case 1:
- return -2216.394f, 329.4761f, 201.3617f;
- break;
- case 2:
- return -2345.353f, 350.7882f, 189.6522f;
- break;
- case 3:
- return -2288.097f, 388.9909f, 200.9045f;
- break;
- case 4:
- return -2310.263f, 406.638f, 200.9041f;
- break;
- case 5:
- return -2169.221f, 260.5679f, 202.4294f;
- break;
- case 6:
- return -2258.778f, 166.9506f, 202.8318f;
- break;
- case 7:
- return -2236.973f, 285.5958f, 203.0395f;
- break;
- case 8:
- return -2211.362f, 303.6741f, 214.9323f;
- break;
- case 9:
- return -2282.098f, 383.0904f, 201.0395f;
- break;
- case 10:
- return -2277.93f, 356.4442f, 201.1015f;
- break;
- }
- break;
- case 3:
- switch (_p1)
- {
- case 0:
- return 200f, 2600f, -5f;
- break;
- }
- break;
- case 4:
- switch (_p1)
- {
- case 0:
- return -1451.205f, 2689.44f, -37.62654f;
- break;
- }
- break;
- }
- return POSITION_ZERO;
- }
- Vector3 SCR_GET_FAKE_INTERIOR_ROOM_POSITIONS2(int _p0, int _p1)
- {
- switch (_p0)
- {
- case 0:
- switch (_p1)
- {
- case 0:
- return 1240.535f, -2880.354f, -19.96489f;
- break;
- }
- break;
- case 1:
- switch (_p1)
- {
- case 0:
- return 34.15308f, -2747.067f, 1.137565f;
- break;
- case 1:
- return 13.95777f, -2700.626f, 5.046232f;
- break;
- case 2:
- return 55.61185f, -2687.681f, 5.005801f;
- break;
- case 3:
- return 34.56926f, -2759.479f, -0.030933f;
- break;
- }
- break;
- case 2:
- switch (_p1)
- {
- case 0:
- return -2317.38f, 191.6319f, 165.4037f;
- break;
- case 1:
- return -2357.995f, 264.0297f, 162.7988f;
- break;
- case 2:
- return -2261.433f, 387.3963f, 154.3522f;
- break;
- case 3:
- return -2326.399f, 408.3378f, 140.3182f;
- break;
- case 4:
- return -2304.617f, 460.2127f, 140.2147f;
- break;
- case 5:
- return -2150.825f, 216.4168f, 162.8012f;
- break;
- case 6:
- return -2172.765f, 203.5957f, 167.4135f;
- break;
- case 7:
- return -2191.036f, 305.961f, 159.625f;
- break;
- case 8:
- return -2227.613f, 340.0587f, 165.1357f;
- break;
- case 9:
- return -2244.41f, 399.5764f, 137.5101f;
- break;
- case 10:
- return -2243.261f, 371.4072f, 137.2722f;
- break;
- }
- break;
- case 3:
- switch (_p1)
- {
- case 0:
- return 3200f, 2600f, 3000f;
- break;
- }
- break;
- case 4:
- switch (_p1)
- {
- case 0:
- return -2841.107f, 3506.837f, 1000.474f;
- break;
- }
- break;
- }
- return POSITION_ZERO;
- }
- int SCR_GET_FAKE_INTERIOR_ROOM_COUNT(int _p0)
- {
- switch (_p0)
- {
- case 0:
- return 1;
- break;
- case 1:
- return 4;
- break;
- case 2:
- return 11;
- break;
- case 3:
- return 1;
- break;
- case 4:
- return 1;
- break;
- }
- return 0;
- }
- int SCR_GET_FAKE_INTERIOR_RANGE(int _p0)
- {
- switch (_p0)
- {
- case 0:
- return 10000;
- break;
- case 1:
- return 10000;
- break;
- case 2:
- return 250000;
- break;
- case 3:
- return 9000000;
- break;
- case 4:
- return 2250000;
- break;
- }
- return 0;
- }
- Vector3 SCR_GET_FAKE_INTERIOR_POSITION(int _p0)
- {
- switch (_p0)
- {
- case 0:
- return 1240f, -2970f, 12.2f;
- break;
- case 1:
- return 40f, -2720f, 12f;
- break;
- case 2:
- return -2250f, 300f, 182.2f;
- break;
- case 3:
- return 1700f, 2580f, 80f;
- break;
- case 4:
- return -2250f, 3100f, 80f;
- break;
- }
- return POSITION_ZERO;
- }
- int SCR_ONE(int _p0)
- {
- switch (_p0)
- {
- case 0:
- break;
- case 1:
- break;
- case 2:
- break;
- case 3:
- break;
- case 4:
- break;
- }
- return 1;
- }
- void SCR_ITERATE_INTERIOR_STEP()
- {
- vector3 _pos;
- CURRENT_ITERATED_INTERIOR++;
- if (CURRENT_ITERATED_INTERIOR > 4)
- {
- CURRENT_ITERATED_INTERIOR = 0;
- }
- if (CURRENT_ITERATED_INTERIOR != PREVIOUS_ITERATED_INTERIOR)
- {
- if (PREVIOUS_ITERATED_INTERIOR == -1)
- {
- PREVIOUS_ITERATED_INTERIOR = CURRENT_ITERATED_INTERIOR;
- }
- else
- {
- _pos = { ENTITY::GET_ENTITY_COORDS(LOCAL_ENTITY, false) };
- if (SYSTEM::VDIST2(SCR_GET_FAKE_INTERIOR_POSITION(CURRENT_ITERATED_INTERIOR), _pos) < SYSTEM::VDIST2(SCR_GET_FAKE_INTERIOR_POSITION(PREVIOUS_ITERATED_INTERIOR), _pos))
- {
- PREVIOUS_ITERATED_INTERIOR = CURRENT_ITERATED_INTERIOR;
- }
- }
- }
- }
- var SCR_GET_Global_2359302_f_2()
- {
- return Global_2359302.f_2;
- }
- int func_23(int _p0)
- {
- if (func_25(_p0, 0))
- {
- return 1;
- }
- if (func_24())
- {
- if (_p0 == PLAYER::PLAYER_ID())
- {
- return 1;
- }
- }
- if (MISC::IS_BIT_SET(Global_2423644[_p0 /*406*/].f_191, 2))
- {
- return 1;
- }
- return 0;
- }
- bool func_24()
- {
- return MISC::IS_BIT_SET(Global_2359302, 3);
- }
- bool func_25(int _p0, int _p1)
- {
- bool bVar0;
- if (_p0 == PLAYER::PLAYER_ID())
- {
- bVar0 = func_26(-1, 0) == 8;
- }
- else
- {
- bVar0 = Global_1589291[_p0 /*770*/].f_211 == 8;
- }
- if (_p1 == 1)
- {
- if (NETWORK::NETWORK_IS_PLAYER_ACTIVE(_p0))
- {
- bVar0 = PLAYER::GET_PLAYER_TEAM(_p0) == 8;
- }
- }
- return bVar0;
- }
- int func_26(int _p0, bool bParam1)
- {
- int iVar0;
- int iVar1;
- iVar1 = _p0;
- if (iVar1 == -1)
- {
- iVar1 = SCR_GET_Global_1312736();
- }
- if (Global_1312834[iVar1] == 1)
- {
- if (bParam1)
- {
- }
- iVar0 = 8;
- }
- else
- {
- iVar0 = Global_1312730[iVar1];
- if (bParam1)
- {
- }
- }
- return iVar0;
- }
- int SCR_GET_Global_1312736()
- {
- return Global_1312736;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement