Returns effective length of attachments that influence total weapon length.
См. определение в файле Weapon_Base.c строка 2006
2007 {
2010 {
2012 attachment =
ItemBase.Cast(GetInventory().FindAttachment(bayonetIndex));
2013 }
2014 else
2015 {
2016 attachment = GetAttachedSuppressor();
2017 }
2018
2019 if (attachment)
2020 {
2021 return Math.Max(attachment.m_ItemModelLength + attachment.m_ItemAttachOffset, 0);
2022 }
2023 else
2024 {
2025 return 0;
2026 }
2027 }
class GP5GasMask extends MaskBase ItemBase
override int GetBayonetAttachmentIdx()
override bool HasBayonetAttached()
Перекрестные ссылки GetBayonetAttachmentIdx(), HasBayonetAttached() и Math::Max().
Используется в GetObstructionPenetrationDistance() и LiftWeaponCheckEx().