player mood enum

This commit is contained in:
Sergeanur 2020-09-10 00:32:51 +03:00
parent c5b411c1ed
commit 7aca08a954
3 changed files with 14 additions and 5 deletions

View File

@ -3839,9 +3839,9 @@ cAudioManager::SetPlayersMood(uint8 mood, int32 time)
{
if (!m_bIsInitialised) return;
if (mood < 4) {
m_bPlayerMood = mood;
field_4B34 = CTimer::GetTimeInMilliseconds() + time;
if (mood < MAX_PLAYER_MOODS) {
m_nPlayerMood = mood;
m_nPlayerMoodTimer = CTimer::GetTimeInMilliseconds() + time;
}
}

View File

@ -197,8 +197,8 @@ public:
// miami
uint8 m_bIsPlayerShutUp;
uint8 m_bPlayerMood;
uint32 field_4B34;
uint8 m_PlayerMood;
uint32 m_nPlayerMoodTimer;
uint8 field_rest[4];
uint8 field_4B3C;

View File

@ -27,6 +27,15 @@ enum eMusicMode
MUSICMODE_DISABLED,
};
enum ePlayerMood
{
PLAYER_MOOD_CALM = 0,
PLAYER_MOOD_PISSED_OFF,
PLAYER_MOOD_ANGRY,
PLAYER_MOOD_WISECRACKING,
MAX_PLAYER_MOODS,
};
enum eStreamedSounds
{
STREAMED_SOUND_RADIO_WILD,