Inverse Override
Override a parts own tweak data based on other attachments or weapon.
e.g.
self.parts.wpn_fps_upg_o_eotech.inverse_override = {
wpn_fps_ass_galil_fg_fab = {
a_obj = "a_os_fab",
stance_mod = {
wpn_fps_ass_galil = {
translation = Vector3(0, 0, -3.5)
}
}
}
}
Allows parts to be more self contained, reducing potential mod conflicts.
And more can be done solely within beardlib.
So in the example above wpn_fps_upg_o_eotech
's tweak data would change if wpn_fps_ass_galil_fg_fab
is attached.
Substituting wpn_fps_ass_galil_fg_fab
with a specific weapon's factory id would work too.