4045 {
4047 {
4048 return 0;
4049 }
4050
4051 if (GetInventory().GetAttachmentSlotsCount() != 0)
4052 {
4053 ItemBase filter =
ItemBase.Cast(FindAttachmentBySlotName(
"GasMaskFilter"));
4054 if (filter)
4055 return filter.GetProtectionLevel(type, false, system);
4056 else
4057 return 0;
4058 }
4059
4060 string subclassPath, entryName;
4061
4062 switch (type)
4063 {
4065 entryName = "biological";
4066 break;
4068 entryName = "chemical";
4069 break;
4070 default:
4071 entryName = "biological";
4072 break;
4073 }
4074
4075 subclassPath =
"CfgVehicles " + this.
GetType() +
" Protection ";
4076
4078 }
eBleedingSourceType GetType()
proto native float ConfigGetFloat(string path)
Get float value from config on path.
override float GetQuantity()
override bool HasQuantity()
proto native CGame GetGame()