Skip to content

Commit

Permalink
JR: Do not blacklist long scopes on the short mg rails anymore, move …
Browse files Browse the repository at this point in the history
…that to optional pbo instead. Fixes #159.
  • Loading branch information
robalo committed Jan 22, 2016
1 parent 265828d commit 4578320
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/jr/jr_classes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class asdg_OpticRail1913_short: asdg_OpticRail1913 { // attachments that fit on

class asdg_OpticRail1913_short_MG: asdg_OpticRail1913_short { // attachments that would not work well on machine guns
class compatibleItems: compatibleItems {
/* // moved to optional addon: jr_disable_long_scopes_on_short_mg_rail
optic_SOS = 0;
optic_DMS = 0;
optic_LRPS = 0;
Expand All @@ -97,6 +98,7 @@ class asdg_OpticRail1913_short_MG: asdg_OpticRail1913_short { // attachments tha
optic_KHS_hex = 0;
optic_KHS_old = 0;
optic_KHS_tan = 0;
*/
};
};

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\cba\addons\jr_disable_long_scopes_on_short_mg_rail
36 changes: 36 additions & 0 deletions optionals/jr_disable_long_scopes_on_short_mg_rail/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include "script_component.hpp"

class CfgPatches
{
class ADDON
{
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_jr"};
version = VERSION;
author[] = {"Robalo"};
authorUrl = "https://github.com/CBATeam/CBA_A3";
};
};

class asdg_OpticRail1913;

class asdg_OpticRail1913_short: asdg_OpticRail1913 {
class compatibleItems;
};

class asdg_OpticRail1913_short_MG: asdg_OpticRail1913_short {
class compatibleItems: compatibleItems {
optic_SOS = 0;
optic_DMS = 0;
optic_LRPS = 0;
optic_AMS = 0;
optic_AMS_khk = 0;
optic_AMS_snd = 0;
optic_KHS_blk = 0;
optic_KHS_hex = 0;
optic_KHS_old = 0;
optic_KHS_tan = 0;
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define COMPONENT jr_disable_long_scopes_on_short_mg_rail
#include "\x\cba\addons\main\script_mod.hpp"
#include "\x\cba\addons\main\script_macros.hpp"

0 comments on commit 4578320

Please sign in to comment.