Search Results for

    Show / Hide Table of Contents

    Class IndividualFriendlyFire

    Checks friendly fire rules.

    Inheritance
    System.Object
    IndividualFriendlyFire
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.Events.Patches.Generic
    Assembly: Exiled.Events.dll
    Syntax
    public static class IndividualFriendlyFire

    Methods

    | Improve this Doc View Source

    CheckFriendlyFirePlayer(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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX