Skip to content

Commit

Permalink
Jam - fix p90 jam and add test script (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored and commy2 committed Mar 8, 2019
1 parent fc2fe68 commit 8c7653d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/jam/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CfgWeapons {
};

class SMG_03_TR_BASE: Rifle_Base_F {
magazineWell[] = {"CBA_57x28_FNP90"};
magazineWell[] = {"CBA_57x28_P90"};
};

class SMG_05_base_F: Rifle_Short_Base_F {
Expand Down
21 changes: 21 additions & 0 deletions addons/jam/test.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#define DEBUG_MODE_FULL
#include "script_component.hpp"
// ----------------------------------------------------------------------------
// execVM "x\cba\addons\jam\test.sqf"

LOG("=== Testing Jam ===");

private _wellsChecked = [];
{
private _wpnCfg = _x;
private _xWellArray = getArray (_wpnCfg >> "magazineWell");
{
if ((_wellsChecked pushBackUnique _x) > -1) then {
if (isNull (configFile >> "CfgMagazineWells" >> _x)) then {
diag_log text format ["ERROR: Well [%1] not valid, used in [%2]", _x,configName _wpnCfg];
};
};
} forEach _xWellArray;
} forEach (configProperties [configFile >> "CfgWeapons", "(isClass _x) && {2 == getNumber (_x >> 'scope')}"]);

nil;

0 comments on commit 8c7653d

Please sign in to comment.