Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AK, SVD and AK+SVD side rails for JR #1017

Merged
merged 1 commit into from
Nov 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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