Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no vaping in WW2 #239

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions A3A/addons/core/functions/AI/fn_paradrop.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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"];
_wp2 setWaypointStatements ["true", "if !(local this) exitWith {}; deleteVehicle (vehicle this); {deleteVehicle _x} forEach thisList"];