Class FlashGrenade
A wrapper class for InventorySystem.Items.ThrowableProjectiles.FlashbangGrenade.
public class FlashGrenade : Throwable, IWrapper<ItemBase>, IWrapper<ThrowableItem>
- Inheritance
-
FlashGrenade
- Inherited Members
- Extension Methods
Constructors
FlashGrenade(ThrowableItem)
Initializes a new instance of the FlashGrenade class.
public FlashGrenade(ThrowableItem itemBase)
Parameters
itemBase
ThrowableItemThe base InventorySystem.Items.ThrowableProjectiles.ThrowableItem class.
Properties
AdditionalBlindedEffect
Gets or sets the additional duration of the Blinded effect.
public float AdditionalBlindedEffect { get; set; }
Property Value
FuseTime
Gets or sets how long the fuse will last.
public float FuseTime { get; set; }
Property Value
MinimalDurationEffect
Gets or sets the minimum duration of player can take the effect.
public float MinimalDurationEffect { get; set; }
Property Value
Projectile
Gets a FlashbangProjectile to change grenade properties.
public FlashbangProjectile Projectile { get; }
Property Value
SurfaceDistanceIntensifier
Gets or sets the how mush the flash grenade going to be intensified when explode at Surface.
public float SurfaceDistanceIntensifier { get; set; }
Property Value
Methods
Clone()
Clones current FlashGrenade object.
public override Item Clone()
Returns
- Item
New FlashGrenade object.
SpawnActive(Vector3, Player)
Spawns an active grenade on the map at the specified location.
public FlashbangProjectile SpawnActive(Vector3 position, Player owner = null)
Parameters
position
Vector3The location to spawn the grenade.
owner
PlayerOptional: The Player owner of the grenade.
Returns
- FlashbangProjectile
Spawned grenade.
ToString()
Returns the FlashGrenade in a human readable format.
public override string ToString()
Returns
- string
A string containing FlashGrenade-related data.