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 (!m_bIsInitialised) return;
if (mood < 4) { if (mood < MAX_PLAYER_MOODS) {
m_bPlayerMood = mood; m_nPlayerMood = mood;
field_4B34 = CTimer::GetTimeInMilliseconds() + time; m_nPlayerMoodTimer = CTimer::GetTimeInMilliseconds() + time;
} }
} }

View File

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

View File

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