Search Results for

    Show / Hide Table of Contents

    Class CustomGrenade

    The Custom Grenade base class.

    Inheritance
    System.Object
    CustomItem
    CustomGrenade
    Inherited Members
    CustomItem.Registered
    CustomItem.Id
    CustomItem.Name
    CustomItem.Description
    CustomItem.Weight
    CustomItem.SpawnProperties
    CustomItem.Scale
    CustomItem.TrackedSerials
    CustomItem.ShouldMessageOnGban
    CustomItem.Get(Int32)
    CustomItem.Get(UInt32)
    CustomItem.Get(String)
    CustomItem.Get(Type)
    CustomItem.TryGet(UInt32, CustomItem)
    CustomItem.TryGet(String, CustomItem)
    CustomItem.TryGet(Type, CustomItem)
    CustomItem.TryGet(Player, CustomItem)
    CustomItem.TryGet(Player, IEnumerable<CustomItem>)
    CustomItem.TryGet(Item, CustomItem)
    CustomItem.TryGet(Pickup, CustomItem)
    CustomItem.TrySpawn(UInt32, Vector3, Pickup)
    CustomItem.TrySpawn(String, Vector3, Pickup)
    CustomItem.TryGive(Player, String, Boolean)
    CustomItem.TryGive(Player, UInt32, Boolean)
    CustomItem.TryGive(Player, Type, Boolean)
    CustomItem.RegisterItems(Boolean, Object)
    CustomItem.RegisterItems(IEnumerable<Type>, Boolean, Boolean, Object)
    CustomItem.UnregisterItems()
    CustomItem.UnregisterItems(IEnumerable<Type>, Boolean)
    CustomItem.UnregisterItems(IEnumerable<CustomItem>, Boolean)
    CustomItem.Spawn(Single, Single, Single)
    CustomItem.Spawn(Single, Single, Single, Item)
    CustomItem.Spawn(Player, Player)
    CustomItem.Spawn(Player, Item, Player)
    CustomItem.Spawn(Vector3, Player)
    CustomItem.Spawn(Vector3, Item, Player)
    CustomItem.Spawn(IEnumerable<SpawnPoint>, UInt32)
    CustomItem.SpawnAll()
    CustomItem.Give(Player, Item, Boolean)
    CustomItem.Give(Player, Pickup, Boolean)
    CustomItem.Give(Player, Boolean)
    CustomItem.Init()
    CustomItem.Destroy()
    CustomItem.Check(Pickup)
    CustomItem.Check(Item)
    CustomItem.Check(Player)
    CustomItem.ToString()
    CustomItem.OnOwnerChangingRole(OwnerChangingRoleEventArgs)
    CustomItem.OnOwnerDying(OwnerDyingEventArgs)
    CustomItem.OnOwnerEscaping(OwnerEscapingEventArgs)
    CustomItem.OnOwnerHandcuffing(OwnerHandcuffingEventArgs)
    CustomItem.OnDropping(DroppingItemEventArgs)
    CustomItem.OnPickingUp(PickingUpItemEventArgs)
    CustomItem.OnChanging(ChangingItemEventArgs)
    CustomItem.OnUpgrading(UpgradingEventArgs)
    CustomItem.OnUpgrading(UpgradingItemEventArgs)
    CustomItem.OnAcquired(Player, Item, Boolean)
    CustomItem.OnWaitingForPlayers()
    CustomItem.ShowPickedUpMessage(Player)
    CustomItem.ShowSelectedMessage(Player)
    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.CustomItems.API.Features
    Assembly: Exiled.CustomItems.dll
    Syntax
    public abstract class CustomGrenade : CustomItem

    Properties

    | Improve this Doc View Source

    ExplodeOnCollision

    Gets or sets a value indicating whether gets or sets a value that determines if the grenade should explode immediately when contacting any surface.

    Declaration
    public abstract bool ExplodeOnCollision { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    FuseTime

    Gets or sets a value indicating how long the grenade's fuse time should be.

    Declaration
    public abstract float FuseTime { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Type

    Gets or sets the ItemType to use for this item.

    Declaration
    public override ItemType Type { get; set; }
    Property Value
    Type Description
    ItemType
    Overrides
    CustomItem.Type

    Methods

    | Improve this Doc View Source

    Check(Projectile)

    Checks to see if the grenade is a custom grenade.

    Declaration
    public virtual bool Check(Projectile grenade)
    Parameters
    Type Name Description
    Projectile grenade

    The grenade to check.

    Returns
    Type Description
    System.Boolean

    True if it is a custom grenade.

    | Improve this Doc View Source

    OnChangedIntoGrenade(ChangedIntoGrenadeEventArgs)

    Handles the tracking of custom grenade pickups that are changed into live grenades by a frag grenade explosion.

    Declaration
    protected virtual void OnChangedIntoGrenade(ChangedIntoGrenadeEventArgs ev)
    Parameters
    Type Name Description
    ChangedIntoGrenadeEventArgs ev

    ChangedIntoGrenadeEventArgs.

    | Improve this Doc View Source

    OnExploding(ExplodingGrenadeEventArgs)

    Handles tracking exploded custom grenades.

    Declaration
    protected virtual void OnExploding(ExplodingGrenadeEventArgs ev)
    Parameters
    Type Name Description
    ExplodingGrenadeEventArgs ev

    ExplodingGrenadeEventArgs.

    | Improve this Doc View Source

    OnThrowingRequest(ThrowingRequestEventArgs)

    Handles tracking thrown requests by custom grenades.

    Declaration
    protected virtual void OnThrowingRequest(ThrowingRequestEventArgs ev)
    Parameters
    Type Name Description
    ThrowingRequestEventArgs ev

    ThrowingRequestEventArgs.

    | Improve this Doc View Source

    OnThrownProjectile(ThrownProjectileEventArgs)

    Handles tracking thrown custom grenades.

    Declaration
    protected virtual void OnThrownProjectile(ThrownProjectileEventArgs ev)
    Parameters
    Type Name Description
    ThrownProjectileEventArgs ev

    ThrownProjectileEventArgs.

    | Improve this Doc View Source

    SubscribeEvents()

    Declaration
    protected override void SubscribeEvents()
    Overrides
    CustomItem.SubscribeEvents()
    | Improve this Doc View Source

    Throw(Vector3, Single, Single, Single, ItemType, Player)

    Throw the CustomGrenade object.

    Declaration
    public virtual Pickup Throw(Vector3 position, float force, float weight, float fuseTime = 3F, ItemType grenadeType = ItemType.GrenadeHE, Player player = null)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position

    The UnityEngine.Vector3position to throw at.

    System.Single force

    The amount of force to throw with.

    System.Single weight

    The System.SingleWeight of the Grenade.

    System.Single fuseTime

    The System.SingleFuseTime of the grenade.

    ItemType grenadeType

    The ItemTypeof the grenade to spawn.

    Player player

    The Player to count as the thrower of the grenade.

    Returns
    Type Description
    Pickup

    The Pickup spawned.

    | Improve this Doc View Source

    UnsubscribeEvents()

    Declaration
    protected override void UnsubscribeEvents()
    Overrides
    CustomItem.UnsubscribeEvents()

    Extension Methods

    Extensions.Register(CustomItem)
    Extensions.Unregister(CustomItem)
    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX