Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Client/game_sa/CAEWeaponAudioEntitySA.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*****************************************************************************
*
* PROJECT: Multi Theft Auto
* LICENSE: See LICENSE in the top level directory
* FILE: game_sa/CAEWeaponAudioEntitySA.h
* PURPOSE: Weapon audio entity header
*
* Multi Theft Auto is available from https://www.multitheftauto.com/
*
*****************************************************************************/

#pragma once
#include "CAudioEngineSA.h"

enum class eMiniGunState : std::uint8_t
{
SPINNING,
FIRING,
STOPPING,
STOPPED,
};

enum class eChainsawState : std::uint8_t
{
IDLE,
ACTIVE,
CUTTING,
STOPPING,
STOPPED,
};

class CAEWeaponAudioEntitySAInterface : public CAEAudioEntity
{
public:
bool m_isMiniGunSpinActive;
bool m_isMiniGunFireActive;

std::uint8_t m_lastWeaponPlaneFrequencyIndex;

eMiniGunState m_miniGunState;
eChainsawState m_chainsawState;

std::uint32_t m_lastFlamethrowerFireTimeInMS;
std::uint32_t m_lastSpraycanFireTimeInMS;
std::uint32_t m_lastFireExtinguisherFireTimeInMS;
std::uint32_t m_lastMinigunFireTimeInMS;
std::uint32_t m_lastChainsawFireTimeInMS;
std::uint32_t m_lastGunFireTimeInMS;

CAESound* m_flameThrowerIdleGasLoopSound{};
};
static_assert(sizeof(CAEWeaponAudioEntitySAInterface) == 0xA0, "Invalid size for CAEWeaponAudioEntitySAInterface");
Loading
Loading