2.0.0 • Published 7 years ago

grad-customGear v2.0.0

Weekly downloads
25
License
-
Repository
-
Last release
7 years ago

GRAD Custom Gear

Save personalized gear.

Dependencies

Installation

Manually

  1. Create a folder in your mission root folder and name it modules. Then create one inside there and call it grad-customGear.
  2. Download the contents of this repository ( there's a download link at the side ) and put it into the directory you just created.
  3. Append the following lines of code to the description.ext:
#include "modules\grad-customGear\saveDialog\dialog.hpp"

class CfgFunctions {
  #include "modules\grad-customGear\cfgFunctions.hpp"
};

class CfgNotifications {
    #include "modules\grad-customGear\cfgNotifications.hpp"
};

Via npm

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:
#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:

AttributeExplanation
allowHelmetallow loading of helmets (0/1)
allowGogglesallow loading of goggles (0/1)
allowSimpleScopesallow loading of non-magnifying scopes (0/1)
allowMagnifyingScopesallow loading of magnifying rifle scopes (i.e. ACOG, RCO, ...) (0/1)
allowMarksmanScopesallow loading of magnifying marksman scopes (0/1)
actionsOnMissionStartautomatically add the interactions on mission start (0/1)

Example

class CfgGradCustomGear {
    allowHelmet = 1;
    allowGoggles = 1;
    allowSimpleScopes = 1;
    allowMagnifyingScopes = 1;
    allowMarksmanScopes = 1;
    actionsOnMissionStart = 1;
};

Saving

Add this to any objects init field:

[this] call grad_customGear_fnc_addAction;

This will allow players to open the saving dialog.

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago