Skip to content

Commit

Permalink
Merge pull request #416 from wersal454/patch-42
Browse files Browse the repository at this point in the history
UAV support frequency fix
  • Loading branch information
SilenceIsFatto authored Dec 10, 2024
2 parents 54b0f18 + 79a3383 commit ca0a367
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
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];
};

// 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.3, 0.1, 150, 100, "u", ""],
["ORBITALSTRIKE", "AREA", 0.2, 0.0, 300, 0, "f", ""],
["UAV", "TARGET", 1.0, 0.4, 0, 80, "", "uavsAttack"]
["UAV", "TARGET", 0.4, 0.2, 0, 80, "u", "uavsAttack"]
];

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

0 comments on commit ca0a367

Please sign in to comment.