Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. //Without server
  6. [] spawn {
  7. if (!isMultiplayer) then {
  8. mydamage_eh2 = player addEventHandler ["Fired", {[player] call player_fired}];
  9. };
  10. };
  11.  
  12.  
  13. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  14. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  15. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  16.  
  17.  
  18.  
  19.  
  20. player_fired =
  21. {
  22. _unit = _this select 0;
  23. _weapons = handgunWeapon player;
  24. if (("luke_saber" == _weapons) && (_weapons == currentWeapon player)) then
  25. {
  26. trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
  27. ATTACKER = trampoline select floor random count trampoline;
  28. player playactionnow ATTACKER;
  29.  
  30. };
  31. if (("vader_saber" == _weapons) && (_weapons == currentWeapon player)) then
  32. {
  33. trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
  34. ATTACKER = trampoline select floor random count trampoline;
  35. player playactionnow ATTACKER;
  36.  
  37. };
  38. if (("maul_saber" == _weapons) && (_weapons == currentWeapon player)) then
  39. {
  40. trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
  41. ATTACKER = trampoline select floor random count trampoline;
  42. player playactionnow ATTACKER;
  43.  
  44. };
  45. if (("a3c_blue_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  46. {
  47. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  48. ATTACKER = trampoline select floor random count trampoline;
  49. player playactionnow ATTACKER;
  50.  
  51. };
  52. if (("a3c_yellow_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  53. {
  54. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  55. ATTACKER = trampoline select floor random count trampoline;
  56. player playactionnow ATTACKER;
  57.  
  58. };
  59. if (("a3c_red_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  60. {
  61. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  62. ATTACKER = trampoline select floor random count trampoline;
  63. player playactionnow ATTACKER;
  64.  
  65. };
  66. if (("a3c_green_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  67. {
  68. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  69. ATTACKER = trampoline select floor random count trampoline;
  70. player playactionnow ATTACKER;
  71.  
  72. };
  73. if (("a3c_purple_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  74. {
  75. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  76. ATTACKER = trampoline select floor random count trampoline;
  77. player playactionnow ATTACKER;
  78.  
  79. };
  80. if (("a3c_orange_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  81. {
  82. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  83. ATTACKER = trampoline select floor random count trampoline;
  84. player playactionnow ATTACKER;
  85.  
  86. };
  87. if (("a3c_white_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  88. {
  89. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  90. ATTACKER = trampoline select floor random count trampoline;
  91. player playactionnow ATTACKER;
  92.  
  93. };
  94. if (("a3c_red_unstable_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  95. {
  96. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  97. ATTACKER = trampoline select floor random count trampoline;
  98. player playactionnow ATTACKER;
  99.  
  100. };
  101. if (("a3c_blue_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  102. {
  103. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  104. ATTACKER = trampoline select floor random count trampoline;
  105. player playactionnow ATTACKER;
  106.  
  107. };
  108. if (("a3c_green_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  109. {
  110. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  111. ATTACKER = trampoline select floor random count trampoline;
  112. player playactionnow ATTACKER;
  113.  
  114. };
  115. if (("a3c_purple_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  116. {
  117. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  118. ATTACKER = trampoline select floor random count trampoline;
  119. player playactionnow ATTACKER;
  120.  
  121. };
  122. if (("a3c_orange_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  123. {
  124. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  125. ATTACKER = trampoline select floor random count trampoline;
  126. player playactionnow ATTACKER;
  127.  
  128. };
  129. if (("a3c_red_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  130. {
  131. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  132. ATTACKER = trampoline select floor random count trampoline;
  133. player playactionnow ATTACKER;
  134.  
  135. };
  136. if (("a3c_yellow_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
  137. {
  138. trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
  139. ATTACKER = trampoline select floor random count trampoline;
  140. player playactionnow ATTACKER;
  141.  
  142. };
  143. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement