Corgi Engine  v8.8
MoreMountains.CorgiEngine.TypedDamage Class Reference

A class used to store and define typed damage impact : damage caused, condition or movement speed changes, etc More...

Public Attributes

DamageType AssociatedDamageType
 the type of damage associated to this definition More...
 
float MinDamageCaused = 10f
 The min amount of health to remove from the player's health. More...
 
float MaxDamageCaused = 10f
 The max amount of health to remove from the player's health. More...
 
bool ForceCharacterCondition = false
 whether or not this damage, when applied, should force the character into a specified condition More...
 
CharacterStates.CharacterConditions ForcedCondition
 when in forced character condition mode, the condition to which to swap More...
 
bool DisableGravity = false
 when in forced character condition mode, whether or not to disable gravity More...
 
bool ResetControllerForces = false
 when in forced character condition mode, whether or not to reset controller forces More...
 
float ForcedConditionDuration = 3f
 when in forced character condition mode, the duration of the effect, after which condition will be reverted More...
 
bool ApplyMovementMultiplier = false
 whether or not to apply a movement multiplier to the damaged character More...
 
float MovementMultiplier = 0.5f
 the movement multiplier to apply when ApplyMovementMultiplier is true More...
 
float MovementMultiplierDuration = 2f
 the duration of the movement multiplier, if ApplyMovementMultiplier is true More...
 

Protected Attributes

int _lastRandomFrame = -1000
 
float _lastRandomValue = 0f
 

Properties

virtual float DamageCaused [get]
 

Detailed Description

A class used to store and define typed damage impact : damage caused, condition or movement speed changes, etc

Member Data Documentation

◆ _lastRandomFrame

int MoreMountains.CorgiEngine.TypedDamage._lastRandomFrame = -1000
protected

◆ _lastRandomValue

float MoreMountains.CorgiEngine.TypedDamage._lastRandomValue = 0f
protected

◆ ApplyMovementMultiplier

bool MoreMountains.CorgiEngine.TypedDamage.ApplyMovementMultiplier = false

whether or not to apply a movement multiplier to the damaged character

◆ AssociatedDamageType

DamageType MoreMountains.CorgiEngine.TypedDamage.AssociatedDamageType

the type of damage associated to this definition

◆ DisableGravity

bool MoreMountains.CorgiEngine.TypedDamage.DisableGravity = false

when in forced character condition mode, whether or not to disable gravity

◆ ForceCharacterCondition

bool MoreMountains.CorgiEngine.TypedDamage.ForceCharacterCondition = false

whether or not this damage, when applied, should force the character into a specified condition

◆ ForcedCondition

CharacterStates.CharacterConditions MoreMountains.CorgiEngine.TypedDamage.ForcedCondition

when in forced character condition mode, the condition to which to swap

◆ ForcedConditionDuration

float MoreMountains.CorgiEngine.TypedDamage.ForcedConditionDuration = 3f

when in forced character condition mode, the duration of the effect, after which condition will be reverted

◆ MaxDamageCaused

float MoreMountains.CorgiEngine.TypedDamage.MaxDamageCaused = 10f

The max amount of health to remove from the player's health.

◆ MinDamageCaused

float MoreMountains.CorgiEngine.TypedDamage.MinDamageCaused = 10f

The min amount of health to remove from the player's health.

◆ MovementMultiplier

float MoreMountains.CorgiEngine.TypedDamage.MovementMultiplier = 0.5f

the movement multiplier to apply when ApplyMovementMultiplier is true

◆ MovementMultiplierDuration

float MoreMountains.CorgiEngine.TypedDamage.MovementMultiplierDuration = 2f

the duration of the movement multiplier, if ApplyMovementMultiplier is true

◆ ResetControllerForces

bool MoreMountains.CorgiEngine.TypedDamage.ResetControllerForces = false

when in forced character condition mode, whether or not to reset controller forces

Property Documentation

◆ DamageCaused

virtual float MoreMountains.CorgiEngine.TypedDamage.DamageCaused
get

The documentation for this class was generated from the following file: