Skip to content

Commit

Permalink
Move gunbag type from inheritance to config property
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed May 28, 2019
1 parent 4e04100 commit 8b95e4e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions addons/gunbag/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class CfgVehicles {
hiddenSelectionsTextures[] = {QPATHTOF(data\gunbag_co.paa)};
maximumLoad = 80;
mass = 11;
ADDON = 1;
};

class GVAR(Tan): ADDON {
Expand Down
2 changes: 1 addition & 1 deletion addons/gunbag/functions/fnc_calculateMass.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: Ir0n1E
* Calculate mass of weapon an items.
* Calculate mass of weapon and items.
*
* Arguments:
* 0: Weapon <STRING>
Expand Down
2 changes: 1 addition & 1 deletion addons/gunbag/functions/fnc_canInteract.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: Ir0n1E
* Check if client able to interact with gunbag.
* Check if client is able to interact with gunbag.
*
* Arguments:
* 0: Unit <OBJECT>
Expand Down
4 changes: 2 additions & 2 deletions addons/gunbag/functions/fnc_hasGunbag.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "script_component.hpp"
/*
* Author: Ir0n1E
* Switches gunbag full/empty for mass calculation.
* Check if unit has a gunbag.
*
* Arguments:
* 0: Unit <OBJECT>
Expand All @@ -17,4 +17,4 @@

params ["_unit"];

(backpackContainer _unit) isKindOf QUOTE(ADDON)
getNumber (configFile >> "CfgVehicles" >> (backpack _unit) >> QUOTE(ADDON)) == 1

0 comments on commit 8b95e4e

Please sign in to comment.