diff --git a/addons/gunbag/CfgVehicles.hpp b/addons/gunbag/CfgVehicles.hpp index bf73d63755..1377a8f84d 100644 --- a/addons/gunbag/CfgVehicles.hpp +++ b/addons/gunbag/CfgVehicles.hpp @@ -3,29 +3,29 @@ class CfgVehicles { class CAManBase: Man { class ACE_Actions { class ACE_MainActions { - class GVAR(WeapontoGunbag) { - displayName = CSTRING(toGunbag); + class GVAR(weaponTo) { + displayName = CSTRING(ToGunbag); condition = QUOTE(([_target] call FUNC(hasGunbag)) && {[ARR_2(_player,_target)] call FUNC(canInteract) == 0}); statement = QUOTE([ARR_2(_player,_target)] call FUNC(toGunbag)); showDisabled = 0; priority = 1; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; - class GVAR(WeaponoffGunbag) { - displayName = CSTRING(offGunbag); + class GVAR(weaponOff) { + displayName = CSTRING(OffGunbag); condition = QUOTE(([_target] call FUNC(hasGunbag)) && {[ARR_2(_player,_target)] call FUNC(canInteract) == 1}); statement = QUOTE([ARR_2(_player,_target)] call FUNC(offGunbag)); showDisabled = 0; priority = 1; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; - class GVAR(StatusGunbag) { + class GVAR(status) { displayName = CSTRING(Status); condition = QUOTE([_target] call FUNC(hasGunbag)); statement = QUOTE([_target] call FUNC(status)); showDisabled = 0; priority = 2; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; }; }; @@ -33,35 +33,35 @@ class CfgVehicles { class ACE_SelfActions { class ACE_Equipment { class GVAR(actions) { - displayName = CSTRING(displayname); + displayName = CSTRING(Displayname); condition = QUOTE([_player] call FUNC(hasGunbag)); showDisabled = 0; priority = 0.1; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); - class GVAR(WeapontoGunbag) { - displayName = CSTRING(toGunbag); + class GVAR(weaponTo) { + displayName = CSTRING(ToGunbag); condition = QUOTE([ARR_2(_player,_player)] call FUNC(canInteract) == 0); statement = QUOTE([ARR_2(_player,_player)] call FUNC(toGunbag)); showDisabled = 0; priority = 1; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; - class GVAR(WeaponoffGunbag) { - displayName = CSTRING(offGunbag); + class GVAR(weaponOff) { + displayName = CSTRING(OffGunbag); condition = QUOTE([ARR_2(_player,_player)] call FUNC(canInteract) == 1); statement = QUOTE([ARR_2(_player,_player)] call FUNC(offGunbag)); showDisabled = 0; priority = 1; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; - class GVAR(StatusGunbag) { + class GVAR(status) { displayName = CSTRING(Status); condition = QUOTE([_player] call FUNC(hasGunbag)); statement = QUOTE([_player] call FUNC(status)); showDisabled = 0; priority = 2; - icon = PATHTOF(ui\gunbag_icon_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); }; }; }; @@ -69,33 +69,33 @@ class CfgVehicles { }; class Bag_Base; - class CLASSNAME: Bag_Base { - _generalMacro = QUOTE(CLASSNAME); + class ADDON: Bag_Base { + _generalMacro = QUOTE(ADDON); author = "Ir0n1E"; scope = 2; displayName = CSTRING(Displayname); - model = PATHTOF(data\gunbag.p3d); - picture = PATHTOF(ui\gunbag_ca.paa); - icon = PATHTOF(ui\gunbag_icon_ca.paa); - hiddenSelections[] = {QUOTE(Camo),QUOTE(insignia)}; - hiddenSelectionsTextures[] = {PATHTOF(data\gunbag_co.paa)}; + model = QPATHTOF(data\ace_gunbag.p3d); + picture = QPATHTOF(ui\gunbag_ca.paa); + icon = QPATHTOF(ui\gunbag_icon_ca.paa); + hiddenSelections[] = {"Camo", "insignia"}; + hiddenSelectionsTextures[] = {QPATHTOF(data\gunbag_co.paa)}; maximumLoad = 80; mass = 11; }; - class DOUBLES(CLASSNAME,Tan): CLASSNAME { - _generalMacro = QUOTE(DOUBLES(CLASSNAME,Tan)); + class GVAR(Tan): ADDON { + _generalMacro = QGVAR(Tan); author = "Ir0n1E"; displayName = CSTRING(Displayname_Tan); - picture = PATHTOF(ui\gunbag_tan_ca.paa); - hiddenSelectionsTextures[] = {PATHTOF(data\gunbag_tan_co.paa)}; + picture = QPATHTOF(ui\gunbag_tan_ca.paa); + hiddenSelectionsTextures[] = {QPATHTOF(data\gunbag_tan_co.paa)}; }; class Box_NATO_Support_F; class ACE_Box_Misc: Box_NATO_Support_F { class TransportBackpacks { - MACRO_ADDBACKPACK(CLASSNAME,3); - MACRO_ADDBACKPACK(DOUBLES(CLASSNAME,Tan),3); + MACRO_ADDBACKPACK(ADDON,3); + MACRO_ADDBACKPACK(GVAR(Tan),3); }; }; }; diff --git a/addons/gunbag/README.md b/addons/gunbag/README.md index 6a7d4f6f6d..734c18f3c5 100644 --- a/addons/gunbag/README.md +++ b/addons/gunbag/README.md @@ -8,3 +8,4 @@ Adds a gunbag for DMRs. The people responsible for merging changes to this component or answering potential questions. +- [commy2](https://github.com/commy2) diff --git a/addons/gunbag/config.cpp b/addons/gunbag/config.cpp index d5f4696bfe..7c9a114d2e 100644 --- a/addons/gunbag/config.cpp +++ b/addons/gunbag/config.cpp @@ -2,11 +2,13 @@ class CfgPatches { class ADDON { - units[] = {CLASSNAME, DOUBLES(CLASSNAME,Tan)}; + units[] = {QUOTE(ADDON), QGVAR(Tan)}; weapons[] = {}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = {"ace_interaction", "ace_movement"}; - author[] = {"Ir0n1E"}; + author = ECSTRING(common,ACETeam); + authors[] = {"Ir0n1E"}; + url = ECSTRING(main,URL); VERSION_CONFIG; }; }; diff --git a/addons/gunbag/data/gunbag.p3d b/addons/gunbag/data/ace_gunbag.p3d similarity index 100% rename from addons/gunbag/data/gunbag.p3d rename to addons/gunbag/data/ace_gunbag.p3d diff --git a/addons/gunbag/data/model.cfg b/addons/gunbag/data/model.cfg index 7d08da7342..894edab2ac 100644 --- a/addons/gunbag/data/model.cfg +++ b/addons/gunbag/data/model.cfg @@ -1,148 +1,148 @@ class CfgSkeletons { - class Default { - isDiscrete = 1; - skeletonInherit = ""; - skeletonBones[] = {}; - }; - class OFP2_ManSkeleton { - isDiscrete = 0; - skeletonInherit = ""; - skeletonBones[] = { - "Pelvis","", - "Spine","Pelvis", - "Spine1","Spine", - "Spine2","Spine1", - "Spine3","Spine2", - "Camera","Pelvis", - "weapon","Spine1", - "launcher","Spine1", - //Head skeleton in hierarchy - "neck","Spine3", - "neck1","neck", - "head","neck1", - //New facial features - "Face_Hub","head", - "Face_Jawbone","Face_Hub", - "Face_Jowl","Face_Jawbone", - "Face_chopRight","Face_Jawbone", - "Face_chopLeft","Face_Jawbone", - "Face_LipLowerMiddle","Face_Jawbone", - "Face_LipLowerLeft","Face_Jawbone", - "Face_LipLowerRight","Face_Jawbone", - "Face_Chin","Face_Jawbone", - "Face_Tongue","Face_Jawbone", - "Face_CornerRight","Face_Hub", - "Face_CheekSideRight","Face_CornerRight", - "Face_CornerLeft","Face_Hub", - "Face_CheekSideLeft","Face_CornerLeft", - "Face_CheekFrontRight","Face_Hub", - "Face_CheekFrontLeft","Face_Hub", - "Face_CheekUpperRight","Face_Hub", - "Face_CheekUpperLeft","Face_Hub", - "Face_LipUpperMiddle","Face_Hub", - "Face_LipUpperRight","Face_Hub", - "Face_LipUpperLeft","Face_Hub", - "Face_NostrilRight","Face_Hub", - "Face_NostrilLeft","Face_Hub", - "Face_Forehead","Face_Hub", - "Face_BrowFrontRight","Face_Forehead", - "Face_BrowFrontLeft","Face_Forehead", - "Face_BrowMiddle","Face_Forehead", - "Face_BrowSideRight","Face_Forehead", - "Face_BrowSideLeft","Face_Forehead", - "Face_Eyelids","Face_Hub", - "Face_EyelidUpperRight","Face_Hub", - "Face_EyelidUpperLeft","Face_Hub", - "Face_EyelidLowerRight","Face_Hub", - "Face_EyelidLowerLeft","Face_Hub", - "EyeLeft","Face_Hub", - "EyeRight","Face_Hub", - //Left upper side - "LeftShoulder","Spine3", - "LeftArm","LeftShoulder", - "LeftArmRoll","LeftArm", - "LeftForeArm","LeftArmRoll", - "LeftForeArmRoll","LeftForeArm", - "LeftHand","LeftForeArmRoll", - "LeftHandRing","LeftHand", - "LeftHandRing1","LeftHandRing", - "LeftHandRing2","LeftHandRing1", - "LeftHandRing3","LeftHandRing2", - "LeftHandPinky1","LeftHandRing", - "LeftHandPinky2","LeftHandPinky1", - "LeftHandPinky3","LeftHandPinky2", - "LeftHandMiddle1","LeftHand", - "LeftHandMiddle2","LeftHandMiddle1", - "LeftHandMiddle3","LeftHandMiddle2", - "LeftHandIndex1","LeftHand", - "LeftHandIndex2","LeftHandIndex1", - "LeftHandIndex3","LeftHandIndex2", - "LeftHandThumb1","LeftHand", - "LeftHandThumb2","LeftHandThumb1", - "LeftHandThumb3","LeftHandThumb2", - //Right upper side - "RightShoulder","Spine3", - "RightArm","RightShoulder", - "RightArmRoll","RightArm", - "RightForeArm","RightArmRoll", - "RightForeArmRoll","RightForeArm", - "RightHand","RightForeArmRoll", - "RightHandRing","RightHand", - "RightHandRing1","RightHandRing", - "RightHandRing2","RightHandRing1", - "RightHandRing3","RightHandRing2", - "RightHandPinky1","RightHandRing", - "RightHandPinky2","RightHandPinky1", - "RightHandPinky3","RightHandPinky2", - "RightHandMiddle1","RightHand", - "RightHandMiddle2","RightHandMiddle1", - "RightHandMiddle3","RightHandMiddle2", - "RightHandIndex1","RightHand", - "RightHandIndex2","RightHandIndex1", - "RightHandIndex3","RightHandIndex2", - "RightHandThumb1","RightHand", - "RightHandThumb2","RightHandThumb1", - "RightHandThumb3","RightHandThumb2", - //Left lower side - "LeftUpLeg","Pelvis", - "LeftUpLegRoll","LeftUpLeg", - "LeftLeg","LeftUpLegRoll", - "LeftLegRoll","LeftLeg", - "LeftFoot","LeftLegRoll", - "LeftToeBase","LeftFoot", - //Right lower side - "RightUpLeg","Pelvis", - "RightUpLegRoll","RightUpLeg", - "RightLeg","RightUpLegRoll", - "RightLegRoll","RightLeg", - "RightFoot","RightLegRoll", - "RightToeBase","RightFoot" + class Default { + isDiscrete = 1; + skeletonInherit = ""; + skeletonBones[] = {}; }; - // location of pivot points (local axes) for hierarchical animation - pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d"; + class OFP2_ManSkeleton { + isDiscrete = 0; + skeletonInherit = ""; + skeletonBones[] = { + "Pelvis","", + "Spine","Pelvis", + "Spine1","Spine", + "Spine2","Spine1", + "Spine3","Spine2", + "Camera","Pelvis", + "weapon","Spine1", + "launcher","Spine1", + //Head skeleton in hierarchy + "neck","Spine3", + "neck1","neck", + "head","neck1", + //New facial features + "Face_Hub","head", + "Face_Jawbone","Face_Hub", + "Face_Jowl","Face_Jawbone", + "Face_chopRight","Face_Jawbone", + "Face_chopLeft","Face_Jawbone", + "Face_LipLowerMiddle","Face_Jawbone", + "Face_LipLowerLeft","Face_Jawbone", + "Face_LipLowerRight","Face_Jawbone", + "Face_Chin","Face_Jawbone", + "Face_Tongue","Face_Jawbone", + "Face_CornerRight","Face_Hub", + "Face_CheekSideRight","Face_CornerRight", + "Face_CornerLeft","Face_Hub", + "Face_CheekSideLeft","Face_CornerLeft", + "Face_CheekFrontRight","Face_Hub", + "Face_CheekFrontLeft","Face_Hub", + "Face_CheekUpperRight","Face_Hub", + "Face_CheekUpperLeft","Face_Hub", + "Face_LipUpperMiddle","Face_Hub", + "Face_LipUpperRight","Face_Hub", + "Face_LipUpperLeft","Face_Hub", + "Face_NostrilRight","Face_Hub", + "Face_NostrilLeft","Face_Hub", + "Face_Forehead","Face_Hub", + "Face_BrowFrontRight","Face_Forehead", + "Face_BrowFrontLeft","Face_Forehead", + "Face_BrowMiddle","Face_Forehead", + "Face_BrowSideRight","Face_Forehead", + "Face_BrowSideLeft","Face_Forehead", + "Face_Eyelids","Face_Hub", + "Face_EyelidUpperRight","Face_Hub", + "Face_EyelidUpperLeft","Face_Hub", + "Face_EyelidLowerRight","Face_Hub", + "Face_EyelidLowerLeft","Face_Hub", + "EyeLeft","Face_Hub", + "EyeRight","Face_Hub", + //Left upper side + "LeftShoulder","Spine3", + "LeftArm","LeftShoulder", + "LeftArmRoll","LeftArm", + "LeftForeArm","LeftArmRoll", + "LeftForeArmRoll","LeftForeArm", + "LeftHand","LeftForeArmRoll", + "LeftHandRing","LeftHand", + "LeftHandRing1","LeftHandRing", + "LeftHandRing2","LeftHandRing1", + "LeftHandRing3","LeftHandRing2", + "LeftHandPinky1","LeftHandRing", + "LeftHandPinky2","LeftHandPinky1", + "LeftHandPinky3","LeftHandPinky2", + "LeftHandMiddle1","LeftHand", + "LeftHandMiddle2","LeftHandMiddle1", + "LeftHandMiddle3","LeftHandMiddle2", + "LeftHandIndex1","LeftHand", + "LeftHandIndex2","LeftHandIndex1", + "LeftHandIndex3","LeftHandIndex2", + "LeftHandThumb1","LeftHand", + "LeftHandThumb2","LeftHandThumb1", + "LeftHandThumb3","LeftHandThumb2", + //Right upper side + "RightShoulder","Spine3", + "RightArm","RightShoulder", + "RightArmRoll","RightArm", + "RightForeArm","RightArmRoll", + "RightForeArmRoll","RightForeArm", + "RightHand","RightForeArmRoll", + "RightHandRing","RightHand", + "RightHandRing1","RightHandRing", + "RightHandRing2","RightHandRing1", + "RightHandRing3","RightHandRing2", + "RightHandPinky1","RightHandRing", + "RightHandPinky2","RightHandPinky1", + "RightHandPinky3","RightHandPinky2", + "RightHandMiddle1","RightHand", + "RightHandMiddle2","RightHandMiddle1", + "RightHandMiddle3","RightHandMiddle2", + "RightHandIndex1","RightHand", + "RightHandIndex2","RightHandIndex1", + "RightHandIndex3","RightHandIndex2", + "RightHandThumb1","RightHand", + "RightHandThumb2","RightHandThumb1", + "RightHandThumb3","RightHandThumb2", + //Left lower side + "LeftUpLeg","Pelvis", + "LeftUpLegRoll","LeftUpLeg", + "LeftLeg","LeftUpLegRoll", + "LeftLegRoll","LeftLeg", + "LeftFoot","LeftLegRoll", + "LeftToeBase","LeftFoot", + //Right lower side + "RightUpLeg","Pelvis", + "RightUpLegRoll","RightUpLeg", + "RightLeg","RightUpLegRoll", + "RightLegRoll","RightLeg", + "RightFoot","RightLegRoll", + "RightToeBase","RightFoot" + }; + // location of pivot points (local axes) for hierarchical animation + pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d"; }; }; class CfgModels { - class Default { - sectionsInherit=""; - sections[] = {}; - skeletonName = ""; - }; - class ArmaMan: Default { - htMin = 60; // Minimum half-cooling time (in seconds) - htMax = 1800; // Maximum half-cooling time (in seconds) - afMax = 30; // Maximum temperature in case the model is alive (in celsius) - mfMax = 0; // Maximum temperature when the model is moving (in celsius) - mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). - tBody = 37; // Metabolism temperature of the model (in celsius) - - sections[] = { - "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury","injury_body", "injury_legs", "injury_hands", - "clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head", "insignia" + class Default { + sectionsInherit=""; + sections[] = {}; + skeletonName = ""; }; - skeletonName = "OFP2_ManSkeleton"; - }; + class ArmaMan: Default { + htMin = 60; // Minimum half-cooling time (in seconds) + htMax = 1800; // Maximum half-cooling time (in seconds) + afMax = 30; // Maximum temperature in case the model is alive (in celsius) + mfMax = 0; // Maximum temperature when the model is moving (in celsius) + mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). + tBody = 37; // Metabolism temperature of the model (in celsius) - class gunbag: ArmaMan {}; + sections[] = { + "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury","injury_body", "injury_legs", "injury_hands", + "clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head", "insignia" + }; + skeletonName = "OFP2_ManSkeleton"; + }; + + class ace_gunbag: ArmaMan {}; }; diff --git a/addons/gunbag/functions/fnc_calculateMass.sqf b/addons/gunbag/functions/fnc_calculateMass.sqf index 47e8a9151d..e365930d16 100644 --- a/addons/gunbag/functions/fnc_calculateMass.sqf +++ b/addons/gunbag/functions/fnc_calculateMass.sqf @@ -1,6 +1,6 @@ /* * Author: Ir0n1E - * calculate mass of weapon an items + * Calculate mass of weapon an items. * * Arguments: * 0: Weapon @@ -10,6 +10,9 @@ * Return Value: * Mass * + * Example: + * ["weapon", ["item1", "item2"], ["mag1", "mag2"]] call ace_gunbag_fnc_calculateMass + * * Public: No */ #include "script_component.hpp" diff --git a/addons/gunbag/functions/fnc_canInteract.sqf b/addons/gunbag/functions/fnc_canInteract.sqf index 0d098b9f7e..b24533f632 100644 --- a/addons/gunbag/functions/fnc_canInteract.sqf +++ b/addons/gunbag/functions/fnc_canInteract.sqf @@ -1,6 +1,6 @@ /* * Author: Ir0n1E - * Check if client able to interact with gunbag + * Check if client able to interact with gunbag. * * Arguments: * 0: Unit @@ -9,6 +9,9 @@ * Return Value: * -1: can't interact 0: empty gunbag 1: full gunbag * + * Example: + * _canInteract = [player, target] call ace_gunbag_fnc_canInteract + * * Public: No */ #include "script_component.hpp" diff --git a/addons/gunbag/functions/fnc_hasGunbag.sqf b/addons/gunbag/functions/fnc_hasGunbag.sqf index f7cab0435d..8c8fdd6147 100644 --- a/addons/gunbag/functions/fnc_hasGunbag.sqf +++ b/addons/gunbag/functions/fnc_hasGunbag.sqf @@ -1,12 +1,15 @@ /* * Author: Ir0n1E - * switches gunbag full/empty for mass calculation + * Switches gunbag full/empty for mass calculation. * * Arguments: * 0: Unit * * Return Value: - * (BOOL) + * Has Gunbag + * + * Example: + * [player] call ace_gunbag_fnc_hasGunbag * * Public: No */ @@ -14,4 +17,4 @@ params ["_unit"]; -backpackContainer _unit isKindOf QUOTE(CLASSNAME) +(backpackContainer _unit) isKindOf QUOTE(ADDON) diff --git a/addons/gunbag/functions/fnc_offGunbag.sqf b/addons/gunbag/functions/fnc_offGunbag.sqf index d11043f065..a46d49675d 100644 --- a/addons/gunbag/functions/fnc_offGunbag.sqf +++ b/addons/gunbag/functions/fnc_offGunbag.sqf @@ -1,13 +1,16 @@ /* * Author: Ir0n1E - * get weapon out of gunbag + * Get weapon out of gunbag. * * Arguments: * 0: Unit * 1: Target * * Return Value: - * Nothing + * None + * + * Example: + * [player, target] call ace_gunbag_fnc_toGunbag * * Public: No */ @@ -20,7 +23,7 @@ private _gunbag = backpackContainer _target; _unit call EFUNC(common,goKneeling); // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/functions/fnc_offGunbagCallback.sqf b/addons/gunbag/functions/fnc_offGunbagCallback.sqf index 2bee565bd1..5d548d0e9c 100644 --- a/addons/gunbag/functions/fnc_offGunbagCallback.sqf +++ b/addons/gunbag/functions/fnc_offGunbagCallback.sqf @@ -1,13 +1,16 @@ /* * Author: Ir0n1E - * get weapon out of gunbag + * Get weapon out of gunbag. * * Arguments: * 0: Unit * 1: Target * * Return Value: - * Nothing + * None + * + * Example: + * [player, target] call ace_gunbag_fnc_offGunbagCallback * * Public: No */ @@ -43,6 +46,6 @@ private _mass = [_weapon, _items, _magazines] call FUNC(calculateMass); _gunbag setVariable [QGVAR(gunbagWeapon), [], true]; // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/functions/fnc_status.sqf b/addons/gunbag/functions/fnc_status.sqf index 6b6196ba01..33c30ec0e1 100644 --- a/addons/gunbag/functions/fnc_status.sqf +++ b/addons/gunbag/functions/fnc_status.sqf @@ -1,12 +1,15 @@ /* * Author: Ir0n1E - * check gunbag status full/empty + * Check gunbag status full/empty. * * Arguments: * 0: Unit * * Return Value: - * Nothing + * None + * + * Example: + * [player] call ace_gunbag_fnc_status * * Public: No */ diff --git a/addons/gunbag/functions/fnc_toGunbag.sqf b/addons/gunbag/functions/fnc_toGunbag.sqf index 27ca4e2924..8851e5610b 100644 --- a/addons/gunbag/functions/fnc_toGunbag.sqf +++ b/addons/gunbag/functions/fnc_toGunbag.sqf @@ -1,13 +1,16 @@ /* * Author: Ir0n1E - * put weapon into gunbag + * Put weapon into gunbag. * * Arguments: * 0: Unit * 1: Target * * Return Value: - * Nothing + * None + * + * Example: + * [player, target] call ace_gunbag_fnc_toGunbag * * Public: No */ @@ -20,7 +23,7 @@ private _gunbag = backpackContainer _target; _unit call EFUNC(common,goKneeling); // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/functions/fnc_toGunbagCallback.sqf b/addons/gunbag/functions/fnc_toGunbagCallback.sqf index c02d29e0e3..3587c9e6b8 100644 --- a/addons/gunbag/functions/fnc_toGunbagCallback.sqf +++ b/addons/gunbag/functions/fnc_toGunbagCallback.sqf @@ -1,13 +1,16 @@ /* * Author: Ir0n1E - * put weapon into gunbag + * Put weapon into gunbag. * * Arguments: * 0: Unit * 1: Target * * Return Value: - * Nothing + * None + * + * Example: + * [player, target] call ace_gunbag_fnc_toGunbagCallback * * Public: No */ @@ -40,6 +43,6 @@ _unit removeWeapon _weapon; _gunbag setVariable [QGVAR(gunbagWeapon), [_weapon, _items, _magazines], true]; // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/script_component.hpp b/addons/gunbag/script_component.hpp index 2bfb3235a8..857c1e6836 100644 --- a/addons/gunbag/script_component.hpp +++ b/addons/gunbag/script_component.hpp @@ -16,5 +16,4 @@ #include "\z\ace\addons\main\script_macros.hpp" -#define CLASSNAME ACE_Gunbag #define PROGRESSBAR_TIME 5 diff --git a/addons/gunbag/stringtable.xml b/addons/gunbag/stringtable.xml index d779918988..d0ce497c04 100644 --- a/addons/gunbag/stringtable.xml +++ b/addons/gunbag/stringtable.xml @@ -1,6 +1,6 @@ - + Gunbag Waffentasche @@ -9,19 +9,19 @@ Gunbag (Tan) Waffentasche (Tan) - + Put weapon into gunbag Lege Waffe in Waffentasche - + Get weapon out of gunbag Hole Waffe aus Waffentasche - Status Gunbag - Status Waffentasche + Status + Status - + Gunbag Empty Waffentasche leer