Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. /**
  2. * ExileServer_util_getFragType
  3. *
  4. * Exile Mod
  5. * www.exilemod.com
  6. * © 2015 Exile Mod Team
  7. *
  8. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10. */
  11. private["_victim","_killer","_killingPlayer","_type","_victimClanId","_killerClanId"];
  12. _victim = _this select 0;
  13. _killer = _this select 1;
  14. _killingPlayer = _this select 2;
  15. _type = 0;
  16. try
  17. {
  18. if (_victim getVariable ["IsPlayingRussianRoulette", false]) then
  19. {
  20. throw 2;
  21. };
  22. if (_victim isEqualTo _killer) then
  23. {
  24. throw 1;
  25. };
  26. if ((vehicle _victim) isEqualTo _killer) then
  27. {
  28. throw 3;
  29. };
  30. if (isNull _killer) then
  31. {
  32. throw 0;
  33. };
  34. if (isNull _killingPlayer) then
  35. {
  36. throw 4;
  37. };
  38. if ((group _victim) isEqualTo (group _killingPlayer)) then
  39. {
  40. throw 5;
  41. };
  42. _victimClanId = _victim getVariable ["ExileClanID", -2];
  43. _killerClanId = _killer getVariable ["ExileClanID", -3];
  44. if (!(_victimClanId isEqualTo -1) && (_victimClanId isEqualTo _killerClanId)) then
  45. {
  46. throw 5;
  47. };
  48. if (_victim getVariable ["ExileIsBambi", false]) then
  49. {
  50. throw 6;
  51. };
  52. throw 7;
  53. }
  54. catch
  55. {
  56. _type = _exception;
  57. };
  58. _type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement