Class IndividualFriendlyFire
Checks friendly fire rules.
Inheritance
Inherited Members
Namespace: Exiled.Events.Patches.Generic
Assembly: Exiled.Events.dll
Syntax
public static class IndividualFriendlyFire
Methods
| Improve this Doc View SourceCheckFriendlyFirePlayer(Footprint, ReferenceHub)
Checks if there can be damage between two players, according to the FF rules.
Declaration
public static bool CheckFriendlyFirePlayer(Footprint attackerFootprint, ReferenceHub victimHub)
Parameters
Type | Name | Description |
---|---|---|
Footprinting.Footprint | attackerFootprint | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
Returns
Type | Description |
---|---|
System.Boolean | 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.
Declaration
public static bool CheckFriendlyFirePlayer(ReferenceHub attackerHub, ReferenceHub victimHub)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | attackerHub | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
Returns
Type | Description |
---|---|
System.Boolean | 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.
Declaration
public static bool CheckFriendlyFirePlayerHitbox(Footprint attackerFootprint, ReferenceHub victimHub)
Parameters
Type | Name | Description |
---|---|---|
Footprinting.Footprint | attackerFootprint | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
Returns
Type | Description |
---|---|
System.Boolean | 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.
Declaration
public static bool CheckFriendlyFirePlayerHitbox(ReferenceHub attackerHub, ReferenceHub victimHub)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | attackerHub | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
Returns
Type | Description |
---|---|
System.Boolean | 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 Single)
Checks if there can be damage between two players, according to the FF rules.
Declaration
public static bool CheckFriendlyFirePlayerRules(Footprint attackerFootprint, ReferenceHub victimHub, out float ffMultiplier)
Parameters
Type | Name | Description |
---|---|---|
Footprinting.Footprint | attackerFootprint | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
System.Single | ffMultiplier | FF multiplier. |
Returns
Type | Description |
---|---|
System.Boolean | True if the attacker can damage the victim. |
Remarks
Friendly fire multiplier is also provided back if needed.
CheckFriendlyFirePlayerRules(ReferenceHub, ReferenceHub, out Single)
Checks if there can be damage between two players, according to the FF rules.
Declaration
public static bool CheckFriendlyFirePlayerRules(ReferenceHub attackerHub, ReferenceHub victimHub, out float ffMultiplier)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | attackerHub | The person attacking. |
ReferenceHub | victimHub | The person being attacked. |
System.Single | ffMultiplier | FF multiplier. |
Returns
Type | Description |
---|---|
System.Boolean | True if the attacker can damage the victim. |
Remarks
Friendly fire multiplier is also provided back if needed.