/*
File: fn_setupActions.sqf
Description:
Master addAction file handler for all client-based actions.
*/
switch (playerSide) do {
case civilian: {
//Drop fishing net
life_actions = [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 ']];
//Rob person
life_actions = life_actions + [player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'
!isNull cursorTarget && player distance cursorTarget < 3.5 && isPlayer cursorTarget && animationState cursorTarget == "Incapacitated" && !(cursorTarget getVariable["robbed",FALSE]) ']];
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Ausweiszeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
life_actions pushBack (player addAction["Anschnallgurt anlegen",life_fnc_seatbelt,"",7,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["Anschnallgurt entfernen",life_fnc_seatbelt,"",7,false,false,"",' life_seatbelt && vehicle player != player ']);
};
case west:
{
//Warner's barriers
life_actions = life_actions + [player addAction ["Barriere",life_fnc_barriers]];
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Ausweiszeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
life_actions pushBack (player addAction["Anschnallgurt anlegen",life_fnc_seatbelt,"",7,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["Anschnallgurt entfernen",life_fnc_seatbelt,"",7,false,false,"",' life_seatbelt && vehicle player != player ']);
};
case independent:
{
//Warner's barriers
life_actions = life_actions + [player addAction ["Barriere",life_fnc_barriers]];
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Ausweiszeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
life_actions pushBack (player addAction["Anschnallgurt anlegen",life_fnc_seatbelt,"",7,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["Anschnallgurt entfernen",life_fnc_seatbelt,"",7,false,false,"",' life_seatbelt && vehicle player != player ']);
};
case east:
{
//Warner's barriers
life_actions = life_actions + [player addAction ["Barriere",life_fnc_barriers]];
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Ausweiszeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
life_actions pushBack (player addAction["Anschnallgurt anlegen",life_fnc_seatbelt,"",7,false,false,"",' !life_seatbelt && vehicle player != player ']);
life_actions pushBack (player addAction["Anschnallgurt entfernen",life_fnc_seatbelt,"",7,false,false,"",' life_seatbelt && vehicle player != player ']);
};
};