Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. void func_2479(int iParam0, int iParam1)
  2. {
  3. int iVar0;
  4. int iVar1;
  5.  
  6. if (func_3067() != 20 || iLocal_195[0] != PLAYER::PLAYER_ID())
  7. {
  8. return;
  9. }
  10. if (iParam0 < 6)
  11. {
  12. if (!PED::IS_PED_INJURED(iParam1))
  13. {
  14. unk_0x46C1483ABEFC1242(iParam1);
  15. if (func_42(&(Local_327.f_831)))
  16. {
  17. if (func_713())
  18. {
  19. if (!func_2478(iParam0, NETWORK::PARTICIPANT_ID(), 6))
  20. {
  21. if (ENTITY_GET_ENTITY_ALPHA(iParam1) == 255)
  22. {
  23. if (func_718(iParam0))
  24. {
  25. func_2483(iParam0, iParam1, 0);
  26. func_2477(iParam0, 6);
  27. }
  28. }
  29. }
  30. if (func_161(Local_327.f_92[iParam0 /*13*/]))
  31. {
  32. if (func_2() != 0)
  33. {
  34. func_2482(iParam1);
  35. func_184(&(Local_327.f_92[iParam0 /*13*/]));
  36. }
  37. if ((func_39(&(Local_327.f_831), 5000, 0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
  38. {
  39. if (!func_14(193))
  40. {
  41. func_38(&(Local_327.f_92[iParam0 /*13*/].f_10));
  42. if (iParam0 == 5)
  43. {
  44. func_1133(193);
  45. }
  46. }
  47. if (!func_2478(iParam0, NETWORK::PARTICIPANT_ID(), 7))
  48. {
  49. if ((func_2480(iParam0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
  50. {
  51. func_2483(iParam0, iParam1, 1);
  52. func_2477(iParam0, 7);
  53. }
  54. }
  55. if ((func_2480(iParam0) || func_77(iParam0, 55)) || func_77(iParam0, 98))
  56. {
  57. iVar0 = ENTITY_GET_ENTITY_ALPHA(iParam1);
  58. if (iVar0 > 0)
  59. {
  60. iVar0 = (iVar0 - 3);
  61. if (iVar0 <= 0)
  62. {
  63. iVar0 = 0;
  64. }
  65. ENTITY::SET_ENTITY_ALPHA(iParam1, iVar0, false);
  66. }
  67. else
  68. {
  69. func_184(&(Local_327.f_92[iParam0 /*13*/]));
  70. }
  71. }
  72. }
  73. else
  74. {
  75. iVar1 = ENTITY_GET_ENTITY_ALPHA(iParam1);
  76. if (iVar1 < 255)
  77. {
  78. if (iVar1 == 0)
  79. {
  80. func_2482(iParam1);
  81. GAMEPLAY::_CREATE_LIGHTNING_THUNDER();
  82. }
  83. iVar1 += 5;
  84. if (iVar1 >= 255)
  85. {
  86. ENTITY::RESET_ENTITY_ALPHA(iParam1);
  87. }
  88. else
  89. {
  90. ENTITY::SET_ENTITY_ALPHA(iParam1, iVar1, false);
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement