Advertisement
Guest User

Cleaned file.

a guest
May 14th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.90 KB | None | 0 0
  1. /*
  2.     File: fn_setupActions.sqf
  3.     Author:
  4.  
  5.     Description:
  6.     Master addAction file handler for all client-based actions.
  7. */
  8.  
  9. life_actions = [];
  10.  
  11. switch (playerSide) do {
  12.  
  13.     // Civilian
  14.     case civilian: {
  15.         // Drop fishing net
  16.         life_actions pushBack (player addAction[localize "STR_pAct_DropFishingNet",life_fnc_dropFishingNet,"",0,false,false,"",'(surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']);
  17.         life_actions pushBack (player addAction["<t color = '#D660D6'>Put on Seatbelt</t>",life_fnc_seatbelt,"",7,false,false,"",'!life_seatbelt && vehicle player != player ']);
  18.         life_actions pushBack (player addAction["<t color = '#D660D6'>Remove Seatbelt</t>",life_fnc_seatbelt,"",7,false,false,"",'life_seatbelt && vehicle player != player ']);
  19.         // Rob person
  20.         life_actions pushBack (player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'!isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable ["robbed",false]) ']);
  21.         // Suicide
  22.         life_actions pushBack (player addAction["<t color='#FF0000'>Activate Suicide Vest</t>",life_fnc_suicideBomb,"",0,false,false,"",'vest player == "V_HarnessOGL_gry" && alive player && playerSide == civilian && !life_istazed && !(player getVariable "restrained") && !(player getVariable "Escorting") && !(player getVariable "transporting")']);
  23.         // Gang
  24.         life_actions pushBack (player addAction["<t color='#FF0000'>Capture Gang Location</t>",life_fnc_areaCapture,"",0,false,false,"",' ((typeOf cursorTarget) == "Flag_Red_F") ']);
  25.     };
  26.    
  27.     //Cops
  28.     case west: {};
  29.    
  30.     //EMS
  31.     case independent: {};
  32.  
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement