mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 05:33:45 +00:00
Disable motion blur during cutscenes
This commit is contained in:
parent
d2e594db2b
commit
e59fe36cca
2 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include "RpAnimBlend.h"
|
#include "RpAnimBlend.h"
|
||||||
#include "ModelIndices.h"
|
#include "ModelIndices.h"
|
||||||
#include "TempColModels.h"
|
#include "TempColModels.h"
|
||||||
|
#include "postfx.h"
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
const char *szTrackName;
|
const char *szTrackName;
|
||||||
|
@ -129,6 +130,7 @@ CAnimBlendAssocGroup CCutsceneMgr::ms_cutsceneAssociations;
|
||||||
CVector CCutsceneMgr::ms_cutsceneOffset;
|
CVector CCutsceneMgr::ms_cutsceneOffset;
|
||||||
float CCutsceneMgr::ms_cutsceneTimer;
|
float CCutsceneMgr::ms_cutsceneTimer;
|
||||||
uint32 CCutsceneMgr::ms_cutsceneLoadStatus;
|
uint32 CCutsceneMgr::ms_cutsceneLoadStatus;
|
||||||
|
bool CCutsceneMgr::ms_blurSetting;
|
||||||
|
|
||||||
RpAtomic *
|
RpAtomic *
|
||||||
CalculateBoundingSphereRadiusCB(RpAtomic *atomic, void *data)
|
CalculateBoundingSphereRadiusCB(RpAtomic *atomic, void *data)
|
||||||
|
@ -232,6 +234,10 @@ CCutsceneMgr::LoadCutsceneData(const char *szCutsceneName)
|
||||||
pPlayerPed->m_fCurrentStamina = pPlayerPed->m_fMaxStamina;
|
pPlayerPed->m_fCurrentStamina = pPlayerPed->m_fMaxStamina;
|
||||||
CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_CUTSCENE);
|
CPad::GetPad(0)->SetDisablePlayerControls(PLAYERCONTROL_CUTSCENE);
|
||||||
CWorld::Players[CWorld::PlayerInFocus].MakePlayerSafe(true);
|
CWorld::Players[CWorld::PlayerInFocus].MakePlayerSafe(true);
|
||||||
|
|
||||||
|
// save blur state and disable it
|
||||||
|
ms_blurSetting = CPostFX::MotionBlurOn;
|
||||||
|
CPostFX::MotionBlurOn = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -363,6 +369,7 @@ CCutsceneMgr::DeleteCutsceneData(void)
|
||||||
TheCamera.SetWideScreenOff();
|
TheCamera.SetWideScreenOff();
|
||||||
ms_running = false;
|
ms_running = false;
|
||||||
ms_loaded = false;
|
ms_loaded = false;
|
||||||
|
CPostFX::MotionBlurOn = ms_blurSetting;
|
||||||
|
|
||||||
FindPlayerPed()->bIsVisible = true;
|
FindPlayerPed()->bIsVisible = true;
|
||||||
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_CUTSCENE);
|
CPad::GetPad(0)->SetEnablePlayerControls(PLAYERCONTROL_CUTSCENE);
|
||||||
|
|
|
@ -16,6 +16,7 @@ class CCutsceneMgr
|
||||||
static bool ms_loaded;
|
static bool ms_loaded;
|
||||||
static bool ms_animLoaded;
|
static bool ms_animLoaded;
|
||||||
static bool ms_useLodMultiplier;
|
static bool ms_useLodMultiplier;
|
||||||
|
static bool ms_blurSetting;
|
||||||
|
|
||||||
static char ms_cutsceneName[CUTSCENENAMESIZE];
|
static char ms_cutsceneName[CUTSCENENAMESIZE];
|
||||||
static CAnimBlendAssocGroup ms_cutsceneAssociations;
|
static CAnimBlendAssocGroup ms_cutsceneAssociations;
|
||||||
|
|
Loading…
Reference in a new issue