// sentrygun hitted by EMP explosion public void OnEMPExplosionHit(ExplosionEMP Explosion) { if (IsFriend(Explosion.Agent)) { return; } TakeDamage(Explosion.Agent, float.MaxValue, Explosion.Impulse, Explosion.m_WeaponID, Explosion.m_ItemID); }
// mine hitted by EMP explosion public void OnEMPExplosionHit(ExplosionEMP Explosion) { if (m_Owner.IsFriend(Explosion.Agent)) { return; } if (uLink.Network.isServer) { Explode(); PPIManager.Instance.ServerAddScoreForMineKill(Explosion.Agent.NetworkView.owner); NetworkView.RPC("ExplodeOnClient", uLink.RPCMode.Others); uLink.Network.Destroy(gameObject); } }