Table of Contents

Class IndividualFriendlyFire

Namespace
Exiled.Events.Patches.Generic
Assembly
Exiled.Events.dll

Checks friendly fire rules.

public static class IndividualFriendlyFire
Inheritance
IndividualFriendlyFire
Inherited Members

Methods

CheckFriendlyFirePlayer(Footprint, ReferenceHub)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayer(Footprint attackerFootprint, ReferenceHub victimHub)

Parameters

attackerFootprint Footprint

The person attacking.

victimHub ReferenceHub

The person being attacked.

Returns

bool

True if the attacker can damage the victim.

CheckFriendlyFirePlayer(ReferenceHub, ReferenceHub)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayer(ReferenceHub attackerHub, ReferenceHub victimHub)

Parameters

attackerHub ReferenceHub

The person attacking.

victimHub ReferenceHub

The person being attacked.

Returns

bool

True if the attacker can damage the victim.

Remarks

Use CheckFriendlyFirePlayer(Footprint, ReferenceHub) instead of this if the damage is not done instantly.

CheckFriendlyFirePlayerHitbox(Footprint, ReferenceHub)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayerHitbox(Footprint attackerFootprint, ReferenceHub victimHub)

Parameters

attackerFootprint Footprint

The person attacking.

victimHub ReferenceHub

The person being attacked.

Returns

bool

True if the attacker can damage the victim.

CheckFriendlyFirePlayerHitbox(ReferenceHub, ReferenceHub)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayerHitbox(ReferenceHub attackerHub, ReferenceHub victimHub)

Parameters

attackerHub ReferenceHub

The person attacking.

victimHub ReferenceHub

The person being attacked.

Returns

bool

True if the attacker can damage the victim.

Remarks

Use CheckFriendlyFirePlayerHitbox(Footprint, ReferenceHub) instead of this if the damage is not done instantly.

CheckFriendlyFirePlayerRules(Footprint, ReferenceHub, out float)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayerRules(Footprint attackerFootprint, ReferenceHub victimHub, out float ffMultiplier)

Parameters

attackerFootprint Footprint

The person attacking.

victimHub ReferenceHub

The person being attacked.

ffMultiplier float

FF multiplier.

Returns

bool

True if the attacker can damage the victim.

Remarks

Friendly fire multiplier is also provided back if needed.

CheckFriendlyFirePlayerRules(ReferenceHub, ReferenceHub, out float)

Checks if there can be damage between two players, according to the FF rules.

public static bool CheckFriendlyFirePlayerRules(ReferenceHub attackerHub, ReferenceHub victimHub, out float ffMultiplier)

Parameters

attackerHub ReferenceHub

The person attacking.

victimHub ReferenceHub

The person being attacked.

ffMultiplier float

FF multiplier.

Returns

bool

True if the attacker can damage the victim.

Remarks

Friendly fire multiplier is also provided back if needed.