Skip to content

Commit

Permalink
Add AK, SVD and AK+SVD side rails for JR (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
robalo authored and commy2 committed Nov 9, 2018
1 parent 93102b6 commit 25cb2a3
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions addons/jr/jr_classes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,27 @@ class asdg_OpticRail1913_long: asdg_OpticRail1913 {
};
};

// AK-style optic mount

class asdg_OpticSideMount: asdg_OpticRail {
class compatibleItems {
//by default we have none, because there's no vanilla accessory that would fit here
//but there are plenty Russian weapon mods out there that could benefit from this standardized base slot class
// deprecated, the following 3 classes should be used instead
};
};

class asdg_OpticSideRail_AK: asdg_OpticSideMount {
class compatibleItems: compatibleItems {
// AK-style optic side mount
};
};

class asdg_OpticSideRail_SVD: asdg_OpticSideMount {
class compatibleItems: compatibleItems {
// SVD-style optic side mount
};
};

class asdg_OpticSideRail_AKSVD: asdg_OpticSideMount {
class compatibleItems: compatibleItems {
// side plate that fits both AK and SVD style mounts
};
};

Expand Down

0 comments on commit 25cb2a3

Please sign in to comment.