Class IndividualFriendlyFire
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
attackerFootprintFootprintThe person attacking.
victimHubReferenceHubThe 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
attackerHubReferenceHubThe person attacking.
victimHubReferenceHubThe 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
attackerFootprintFootprintThe person attacking.
victimHubReferenceHubThe 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
attackerHubReferenceHubThe person attacking.
victimHubReferenceHubThe 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
attackerFootprintFootprintThe person attacking.
victimHubReferenceHubThe person being attacked.
ffMultiplierfloatFF 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
attackerHubReferenceHubThe person attacking.
victimHubReferenceHubThe person being attacked.
ffMultiplierfloatFF multiplier.
Returns
- bool
True if the attacker can damage the victim.
Remarks
Friendly fire multiplier is also provided back if needed.