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

UAV support frequency fix #416

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 6 additions & 3 deletions A3A/addons/core/functions/Supports/fn_SUP_UAV.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ private _planeType = selectRandom (Faction(_side) get "uavsAttack");
private _aggro = if(_side == Occupants) then {aggressionOccupants} else {aggressionInvaders};
if (_delay < 0) then { _delay = (0.5 + random 1) * (300 - 15*tierWar - 1*_aggro) };

// Well, it doesn't actually hit anything...
// ["_side", "_supptype", "_basetype", "_target", "_endtime", "_duration", "_power"]
//A3A_supportStrikes pushBack [_side, "UAV", "TARGET", _target, time + 1200, 1200, 200];
// Well, it does actually hit
private _targArray = [];
if (_target isEqualType objNull and {!isNull _target}) then {
A3A_supportStrikes pushBack [_side, "TARGET", _target, time + 1200, 1200, 200];
_targArray = [_target, _targPos];
};
SilenceIsFatto marked this conversation as resolved.
Show resolved Hide resolved

// name, side, suppType, center, radius, targets
private _suppData = [_supportName, _side, "UAV", _targPos, 1000, [objNull, _targPos]];
Expand Down
4 changes: 2 additions & 2 deletions A3A/addons/core/functions/Supports/fn_initSupports.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ private _initData = [
["CARPETBOMBS", "AREA", 0.5, 0.1, 200, 0, "u", ""], // balanced against airstrikes
["GUNSHIP", "AREA", 0.2, 0.1, 0, 80, "", "vehiclesPlanesGunship"], //u // uh. Does AREA work for this? Only lasts 5 minutes so maybe...
["SAM", "TARGET", 1.0, 1.0, 0, 100, "u", ""], // balanced against ASF
["CRUISEMISSILE", "AREA", 0.3, 0.1, 200, 100, "u", ""],
["CRUISEMISSILE", "AREA", 0.4, 0.1, 150, 100, "u", ""],
wersal454 marked this conversation as resolved.
Show resolved Hide resolved
["ORBITALSTRIKE", "AREA", 0.2, 0.0, 300, 0, "f", ""],
["UAV", "TARGET", 1.0, 0.4, 0, 80, "", "uavsAttack"]
["UAV", "TARGET", 0.6, 0.4, 0, 80, "", "uavsAttack"]
wersal454 marked this conversation as resolved.
Show resolved Hide resolved
];

// Generate support type hashmap for a faction, suppType -> [baseType, weight, effRadius, strikepower]
Expand Down