Table of Contents

Class EntityOilBarrel

Namespace
VoxelPlayground.Entity
Assembly
GamePlay.dll
[RequireComponent(typeof(VoxelDestructor))]
public class EntityOilBarrel : EntityAttachmentItem
Inheritance
object
EntityOilBarrel
Derived
Inherited Members
Extension Methods

Fields

demolishChance

public float demolishChance

Field Value

float

demolishRadiusRatio

public float demolishRadiusRatio

Field Value

float

explosionDemolishForce

public float explosionDemolishForce

Field Value

float

explosionForce

public float explosionForce

Field Value

float

explosionForceAttenuationCurve

public AnimationCurve explosionForceAttenuationCurve

Field Value

AnimationCurve

explosionRadius

[Header("Nuclear Bomb")]
public float explosionRadius

Field Value

float

explosionVfxScale

public float explosionVfxScale

Field Value

float

explosionVfxTimes

public int explosionVfxTimes

Field Value

int

explosionYScale

public float explosionYScale

Field Value

float

explosive

public Explosive explosive

Field Value

Explosive

immediateDestroyRadiusRatio

public float immediateDestroyRadiusRatio

Field Value

float

isNuclearBomb

public bool isNuclearBomb

Field Value

bool

jetBeginCountdown

public float jetBeginCountdown

Field Value

float

jetDuration

public float jetDuration

Field Value

float

jetForce

public float jetForce

Field Value

float

jetMass

public float jetMass

Field Value

float

jetTrail

public GameObject jetTrail

Field Value

GameObject

overallExplosiveFactor

public static float overallExplosiveFactor

Field Value

float

splashDelay

public float splashDelay

Field Value

float

splashRadiusRatio

public float splashRadiusRatio

Field Value

float

thisCo

public Collider thisCo

Field Value

Collider

thisCoTransform

public Transform thisCoTransform

Field Value

Transform

Properties

Dysfunctional

public override bool Dysfunctional { get; set; }

Property Value

bool

Methods

Activate()

public override void Activate()

Explode(Vector3, Collider, Vector3)

protected void Explode(Vector3 hitPoint, Collider collider = null, Vector3 normal = default)

Parameters

hitPoint Vector3
collider Collider
normal Vector3

ExplodeNuclear()

[Button(ButtonSizes.Gigantic)]
public void ExplodeNuclear()

OnEnable()

public override void OnEnable()

OnIgnite(Vector3, float)

public override void OnIgnite(Vector3 hitPoint, float radius)

Parameters

hitPoint Vector3
radius float

Update()

Update is called every frame, if the MonoBehaviour is enabled.

public void Update()

UpdateExplosiveFactor(float)

public void UpdateExplosiveFactor(float fac)

Parameters

fac float