Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_8384()
- {
- int iVar0;
- int iVar1;
- struct<2> Var2;
- bool bVar3;
- struct<14> Var4;
- struct<14> Var5;
- var uVar6;
- if (Global_1595693[PLAYER::PLAYER_ID() /*680*/] != 0)
- {
- if (func_8394())
- {
- if (!func_8393())
- {
- func_8392();
- }
- }
- else if (func_8393())
- {
- func_8391();
- }
- }
- bVar3 = func_7023();
- if ((Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_215 || func_8390()) || bVar3)
- {
- iVar0 = NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), Global_2436181.f_70);
- if (bVar3)
- {
- iVar1 = Global_262145.f_12014;
- StringCopy(&Var2, "GB_PIM_GHOST", 16);
- }
- else
- {
- iVar1 = 60000;
- StringCopy(&Var2, "GC_OTR_TMR", 16);
- }
- if (iVar0 >= 5000)
- {
- if (!bVar3)
- {
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 2))
- {
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 3))
- {
- if (NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), Global_2436181.f_72) >= 5000)
- {
- Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_215 = 0;
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 2);
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 3);
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 1))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 1);
- }
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 4))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 4);
- }
- return;
- }
- }
- else
- {
- Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_215 = 0;
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 2);
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 1))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 1);
- }
- return;
- }
- }
- }
- else if (MISC::IS_BIT_SET(Global_2512808.f_4529, 3))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 3);
- }
- }
- if (iVar0 > iVar1 || func_901(PLAYER::PLAYER_ID()) == 148)
- {
- Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_215 = 0;
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 1))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 1);
- }
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 2))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 2);
- }
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 3))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 3);
- }
- if (MISC::IS_BIT_SET(Global_2512808.f_4529, 4))
- {
- MISC::CLEAR_BIT(&(Global_2512808.f_4529), 4);
- }
- iLocal_8058 = 10000;
- }
- else
- {
- func_3829((iVar1 - iVar0), &Var2, 0, 0, -1, 0, 13, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
- if (iVar0 >= iLocal_8058)
- {
- if (!MISC::IS_BIT_SET(Global_2512808.f_4529, 3))
- {
- if (bVar3)
- {
- if (!MISC::IS_BIT_SET(Global_2512808.f_4529, 4))
- {
- if (func_8389(PLAYER::PLAYER_ID()))
- {
- Var4.f_2 = 721974928;
- StringCopy(&(Var4.f_6), func_4947(), 16);
- func_3895(Var4, func_52(1, 1));
- iLocal_8058 += 10000;
- MISC::SET_BIT(&(Global_2512808.f_4529), 4);
- }
- }
- }
- else
- {
- uVar6 = func_8386(6);
- Var5.f_2 = -15804795;
- Var5.f_3 = uVar6;
- Var5.f_4 = func_8385();
- func_3895(Var5, func_52(0, 1));
- iLocal_8058 += 10000;
- }
- }
- }
- }
- }
- if (Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_218)
- {
- iVar0 = NETWORK::GET_TIME_DIFFERENCE(NETWORK::GET_NETWORK_TIME(), Global_2436181.f_71);
- if (iVar0 > 60000)
- {
- Global_2422736[PLAYER::PLAYER_ID() /*420*/].f_218 = 0;
- }
- else
- {
- func_3829((60000 - iVar0), "GC_RE_TMR", 0, 0, -1, 0, 13, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement