Gruppe Adler custom gear system
npm install grad-customGearmodules. Then create one inside there and call it grad-customGear.
description.ext:
sqf
#include "modules\grad-customGear\saveDialog\dialog.hpp"
class CfgFunctions {
#include "modules\grad-customGear\cfgFunctions.hpp"
};
class CfgNotifications {
#include "modules\grad-customGear\cfgNotifications.hpp"
};
`
$3
_for details about what npm is and how to use it, look it up on npmjs.com_
1. Install package grad-customgear : npm install --save grad-customgear
2. Prepend your mission's description.ext with #define MODULES_DIRECTORY node_modules
3. Append the following lines of code to the description.ext:
`sqf
#include "node_modules\grad-customGear\saveDialog\dialog.hpp"
class CfgFunctions {
#include "node_modules\grad-customGear\cfgFunctions.hpp"
};
class CfgNotifications {
#include "node_modules\grad-customGear\cfgNotifications.hpp"
};
`
Configuration
Add the class CfgGradCustomGear to your description.ext. Inside it you can use the following attributes:
Attribute | Explanation
----------------------|---------------------------------------------------------------------
allowHelmet | allow loading of helmets (0/1)
allowGoggles | allow loading of goggles (0/1)
allowSimpleScopes | allow loading of non-magnifying scopes (0/1)
allowMagnifyingScopes | allow loading of magnifying rifle scopes (i.e. ACOG, RCO, ...) (0/1)
allowMarksmanScopes | allow loading of magnifying marksman scopes (0/1)
actionsOnMissionStart | automatically add the interactions on mission start (0/1)
$3
`sqf
class CfgGradCustomGear {
allowHelmet = 1;
allowGoggles = 1;
allowSimpleScopes = 1;
allowMagnifyingScopes = 1;
allowMarksmanScopes = 1;
actionsOnMissionStart = 1;
};
`
Saving
Add this to any objects init field:
`sqf
[this] call grad_customGear_fnc_addAction;
``