-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from CBATeam/jr_vanilla_mg_scopes_fix
JR: Do not blacklist long scopes on the short mg rails anymore, move …
- Loading branch information
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
36
optionals/jr_disable_long_scopes_on_short_mg_rail/config.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
}; |
3 changes: 3 additions & 0 deletions
3
optionals/jr_disable_long_scopes_on_short_mg_rail/script_component.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |