You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: addons/overthrow_main/functions/actions/fn_fastTravel.sqf
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
private_ft= server getVariable ["OT_fastTravelType",1];
2
+
private_diff= server getVariable ["OT_difficulty",1];
3
+
private_ftrules= server getVariable ["OT_fastTravelRules",_diff];
2
4
if(!OT_adminMode &&_ft>1) exitWith {hint "Fast Travel is disabled"};
3
5
4
6
if!(captive player) exitWith {hint "You cannot fast travel while wanted"};
5
7
if!("ItemMap" in assignedItems player) exitWith {hint "You need a map to fast travel"};
6
8
7
-
private_diff= server getVariable ["OT_difficulty",1];
8
-
if(_diff>0&&!((primaryWeapon player) isEqualTo""&& (secondaryWeapon player) isEqualTo""&& (handgunWeapon player) isEqualTo"")) exitWith {hint "You cannot fast travel holding a weapon"};
9
+
if(_ftrules>0&&!((primaryWeapon player) isEqualTo""&& (secondaryWeapon player) isEqualTo""&& (handgunWeapon player) isEqualTo"")) exitWith {hint "You cannot fast travel holding a weapon"};
9
10
10
11
_foundweapon=false;
11
12
{
@@ -26,10 +27,10 @@ if((vehicle player) != player) then {
26
27
if(_x in OT_allDrugs) exitWith {_hasdrugs=true};
27
28
}foreach(itemCargo vehicleplayer);
28
29
29
-
if(_hasdrugs) exitWith {hint "You cannot fast travel while carrying drugs";_exit=true};
30
+
if(_hasdrugs&&_ftrules>0) exitWith {hint "You cannot fast travel while carrying drugs";_exit=true};
30
31
if (driver (vehicleplayer) !=player) exitWith {hint "You are not the driver of this vehicle";_exit=true};
31
-
if({!captive _x} count (crew vehicleplayer) !=0) exitWith {hint "There are wanted people in this vehicle";_exit=true};
32
-
if(_diff>1&& ((vehicleplayer) in (OT_allVehicleThreats + OT_allHeliThreats + OT_allPlaneThreats))) exitWith {hint "You cannot fast travel in an offensive vehicle";_exit=true};
32
+
if({!captive _x&& alive _x} count (crew vehicleplayer) !=0) exitWith {hint "There are wanted people in this vehicle";_exit=true};
33
+
if(_ftrules>1&& ((vehicleplayer) in (OT_allVehicleThreats + OT_allHeliThreats + OT_allPlaneThreats))) exitWith {hint "You cannot fast travel in an offensive vehicle";_exit=true};
0 commit comments