Skip to content

Commit

Permalink
Add rksl pm II 5-25x56 compat (#6845)
Browse files Browse the repository at this point in the history
* Add rksl pm II 5-25x56 compat

* Combine into existing compat

* Update ace_ScopeAdjus values
  • Loading branch information
dedmen authored and PabstMirror committed Mar 12, 2019
1 parent 695416d commit 187b2f3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
28 changes: 22 additions & 6 deletions optionals/compat_rksl_pm_ii/CfgWeapons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ class CfgWeapons {
class ItemCore;
class InventoryOpticsItem_Base_F;

class RKSL_optic_PMII_312 : ItemCore {
class RKSL_optic_PMII_312: ItemCore {
ACE_ScopeHeightAboveRail = 4.2235;
ACE_ScopeAdjust_Vertical[] = { -4, 30 };
ACE_ScopeAdjust_Vertical[] = { -1, 12 };
ACE_ScopeAdjust_Horizontal[] = { -6, 6 };
ACE_ScopeAdjust_VerticalIncrement = 0.1;
ACE_ScopeAdjust_HorizontalIncrement = 0.1;
class ItemInfo : InventoryOpticsItem_Base_F {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip {
discreteDistance[] = { 100 };
Expand All @@ -19,13 +19,29 @@ class CfgWeapons {
};
};

class RKSL_optic_PMII_312_sunshade : ItemCore {
class RKSL_optic_PMII_312_sunshade: ItemCore {
ACE_ScopeHeightAboveRail = 4.2235;
ACE_ScopeAdjust_Vertical[] = { -4, 30 };
ACE_ScopeAdjust_Vertical[] = { -1, 12 };
ACE_ScopeAdjust_Horizontal[] = { -6, 6 };
ACE_ScopeAdjust_VerticalIncrement = 0.1;
ACE_ScopeAdjust_HorizontalIncrement = 0.1;
class ItemInfo : InventoryOpticsItem_Base_F {
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip {
discreteDistance[] = { 100 };
discreteDistanceInitIndex = 0;
};
};
};
};

class RKSL_optic_PMII_525: ItemCore {
ACE_ScopeHeightAboveRail = 4.2235;
ACE_ScopeAdjust_Vertical[] = { 0, 26 };
ACE_ScopeAdjust_Horizontal[] = { -6, 6 };
ACE_ScopeAdjust_VerticalIncrement = 0.1;
ACE_ScopeAdjust_HorizontalIncrement = 0.1;
class ItemInfo: InventoryOpticsItem_Base_F {
class OpticsModes {
class Snip {
discreteDistance[] = { 100 };
Expand Down
4 changes: 2 additions & 2 deletions optionals/compat_rksl_pm_ii/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"RKSL_PMII"};
requiredAddons[] = {"RKSL_PMII", "RKSL_PMII_525"};
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg"};
authors[] = {"Ruthberg", "Dedmen"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
Expand Down

0 comments on commit 187b2f3

Please sign in to comment.