Skip to content

Commit

Permalink
Remove medic preslots (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibaud GALLOY <thibaud.galloy@tgy.sh>
  • Loading branch information
Thibugs and Thibaud GALLOY authored Jun 28, 2023
1 parent ecbb754 commit 2f93714
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 62 deletions.
33 changes: 3 additions & 30 deletions addons/gsri_props/lockers/Functions/fn_gearAsGcap.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,9 @@ switch (_role) do {
};

// Add containers
switch(_role) do {
default {
player forceAddUniform "GSRI_uniform_bme";
player addVest "GSRI_vest_modular_bme_accessories";
player addBackpack "GSRI_Kitbag_bme";
};
case "Medic": {
player forceAddUniform "GSRI_uniform_bme";
player addVest "GSRI_vest_modular_bme_accessories";
player addBackpack "GSRI_TacticalPack_bme";
};
};
player forceAddUniform "GSRI_uniform_bme";
player addVest "GSRI_vest_modular_bme_accessories";
player addBackpack "GSRI_Kitbag_bme";

// Add primary ammo
switch(_role) do {
Expand Down Expand Up @@ -109,24 +100,6 @@ switch(_role) do
case "Antitank": {
player addWeapon "tf47_at4_heat";
};
case "Medic": {
player addItemToBackpack "ACE_surgicalKit";
for "_i" from 1 to 30 do {
player addItemToBackpack "ACE_packingBandage";
};
for "_i" from 1 to 15 do {
player addItemToBackpack "ACE_salineIV_500";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_morphine";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_epinephrine";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_splint";
};
};
case "Grenadier": {
for "_i" from 1 to 10 do {
player addItemToBackpack "1Rnd_HE_Grenade_shell";
Expand Down
33 changes: 3 additions & 30 deletions addons/gsri_props/lockers/Functions/fn_gearAsGsri.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,9 @@ switch(_role) do
};

// Add containers
switch(_role) do {
default{
player forceAddUniform "GSRI_uniform";
player addVest "GSRI_vest_carrier_lite";
player addBackpack "GSRI_AssaultPack";
};
case "Medic": {
player forceAddUniform "GSRI_uniform";
player addVest "GSRI_vest_carrier_lite";
player addBackpack "GSRI_TacticalPack";
};
};
player forceAddUniform "GSRI_uniform";
player addVest "GSRI_vest_carrier_lite";
player addBackpack "GSRI_AssaultPack";

// Add primary ammo
switch(_role) do {
Expand Down Expand Up @@ -102,24 +93,6 @@ switch(_role) do {
case "Antitank": {
player addWeapon "tf47_at4_heat";
};
case "Medic": {
player addItemToBackpack "ACE_surgicalKit";
for "_i" from 1 to 30 do {
player addItemToBackpack "ACE_packingBandage";
};
for "_i" from 1 to 15 do {
player addItemToBackpack "ACE_salineIV_500";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_morphine";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_epinephrine";
};
for "_i" from 1 to 10 do {
player addItemToBackpack "ACE_splint";
};
};
case "Engineer": {
player addWeapon "ACE_VMM3";
player addItemToBackpack "ACE_DefusalKit";
Expand Down
4 changes: 2 additions & 2 deletions addons/gsri_props/lockers/Functions/fn_setAsLocker.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ _preslotsActions pushBack (["actionGcapPreslot",localize "STR_GSRI_locker_gearAs
private _actionName = ["actionGsri", _x] joinString "";
private _display = ["STR_GSRI_locker_gearAsGsri", _x] joinString "";
_gsriActions pushBack ([_actionName, localize _display, "", GSRI_fnc_gearAsGsri, {true}, {}, [_x]] call ace_interact_menu_fnc_createAction);
} forEach ["Operator", "Antitank", "Medic", "Gunner", "Engineer", "Lead"];
} forEach ["Operator", "Antitank", "Gunner", "Engineer", "Lead"];

// GCAP preslots
{
private _actionName = ["actionGcap", _x] joinString "";
private _display = ["STR_GSRI_locker_gearAsGcap", _x] joinString "";
_gcapActions pushBack ([_actionName, localize _display, "", GSRI_fnc_gearAsGcap, {true}, {}, [_x]] call ace_interact_menu_fnc_createAction);
} forEach ["Rifleman", "Antitank", "Grenadier", "Medic", "Gunner", "Marksman", "Lead"];
} forEach ["Rifleman", "Antitank", "Grenadier", "Gunner", "Marksman", "Lead"];

// Medical skills actions
_actionMedicalMain = ["actionMedicalMain",localize "STR_GSRI_locker_medicalMain","\z\ace\addons\medical_gui\ui\cross.paa",{},{true}] call ace_interact_menu_fnc_createAction;
Expand Down

0 comments on commit 2f93714

Please sign in to comment.