Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MineHitZone.c
Go to the documentation of this file.
2 {
3  //------------------------------------------------------------------------------------------------
4  override float ComputeEffectiveDamage(notnull BaseDamageContext damageContext, bool isDOT)
5  {
6  if (damageContext.damageType != EDamageType.MELEE)
7  return super.ComputeEffectiveDamage(damageContext, isDOT);
8 
9  // Inactive mines don't take melee damage, activated mines can be destroyed using melee and explode
10  SCR_PressureTriggerComponent triggerComponent = SCR_PressureTriggerComponent.Cast(GetOwner().FindComponent(SCR_PressureTriggerComponent));
11  if (!triggerComponent || triggerComponent.IsActivated())
12  return super.ComputeEffectiveDamage(damageContext, isDOT);
13 
14  return 0;
15  }
16 }
BaseDamageContext
Definition: BaseDamageContext.c:12
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
SCR_HitZone
Definition: SCR_HitZone.c:1
EDamageType
EDamageType
Definition: EDamageType.c:12
SCR_MineHitZone
Definition: SCR_MineHitZone.c:1