Skip to content

Commit

Permalink
Gear edits, use toUpper
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuel committed Jan 4, 2016
1 parent 296366a commit 0a987e8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions FP_Template.VR/gear/loadouts/empty_template.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _COMMON_HEADGEARS = [];
_COMMON_BP = "";

_COMMON_NVG = ""; // can be: pvs14, pvs15, gen1, gen2, gen3, gen4, wide, blufor, opfor, indep. check fn_addNVG.sqf
_COMMON_ITEMS = ["ACRE_PRC343", ["HandGrenade", 2], ["SmokeShellGreen", 2], "ItemMap","ItemCompass","ItemWatch", "ItemRadio", ["ACE_fieldDressing", 2], "ACE_Morphine"];
_COMMON_ITEMS = ["ItemMap","ItemCompass","ItemWatch", "ACRE_PRC343", ["HandGrenade", 2], ["SmokeShellGreen", 2], ["ACE_fieldDressing", 2], "ACE_Morphine"];

_COMMON_RIFLE = "";
_COMMON_RIFLE_ATTACHMENTS = [];
Expand Down Expand Up @@ -94,11 +94,11 @@ _ENGI_BP_ITEMS = [["ToolKit", 1], ["SatchelCharge_Remote_Mag", 1], ["DemoCharge_
// ==================
// Assign the stuff
// ==================
switch _kit do {
switch (toUpper _kit) do {

case "PLT"; // fall through to SQL
case "SQL": {
private _h = if (_kit == "PLT") then {_PLT_HEADGEAR} else {_SQL_HEADGEAR};
private _h = [_PLT_HEADGEAR, _SQL_HEADGEAR] select (_kit == "SQL");

[_unit, [_SQL_UNIFORM, _SQL_VEST, _h, _SQL_BP]] call FP_fnc_addContainers;
[_unit, [[_COMMON_MAG_GL, 7], [_COMMON_MAG_GL_T, 4], _COMMON_GL_NADES]] call FP_fnc_addToContainers;
Expand All @@ -119,7 +119,7 @@ switch _kit do {
};

case "RIFLEMAN": {
[_unit, [_COMMON_UNIFORMS, _MED_VEST, _MED_HEADGEAR, _MED_BP]] call FP_fnc_addContainers;
[_unit, [_COMMON_UNIFORMS, _MED_VEST, _MED_HEADGEAR, _COMMON_BP]] call FP_fnc_addContainers;
[_unit, [[_COMMON_MAG, 6], [_COMMON_MAG_T, 4]]] call FP_fnc_addToContainers;
[_unit, [_COMMON_RIFLE, _COMMON_RIFLE_ATTACHMENTS]] call FP_fnc_addWeapon;
};
Expand Down Expand Up @@ -201,9 +201,12 @@ switch _kit do {
// ==================
// Runs for everyone
// ==================

[_unit, _COMMON_ITEMS] call FP_fnc_addToContainers;

[_unit, [_COMMON_PISTOL_MAG, 2]] call FP_fnc_addToContainers;
[_unit, _COMMON_PISTOL] call FP_fnc_addWeapon;

[_unit, _COMMON_NVG] call FP_fnc_addNVG;
if (_COMMON_NVG != "") then {
[_unit, _COMMON_NVG] call FP_fnc_addNVG;
};
2 changes: 1 addition & 1 deletion FP_Template.VR/gear/loadouts/m90_g3.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ _ENGI_BP_ITEMS = [["SatchelCharge_Remote_Mag", 2], ["DemoCharge_Remote_Mag", 2]]
// ==================
// Assign the stuff
// ==================
switch _kit do {
switch (toUpper _kit) do {

case "PLT"; // fall through to SQL
case "SQL": {
Expand Down
2 changes: 1 addition & 1 deletion FP_Template.VR/gear/loadouts/specops_divers_mp5.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ _SQL_ATTACHMENTS = ["hlc_muzzle_Tundra", "RH_peq2_top", "RH_LTdocterl"];
// ==================
// Assign the stuff
// ==================
switch _kit do {
switch (toUpper _kit) do {

case "PLT"; // fall through to SQL
case "SQL": {
Expand Down
2 changes: 1 addition & 1 deletion FP_Template.VR/gear/loadouts/vanilla_nato.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ _ENGI_BP_ITEMS = [["ToolKit", 1], ["SatchelCharge_Remote_Mag", 1], ["DemoCharge_
// Assign the stuff
// ==================

switch _kit do {
switch (toUpper _kit) do {

case "PLT"; // fall through to SQL
case "SQL":
Expand Down

0 comments on commit 0a987e8

Please sign in to comment.