Third Person Cover Shooter  1.6
CoverShooter.SmokeGrenade Class Reference

A version of a grenade that applies a VisionBuff to objects with CharacterMotor. More...

Inheritance diagram for CoverShooter.SmokeGrenade:
CoverShooter.Grenade

Public Member Functions

 SmokeGrenade ()
 
- 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 VisionMultiplier = 0.1f
 Distance multiplier for characters affected by the grenade. More...
 
float Duration = 6
 Duration of the buff applied to affected characters. 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 VisionBuff 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...
 

Detailed Description

A version of a grenade that applies a VisionBuff to objects with CharacterMotor.

Constructor & Destructor Documentation

◆ SmokeGrenade()

CoverShooter.SmokeGrenade.SmokeGrenade ( )

Member Function Documentation

◆ Apply()

override void CoverShooter.SmokeGrenade.Apply ( GameObject  target,
Vector3  position,
Vector3  normal,
float  fraction 
)
protectedvirtual

Adds a VisionBuff to the target object, but only if it contains CharacterMotor.

Reimplemented from CoverShooter.Grenade.

Member Data Documentation

◆ Duration

float CoverShooter.SmokeGrenade.Duration = 6

Duration of the buff applied to affected characters.

◆ VisionMultiplier

float CoverShooter.SmokeGrenade.VisionMultiplier = 0.1f

Distance multiplier for characters affected by the grenade.


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