Search Results for

    Show / Hide Table of Contents

    Class CustomWeapon

    The Custom Weapon base class.

    Inheritance
    System.Object
    CustomItem
    CustomWeapon
    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(IEnumerable<SpawnPoint>, UInt32)
    CustomItem.SpawnAll()
    CustomItem.Give(Player, Item, Boolean)
    CustomItem.Give(Player, Pickup, 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 CustomWeapon : CustomItem

    Properties

    | Improve this Doc View Source

    Attachments

    Gets or sets value indicating what InventorySystem.Items.Firearms.Attachments.Components.Attachments the weapon will have.

    Declaration
    public virtual AttachmentName[] Attachments { get; set; }
    Property Value
    Type Description
    InventorySystem.Items.Firearms.Attachments.AttachmentName[]
    | Improve this Doc View Source

    ClipSize

    Gets or sets a value indicating how big of a clip the weapon will have.

    Declaration
    public virtual byte ClipSize { get; set; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Damage

    Gets or sets the weapon damage.

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

    FriendlyFire

    Gets or sets a value indicating whether or not to allow friendly fire with this weapon on FF-enabled servers.

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

    Type

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

    Methods

    | Improve this Doc View Source

    Give(Player, Boolean)

    Declaration
    public override void Give(Player player, bool displayMessage = true)
    Parameters
    Type Name Description
    Player player
    System.Boolean displayMessage
    Overrides
    CustomItem.Give(Player, Boolean)
    | Improve this Doc View Source

    OnHurting(HurtingEventArgs)

    Handles hurting for custom weapons.

    Declaration
    protected virtual void OnHurting(HurtingEventArgs ev)
    Parameters
    Type Name Description
    HurtingEventArgs ev

    HurtingEventArgs.

    | Improve this Doc View Source

    OnReloading(ReloadingWeaponEventArgs)

    Handles reloading for custom weapons.

    Declaration
    protected virtual void OnReloading(ReloadingWeaponEventArgs ev)
    Parameters
    Type Name Description
    ReloadingWeaponEventArgs ev

    ReloadingWeaponEventArgs.

    | Improve this Doc View Source

    OnShooting(ShootingEventArgs)

    Handles shooting for custom weapons.

    Declaration
    protected virtual void OnShooting(ShootingEventArgs ev)
    Parameters
    Type Name Description
    ShootingEventArgs ev

    ShootingEventArgs.

    | Improve this Doc View Source

    OnShot(ShotEventArgs)

    Handles shot for custom weapons.

    Declaration
    protected virtual void OnShot(ShotEventArgs ev)
    Parameters
    Type Name Description
    ShotEventArgs ev

    ShotEventArgs.

    | Improve this Doc View Source

    Spawn(Vector3, Item, Player)

    Declaration
    public override Pickup Spawn(Vector3 position, Item item, Player previousOwner = null)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position
    Item item
    Player previousOwner
    Returns
    Type Description
    Pickup
    Overrides
    CustomItem.Spawn(Vector3, Item, Player)
    | Improve this Doc View Source

    Spawn(Vector3, Player)

    Declaration
    public override Pickup Spawn(Vector3 position, Player previousOwner = null)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position
    Player previousOwner
    Returns
    Type Description
    Pickup
    Overrides
    CustomItem.Spawn(Vector3, Player)
    | Improve this Doc View Source

    SubscribeEvents()

    Declaration
    protected override void SubscribeEvents()
    Overrides
    CustomItem.SubscribeEvents()
    | 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