From 8a056e826fc3fe7c590dd1dc69c80b9a6042c6ea Mon Sep 17 00:00:00 2001 From: wersal454 Date: Mon, 8 Jul 2024 21:39:17 +0300 Subject: [PATCH] no vaping in WW2 --- A3A/addons/core/functions/AI/fn_paradrop.sqf | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/A3A/addons/core/functions/AI/fn_paradrop.sqf b/A3A/addons/core/functions/AI/fn_paradrop.sqf index dca5feab8e..b6f2760ef9 100644 --- a/A3A/addons/core/functions/AI/fn_paradrop.sqf +++ b/A3A/addons/core/functions/AI/fn_paradrop.sqf @@ -93,12 +93,17 @@ if(currentWaypoint _groupPilot > 0) then waitUntil {sleep 0.25; getPosATL _this # 2 < 120}; private _chute = createVehicle ["Steerable_Parachute_F", getPosATL _this, [], 0, "CAN_COLLIDE"]; _this moveInDriver _chute; - private _smokeGrenade = selectRandom allSmokeGrenades; - private _smoke = _smokeGrenade createVehicle (getPosATL _this); - _smoke attachTo [_this,[0,0,0]]; - waitUntil { sleep 1; isTouchingGround _this}; - deleteVehicle _chute; - detach _smoke; + if !("lowTech" in A3A_factionEquipFlags) then { + private _smokeGrenade = selectRandom allSmokeGrenades; + private _smoke = _smokeGrenade createVehicle (getPosATL _this); + _smoke attachTo [_this,[0,0,0]]; + waitUntil { sleep 1; isTouchingGround _this}; + deleteVehicle _chute; + detach _smoke; + }else{ + waitUntil { sleep 1; isTouchingGround _this}; + deleteVehicle _chute; + }; }; sleep 0.5; } forEach units _groupJumper; @@ -139,4 +144,4 @@ if (_vehType in FactionGet(all,"vehiclesHelisAttack") + FactionGet(all,"vehicles private _wp2 = _groupPilot addWaypoint [_originPosition, 0]; _wp2 setWaypointType "MOVE"; _wp2 setWaypointSpeed "FULL"; -_wp2 setWaypointStatements ["true", "if !(local this) exitWith {}; deleteVehicle (vehicle this); {deleteVehicle _x} forEach thisList"]; \ No newline at end of file +_wp2 setWaypointStatements ["true", "if !(local this) exitWith {}; deleteVehicle (vehicle this); {deleteVehicle _x} forEach thisList"];