4095 {
4097 {
4098 return 0;
4099 }
4100
4101 if (GetInventory().GetAttachmentSlotsCount() != 0)
4102 {
4103 ItemBase filter =
ItemBase.Cast(FindAttachmentBySlotName(
"GasMaskFilter"));
4104 if (filter)
4105 return filter.GetProtectionLevel(type, false, system);
4106 else
4107 return 0;
4108 }
4109
4110 string subclassPath, entryName;
4111
4112 switch (type)
4113 {
4115 entryName = "biological";
4116 break;
4118 entryName = "chemical";
4119 break;
4120 default:
4121 entryName = "biological";
4122 break;
4123 }
4124
4125 subclassPath =
"CfgVehicles " + this.
GetType() +
" Protection ";
4126
4127 return g_Game.ConfigGetFloat(subclassPath + entryName);
4128 }
eBleedingSourceType GetType()
override float GetQuantity()
override bool HasQuantity()