3975 {
3977 {
3978 return 0;
3979 }
3980
3981 if (GetInventory().GetAttachmentSlotsCount() != 0)
3982 {
3983 ItemBase filter =
ItemBase.Cast(FindAttachmentBySlotName(
"GasMaskFilter"));
3984 if (filter)
3985 return filter.GetProtectionLevel(type, false, system);
3986 else
3987 return 0;
3988 }
3989
3990 string subclassPath, entryName;
3991
3992 switch (type)
3993 {
3995 entryName = "biological";
3996 break;
3998 entryName = "chemical";
3999 break;
4000 default:
4001 entryName = "biological";
4002 break;
4003 }
4004
4005 subclassPath =
"CfgVehicles " + this.
GetType() +
" Protection ";
4006
4008 }
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()