Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
weapon check removal
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkis-scrts committed Aug 5, 2023
1 parent 97bceb9 commit d3d1499
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
36 changes: 12 additions & 24 deletions A3A/addons/core/functions/REINF/fn_reinfPlayer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,18 @@ if (_costs > _resourcesFIA) exitWith {[localize "STR_A3A_reinf_reinfPlayer_heade

if ((count units group player) + (count units stragglers) > 9) exitWith {[localize "STR_A3A_reinf_reinfPlayer_header", localize "STR_A3A_reinf_reinfPlayer_full_squad"] call A3A_fnc_customHint;};

private _weaponHM = createHashMapFromArray [
[A3A_faction_reb get "unitSniper", "SniperRifles"],
[A3A_faction_reb get "unitLAT", "RocketLaunchers"],
[A3A_faction_reb get "unitMG", "MachineGuns"],
[A3A_faction_reb get "unitGL", "GrenadeLaunchers"],
[A3A_faction_reb get "unitAA", "MissileLaunchersAA"],
[A3A_faction_reb get "unitAT", "MissileLaunchersAT"]
];

if (A3A_rebelGear getOrDefault [_weaponHM getOrDefault [_typeUnit, ""], false] isEqualTo []) exitWith {
[localize "STR_A3A_reinf_reinfPlayer_header", localize "STR_A3A_reinf_reinfPlayer_no_weapons_equip"] call A3A_fnc_customHint;
};

private _weaponHM = createHashMapFromArray [
[A3A_faction_reb get "unitSniper", "SniperRifles"],
[A3A_faction_reb get "unitLAT", "RocketLaunchers"],
[A3A_faction_reb get "unitMG", "MachineGuns"],
[A3A_faction_reb get "unitGL", "GrenadeLaunchers"],
[A3A_faction_reb get "unitAA", "MissileLaunchersAA"],
[A3A_faction_reb get "unitAT", "MissileLaunchersAT"]];

if (A3A_rebelGear getOrDefault [_weaponHM getOrDefault [_typeUnit, ""], false] isEqualTo []) exitWith {
[localize "STR_A3A_reinf_reinfPlayer_header", localize "STR_A3A_reinf_reinfPlayer_no_weapons_equip"] call A3A_fnc_customHint;
};
// private _weaponHM = createHashMapFromArray [
// [A3A_faction_reb get "unitSniper", "SniperRifles"],
// [A3A_faction_reb get "unitLAT", "RocketLaunchers"],
// [A3A_faction_reb get "unitMG", "MachineGuns"],
// [A3A_faction_reb get "unitGL", "GrenadeLaunchers"],
// [A3A_faction_reb get "unitAA", "MissileLaunchersAA"],
// [A3A_faction_reb get "unitAT", "MissileLaunchersAT"]
// ];

// if (A3A_rebelGear getOrDefault [_weaponHM getOrDefault [_typeUnit, ""], false] isEqualTo []) exitWith {
// [localize "STR_A3A_reinf_reinfPlayer_header", localize "STR_A3A_reinf_reinfPlayer_no_weapons_equip"] call A3A_fnc_customHint;
// };

private _unit = [group player, _typeUnit, position player, [], 0, "NONE"] call A3A_fnc_createUnit;

Expand Down
1 change: 1 addition & 0 deletions ForkChangelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Fixed no initialization of vehicles bought from vehicle box or Vehicle Black Market
- Fixed automatic task failure when unit arrives at custom outpost
- Fixed no price increase appliance on rebel units soldiers after skill training
- Disabled weapon quantity check per class on recruit
- Revive time default value changed from 12 to 16 seconds, medics revive twice faster

## 2.2
Expand Down

0 comments on commit d3d1499

Please sign in to comment.