Third Person Cover Shooter  1.6
CoverShooter.GunSounds Class Reference

Generates randomised sounds on various gun events. More...

Inheritance diagram for CoverShooter.GunSounds:
CoverShooter.IGunListener

Public Member Functions

void OnPump ()
 Play pump sound. More...
 
void OnEject ()
 Play magazine eject sound. More...
 
void OnRechamber ()
 Play magazine load sound. More...
 
void OnFire (float delay)
 Play fire sound delayed by the given amount of time in seconds. More...
 
void OnEmptyFire ()
 Play empty magazine sounds. More...
 
void OnFullyLoaded ()
 Event spawned all the bullets are loaded. More...
 
void OnBulletLoad ()
 Bullet load event. More...
 
void OnPumpStart ()
 Event spawned before pumping. More...
 
void OnMagazineLoadStart ()
 Event spawned when magazine loading starts. More...
 
void OnBulletLoadStart ()
 Event spawned when bullet loading starts. More...
 

Public Attributes

AudioClip [] Eject
 Sound to play when ejecting a magazine. More...
 
AudioClip [] Rechamber
 Sound to play when a magazine is put inside the gun. More...
 
AudioClip [] Pump
 Possible sounds to play when pumping a shotgun. More...
 
AudioClip [] Fire
 Possible sounds to play on each bullet fire. More...
 
AudioClip [] EmptyFire
 Possible sounds to play on each fire attempt on empty magazine. More...
 

Detailed Description

Generates randomised sounds on various gun events.

Member Function Documentation

◆ OnBulletLoad()

void CoverShooter.GunSounds.OnBulletLoad ( )

Bullet load event.

Implements CoverShooter.IGunListener.

◆ OnBulletLoadStart()

void CoverShooter.GunSounds.OnBulletLoadStart ( )

Event spawned when bullet loading starts.

Implements CoverShooter.IGunListener.

◆ OnEject()

void CoverShooter.GunSounds.OnEject ( )

Play magazine eject sound.

Implements CoverShooter.IGunListener.

◆ OnEmptyFire()

void CoverShooter.GunSounds.OnEmptyFire ( )

Play empty magazine sounds.

Implements CoverShooter.IGunListener.

◆ OnFire()

void CoverShooter.GunSounds.OnFire ( float  delay)

Play fire sound delayed by the given amount of time in seconds.

Parameters
delayTime to delay the creation of sound.

Implements CoverShooter.IGunListener.

◆ OnFullyLoaded()

void CoverShooter.GunSounds.OnFullyLoaded ( )

Event spawned all the bullets are loaded.

Implements CoverShooter.IGunListener.

◆ OnMagazineLoadStart()

void CoverShooter.GunSounds.OnMagazineLoadStart ( )

Event spawned when magazine loading starts.

Implements CoverShooter.IGunListener.

◆ OnPump()

void CoverShooter.GunSounds.OnPump ( )

Play pump sound.

Implements CoverShooter.IGunListener.

◆ OnPumpStart()

void CoverShooter.GunSounds.OnPumpStart ( )

Event spawned before pumping.

Implements CoverShooter.IGunListener.

◆ OnRechamber()

void CoverShooter.GunSounds.OnRechamber ( )

Play magazine load sound.

Implements CoverShooter.IGunListener.

Member Data Documentation

◆ Eject

AudioClip [] CoverShooter.GunSounds.Eject

Sound to play when ejecting a magazine.

◆ EmptyFire

AudioClip [] CoverShooter.GunSounds.EmptyFire

Possible sounds to play on each fire attempt on empty magazine.

◆ Fire

AudioClip [] CoverShooter.GunSounds.Fire

Possible sounds to play on each bullet fire.

◆ Pump

AudioClip [] CoverShooter.GunSounds.Pump

Possible sounds to play when pumping a shotgun.

◆ Rechamber

AudioClip [] CoverShooter.GunSounds.Rechamber

Sound to play when a magazine is put inside the gun.


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