Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void func_2479(int iParam0, int iParam1)
- {
- int iVar0;
- int iVar1;
- if (func_3067() != 20 || iLocal_195[0] != PLAYER::PLAYER_ID())
- {
- return;
- }
- if (iParam0 < 6)
- {
- if (!PED::IS_PED_INJURED(iParam1))
- {
- unk_0x46C1483ABEFC1242(iParam1);
- if (func_42(&(Local_327.f_831)))
- {
- if (func_713())
- {
- if (!func_2478(iParam0, NETWORK::PARTICIPANT_ID(), 6))
- {
- if (ENTITY_GET_ENTITY_ALPHA(iParam1) == 255)
- {
- if (func_718(iParam0))
- {
- func_2483(iParam0, iParam1, 0);
- func_2477(iParam0, 6);
- }
- }
- }
- if (func_161(Local_327.f_92[iParam0 /*13*/]))
- {
- if (func_2() != 0)
- {
- func_2482(iParam1);
- func_184(&(Local_327.f_92[iParam0 /*13*/]));
- }
- if ((func_39(&(Local_327.f_831), 5000, 0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
- {
- if (!func_14(193))
- {
- func_38(&(Local_327.f_92[iParam0 /*13*/].f_10));
- if (iParam0 == 5)
- {
- func_1133(193);
- }
- }
- if (!func_2478(iParam0, NETWORK::PARTICIPANT_ID(), 7))
- {
- if ((func_2480(iParam0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
- {
- func_2483(iParam0, iParam1, 1);
- func_2477(iParam0, 7);
- }
- }
- if ((func_2480(iParam0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
- {
- iVar0 = ENTITY_GET_ENTITY_ALPHA(iParam1);
- if (iVar0 > 0)
- {
- iVar0 = (iVar0 - 3);
- if (iVar0 <= 0)
- {
- iVar0 = 0;
- }
- ENTITY::SET_ENTITY_ALPHA(iParam1, iVar0, false);
- }
- else
- {
- func_184(&(Local_327.f_92[iParam0 /*13*/]));
- }
- }
- }
- else
- {
- iVar1 = ENTITY_GET_ENTITY_ALPHA(iParam1);
- if (iVar1 < 255)
- {
- if (iVar1 == 0)
- {
- func_2482(iParam1);
- GAMEPLAY::_CREATE_LIGHTNING_THUNDER();
- }
- iVar1 += 5;
- if (iVar1 >= 255)
- {
- ENTITY::RESET_ENTITY_ALPHA(iParam1);
- }
- else
- {
- ENTITY::SET_ENTITY_ALPHA(iParam1, iVar1, false);
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement