23 GetInventory().CreateInInventory(
"GasMask_Filter");
28 return FindAttachmentBySlotName(
"GasMaskFilter");
47 return filter.GetQuantityMax();
59 return filter.GetQuantity();
66 if (!HasValidFilter())
88 return ItemBase.Cast(FindAttachmentBySlotName(
"GasMaskFilter")) !=
null;
98 return !HasIntegratedFilter();
110 else if (HasValidFilter())
132 super.InitGlobalExclusionValues();
136 AddSingleExclusionValueGlobal(
EAttExclusions.EXCLUSION_GLASSES_TIGHT_0);
137 AddSingleExclusionValueGlobal(
EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
override float GetQuantity()
override int GetQuantityMax()
override void OnDebugSpawn()
bool ConsumeQuantity(float quantity, PlayerBase consumer_player)
float GetFilterQuantityMax()
override array< int > GetEffectWidgetTypes()
override bool AllowFoodConsumption()
bool HasIntegratedFilter()
float GetFilterQuantity()
float m_LowFilterEventTime
EntityAI GetExternalFilter()
float GetFilterQuantity01()
bool HasValidFilter()
has either external or integrated non-empty non-ruined filter ?
void OnQuantityConsumed(notnull ItemBase filter, PlayerBase consumer_player)
bool IsExternalFilterAttached()
void OnQuantityConsumed(notnull ItemBase filter, PlayerBase consumer_player, float quantity)
bool CanHaveExternalFilter()
override bool IsGasMask()
void InitGlobalExclusionValues()
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...