src/weapons/AssaultRifle.js
/**
	* Reloads the weapon.
	*
	* @return {AssaultRifle} A reference to this weapon.
	*/
Reloads the weapon.
@return {AssaultRifle} A reference to this weapon.
Reloads the weapon . @return { AssaultRifle } A reference to this weapon .
reload() {
		this.status = WEAPON_STATUS_RELOAD;
		const audio = this.audios.get( 'reload' );
		if ( audio.isPlaying === true ) audio.stop();
		audio.play();
		if ( this.mixer ) {
			const animation = this.animations.get( 'reload' );
			animation.stop();
			animation.play();
		}
		this.endTimeReload = this.currentTime + this.reloadTime;
		return this;
	}
reload ( ) { this . status = WEAPON_STATUS_RELOAD ; const audio = this . audios . get ( 'reload' ) ; if ( audio . isPlaying === true ) audio . stop ( ) ; audio . play ( ) ; if ( this . mixer ) { const animation = this . animations . get ( 'reload' ) ; animation . stop ( ) ; animation . play ( ) ; } this . endTimeReload = this . currentTime + this . reloadTime ; return this ; }
Reloads the weapon.
Reloads the weapon .
// audio // animation