mirror of
https://github.com/halpz/re3.git
synced 2024-12-25 18:05:27 +00:00
Fix build and use enum in ProcessPlayerMood
This commit is contained in:
parent
4bcd176944
commit
c3cbf4353d
|
@ -307,20 +307,16 @@ cAudioManager::ProcessPlayerMood()
|
|||
if (m_nPlayerMoodTimer <= curTime) {
|
||||
playerPed = FindPlayerPed();
|
||||
if (playerPed != nil) {
|
||||
/*
|
||||
|
||||
if (playerPed->m_pWanted->m_nWantedLevel > 3) {
|
||||
m_nPlayerMood = 2;
|
||||
m_nPlayerMood = PLAYER_MOOD_ANGRY;
|
||||
return;
|
||||
}
|
||||
if (playerPed->m_pWanted->m_nWantedLevel > 1) {
|
||||
m_nPlayerMood = 1;
|
||||
return;
|
||||
}
|
||||
*/
|
||||
if (playerPed->m_pWanted->m_nWantedLevel > 1) {
|
||||
m_nPlayerMood = (playerPed->m_pWanted->m_nWantedLevel > 3) ? 2 : 1;
|
||||
m_nPlayerMood = PLAYER_MOOD_PISSED_OFF;
|
||||
return;
|
||||
}
|
||||
|
||||
lastMisstonPassedTime = CTheScripts::GetLastMissionPassedTime();
|
||||
if (*lastMisstonPassedTime != -1) {
|
||||
if (curTime < *lastMisstonPassedTime) {
|
||||
|
@ -328,11 +324,11 @@ cAudioManager::ProcessPlayerMood()
|
|||
return;
|
||||
}
|
||||
if (curTime < *lastMisstonPassedTime + 180000) {
|
||||
m_nPlayerMood = 3;
|
||||
m_nPlayerMood = PLAYER_MOOD_WISECRACKING;
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_nPlayerMood = 0;
|
||||
m_nPlayerMood = PLAYER_MOOD_CALM;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "AudioCollision.h"
|
||||
#include "PoliceRadio.h"
|
||||
#include "VehicleModelInfo.h"
|
||||
#include "vehicle.h"
|
||||
#include "Vehicle.h"
|
||||
|
||||
class tSound
|
||||
{
|
||||
|
@ -309,14 +309,14 @@ public:
|
|||
bool ProcessBoatEngine(cVehicleParams *params);
|
||||
bool ProcessBoatMovingOverWater(cVehicleParams *params);
|
||||
#ifdef GTA_BRIDGE
|
||||
void ProcessBridge();
|
||||
void ProcessBridgeMotor();
|
||||
void ProcessBridgeOneShots();
|
||||
void ProcessBridgeWarning();
|
||||
void ProcessBridge(); // done(bcs not exists in VC)
|
||||
void ProcessBridgeMotor(); // done(bcs not exists in VC)
|
||||
void ProcessBridgeOneShots(); // done(bcs not exists in VC)
|
||||
void ProcessBridgeWarning(); // done(bcs not exists in VC)
|
||||
#endif
|
||||
bool ProcessCarBombTick(cVehicleParams *params); // done
|
||||
void ProcessCesna(cVehicleParams *params); //
|
||||
//void ProcessCrane(); //
|
||||
//void ProcessCrane(); // done(bcs not exists in VC)
|
||||
bool ProcessEngineDamage(cVehicleParams *params); // done
|
||||
void ProcessEntity(int32 sound); // done
|
||||
void ProcessExplosions(int32 explosion); // done
|
||||
|
@ -352,7 +352,7 @@ public:
|
|||
void ProcessScriptObject(int32 id); // done
|
||||
void ProcessSpecial(); // done
|
||||
#ifdef GTA_TRAIN
|
||||
bool ProcessTrainNoise(cVehicleParams *params);
|
||||
bool ProcessTrainNoise(cVehicleParams *params); //done(bcs not exists in VC)
|
||||
#endif
|
||||
void ProcessVehicle(CVehicle *vehicle); // done
|
||||
bool ProcessVehicleDoors(cVehicleParams *params); // done
|
||||
|
|
Loading…
Reference in a new issue