Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 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,"",'
  17. (surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']);
  18.  
  19. //Rob person
  20. life_actions pushBack (player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'
  21. !isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable ["robbed",false]) ']);
  22. };
  23.  
  24. //Cops
  25. case west: { };
  26. //insigne de police
  27. life_actions = life_actions + [player addAction["<t color='#00FF00'>Insigne de police</t>",life_fnc_copShowLicense,"",1,false,true,"",' playerSide == west && !isNull cursorTarget && cursorTarget isKindOf "Man" ']];
  28. };
  29.  
  30. //EMS
  31. case independent: { };
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement