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

Remove AI handguns by default #216

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/addons/*.pbo
Binary file added Build.exe
Binary file not shown.
Binary file added SwiftPbo.dll
Binary file not shown.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions admiral/admiral.h → addons/admiral/admiral.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Admiral {
canSpawnOnRoof = 1;
allowCrewInImmobile = 1;
cargoUnloadInCombat = 0;
removeHandguns = 1;
transferNonPlayableGroupsToHc = 1; // Non-playable groups are that do not have playable units in them
groupSpawnDelay = 5; // Delay in seconds between spawning groups

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ adm_common_fnc_setGear = {
params ["_unit"];

[_unit] call adm_common_fnc_assignNVG;
[_unit] call adm_common_fnc_removeHandgun;
};

adm_common_fnc_assignNVG = {
Expand All @@ -148,6 +149,18 @@ adm_common_fnc_assignNVG = {
};
};

adm_common_fnc_removeHandgun = {
params ["_unit"];

private _handgun = handgunWeapon _unit;

if (adm_removeHandguns) then {
if (_handgun isNotEqualTo "") then {
_unit removeWeapon _handgun;
};
};
};

adm_common_fnc_getZoneTemplateSkillValues = {
params ["_zoneTemplate"];

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ adm_settings_fnc_init = {
adm_canSpawnOnRoof = ["canSpawnOnRoof"] call adm_config_fnc_getBool;
adm_allowCrewInImmobile = ["allowCrewInImmobile"] call adm_config_fnc_getBool;
adm_cargoUnloadInCombat = ["cargoUnloadInCombat"] call adm_config_fnc_getBool;
adm_removeHandguns = ["removeHandguns"] call adm_config_fnc_getBool;
adm_groupSpawnDelay = ["groupSpawnDelay"] call adm_config_fnc_getNumber;
adm_lastGroupSpawnTime = 0;

Expand Down
4 changes: 2 additions & 2 deletions admiral/unit_templates.h → addons/admiral/unit_templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class UnitTemplates {
crewmen[] = {"MNP_ROK_Soldier_O"};
pilots[] = {"MNP_ROK_Soldier_O"};
technicals[] = {"CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_Mk19_USA_DES"};
armour[] = {"CUP_B_M113A1_olive_USA", "CUP_B_M113A3_olive_USA", "CUP_B_M163_USA"};
armour[] = {"CUP_B_M113A1_olive_USA", "CUP_B_M113A3_olive_USA"};
th[] = {"CUP_B_UH60S_USN"};
ah[] = {"CUP_B_AH1Z_Dynamic_USMC"};
};
Expand All @@ -186,7 +186,7 @@ class UnitTemplates {
crewmen[] = {"MNP_ROKMC_A"};
pilots[] = {"MNP_ROKMC_A"};
technicals[] = {"CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_M2_USA_DES", "CUP_B_nM1025_Mk19_USA_DES"};
armour[] = {"CUP_B_M113A1_olive_USA", "CUP_B_M113A3_olive_USA", "CUP_B_M163_USA"};
armour[] = {"CUP_B_M113A1_olive_USA", "CUP_B_M113A3_olive_USA"};
th[] = {"CUP_B_UH60S_USN"};
ah[] = {"CUP_B_AH64D_DL_USA"};
};
Expand Down
File renamed without changes.
File renamed without changes.