Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Without server
- [] spawn {
- if (!isMultiplayer) then {
- mydamage_eh2 = player addEventHandler ["Fired", {[player] call player_fired}];
- };
- };
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- player_fired =
- {
- _unit = _this select 0;
- _weapons = handgunWeapon player;
- if (("luke_saber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("vader_saber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("maul_saber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["GestureAxe","woodaxe_attack1","woodaxe_attack2","woodaxe_attack3","woodaxe_attack4","Gestureknife"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_blue_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_yellow_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_red_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_green_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_purple_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_orange_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_white_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_red_unstable_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_blue_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_green_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_purple_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_orange_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_red_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- if (("a3c_yellow_lance_lightsaber" == _weapons) && (_weapons == currentWeapon player)) then
- {
- trampoline = ["woodaxe_attack1","woodaxe_attack3","woodaxe_attack4"];
- ATTACKER = trampoline select floor random count trampoline;
- player playactionnow ATTACKER;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement