Third Person Cover Shooter
1.6
|
A version of a grenade that applies a DamageBuff to objects with CharacterMotor. More...
Public Member Functions | |
ToxicGrenade () | |
Public Member Functions inherited from CoverShooter.Grenade | |
void | Fly (Vector3 origin, Vector3 velocity, float gravity) |
Launched the grenade on flight with giver parameters. More... | |
void | Activate (Actor attacker, float delay=0) |
Sets the grenade to explode on collision. More... | |
Public Attributes | |
float | DamageMultiplier = 0.5f |
How much the targets damage is multiplied while the buff is active. More... | |
float | Duration = 6 |
Duration of the damage buff applied to the target. More... | |
Public Attributes inherited from CoverShooter.Grenade | |
GameObject | Explosion |
Explosion prefab to instantiate on detonation. More... | |
float | ExplosionRadius = 4.5f |
Distance from the explosion center where damage reaches 0. More... | |
float | CenterDamage = 150 |
Damage done at the center of explosion. More... | |
float | Bounciness = 0.3f |
Fraction of velocity retained when bouncing from a surface. More... | |
float | Timer = 3 |
Explosion timer in seconds counted from activation. More... | |
float | ShakeDuration = 0.5f |
Camera shake duration when exploded. More... | |
float | ShakeIntensity = 100 |
Camera shake intensity when close to the camera. More... | |
GameObject | ExplosionPreview |
Prefab to instantiate to display grenade explosion preview. More... | |
float | PreviewTime |
Time in seconds since the activation to display the explosion preview. More... | |
Protected Member Functions | |
override void | Apply (GameObject target, Vector3 position, Vector3 normal, float fraction) |
Adds a DamageBuff to the target object, but only if it contains CharacterMotor. More... | |
Additional Inherited Members | |
Properties inherited from CoverShooter.Grenade | |
Actor | Attacker [get] |
Manages flight and explosion of a grenade. More... | |
A version of a grenade that applies a DamageBuff to objects with CharacterMotor.
CoverShooter.ToxicGrenade.ToxicGrenade | ( | ) |
|
protectedvirtual |
Adds a DamageBuff to the target object, but only if it contains CharacterMotor.
Reimplemented from CoverShooter.Grenade.
float CoverShooter.ToxicGrenade.DamageMultiplier = 0.5f |
How much the targets damage is multiplied while the buff is active.
float CoverShooter.ToxicGrenade.Duration = 6 |
Duration of the damage buff applied to the target.