mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 17:40:00 +00:00
Reverting tabs back to spaces for aap
This commit is contained in:
parent
f89df29001
commit
7eee938de2
|
@ -65,8 +65,8 @@ bool &bDidWeProcessAnyCinemaCam = *(bool*)0x95CD46;
|
||||||
#define KEYJUSTDOWN(k) ControlsManager.GetIsKeyboardKeyJustDown((RsKeyCodes)k)
|
#define KEYJUSTDOWN(k) ControlsManager.GetIsKeyboardKeyJustDown((RsKeyCodes)k)
|
||||||
#define KEYDOWN(k) ControlsManager.GetIsKeyboardKeyDown((RsKeyCodes)k)
|
#define KEYDOWN(k) ControlsManager.GetIsKeyboardKeyDown((RsKeyCodes)k)
|
||||||
#define CTRLJUSTDOWN(key) \
|
#define CTRLJUSTDOWN(key) \
|
||||||
((KEYDOWN(rsLCTRL) || KEYDOWN(rsRCTRL)) && KEYJUSTDOWN((RsKeyCodes)key) || \
|
((KEYDOWN(rsLCTRL) || KEYDOWN(rsRCTRL)) && KEYJUSTDOWN((RsKeyCodes)key) || \
|
||||||
(KEYJUSTDOWN(rsLCTRL) || KEYJUSTDOWN(rsRCTRL)) && KEYDOWN((RsKeyCodes)key))
|
(KEYJUSTDOWN(rsLCTRL) || KEYJUSTDOWN(rsRCTRL)) && KEYDOWN((RsKeyCodes)key))
|
||||||
#define CTRLDOWN(key) ((KEYDOWN(rsLCTRL) || KEYDOWN(rsRCTRL)) && KEYDOWN((RsKeyCodes)key))
|
#define CTRLDOWN(key) ((KEYDOWN(rsLCTRL) || KEYDOWN(rsRCTRL)) && KEYDOWN((RsKeyCodes)key))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1223,7 +1223,7 @@ CCamera::CamControl(void)
|
||||||
ReqMode == CCam::MODE_1STPERSON_RUNABOUT || ReqMode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
ReqMode == CCam::MODE_1STPERSON_RUNABOUT || ReqMode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
||||||
ReqMode == CCam::MODE_FIGHT_CAM_RUNABOUT || ReqMode == CCam::MODE_HELICANNON_1STPERSON ||
|
ReqMode == CCam::MODE_FIGHT_CAM_RUNABOUT || ReqMode == CCam::MODE_HELICANNON_1STPERSON ||
|
||||||
WhoIsInControlOfTheCamera == CAMCONTROL_SCRIPT ||
|
WhoIsInControlOfTheCamera == CAMCONTROL_SCRIPT ||
|
||||||
m_bJustCameOutOfGarage || m_bPlayerIsInGarage)
|
m_bJustCameOutOfGarage || m_bPlayerIsInGarage)
|
||||||
canUseObbeCam = false;
|
canUseObbeCam = false;
|
||||||
|
|
||||||
if(m_bObbeCinematicPedCamOn && canUseObbeCam)
|
if(m_bObbeCinematicPedCamOn && canUseObbeCam)
|
||||||
|
@ -1468,9 +1468,9 @@ CCamera::CamControl(void)
|
||||||
|
|
||||||
// Ped visibility
|
// Ped visibility
|
||||||
if((Cams[ActiveCam].Mode == CCam::MODE_1STPERSON ||
|
if((Cams[ActiveCam].Mode == CCam::MODE_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER) && pTargetEntity->IsPed() ||
|
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER) && pTargetEntity->IsPed() ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_FLYBY)
|
Cams[ActiveCam].Mode == CCam::MODE_FLYBY)
|
||||||
FindPlayerPed()->bIsVisible = false;
|
FindPlayerPed()->bIsVisible = false;
|
||||||
else
|
else
|
||||||
|
@ -1566,15 +1566,15 @@ CCamera::UpdateSoundDistances(void)
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
if((Cams[ActiveCam].Mode == CCam::MODE_1STPERSON ||
|
if((Cams[ActiveCam].Mode == CCam::MODE_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_SNIPER_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_SNIPER_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_1STPERSON_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_1STPERSON_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_FIGHT_CAM_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_FIGHT_CAM_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_HELICANNON_1STPERSON ||
|
Cams[ActiveCam].Mode == CCam::MODE_HELICANNON_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER) &&
|
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER) &&
|
||||||
pTargetEntity->IsPed())
|
pTargetEntity->IsPed())
|
||||||
center = GetPosition() + 0.5f*GetForward();
|
center = GetPosition() + 0.5f*GetForward();
|
||||||
else
|
else
|
||||||
|
@ -1856,14 +1856,14 @@ CCamera::StartTransition(int16 newMode)
|
||||||
m_bUseTransitionBeta = false;
|
m_bUseTransitionBeta = false;
|
||||||
|
|
||||||
if((Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
if((Cams[ActiveCam].Mode == CCam::MODE_SNIPER ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER ||
|
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_SNIPER_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_SNIPER_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_ROCKETLAUNCHER_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_M16_1STPERSON_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_FIGHT_CAM_RUNABOUT ||
|
Cams[ActiveCam].Mode == CCam::MODE_FIGHT_CAM_RUNABOUT ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_HELICANNON_1STPERSON ||
|
Cams[ActiveCam].Mode == CCam::MODE_HELICANNON_1STPERSON ||
|
||||||
Cams[ActiveCam].Mode == CCam::MODE_1STPERSON_RUNABOUT) &&
|
Cams[ActiveCam].Mode == CCam::MODE_1STPERSON_RUNABOUT) &&
|
||||||
pTargetEntity->IsPed()){
|
pTargetEntity->IsPed()){
|
||||||
float angle = CGeneral::GetATanOfXY(Cams[ActiveCam].Front.x, Cams[ActiveCam].Front.y) - HALFPI;
|
float angle = CGeneral::GetATanOfXY(Cams[ActiveCam].Front.x, Cams[ActiveCam].Front.y) - HALFPI;
|
||||||
((CPed*)pTargetEntity)->m_fRotationCur = angle;
|
((CPed*)pTargetEntity)->m_fRotationCur = angle;
|
||||||
|
@ -2184,12 +2184,12 @@ CCamera::DrawBordersForWideScreen(void)
|
||||||
|
|
||||||
CSprite2d::DrawRect(
|
CSprite2d::DrawRect(
|
||||||
CRect(0.0f, (SCREEN_HEIGHT/2) * m_ScreenReductionPercentage/100.0f - 8.0f,
|
CRect(0.0f, (SCREEN_HEIGHT/2) * m_ScreenReductionPercentage/100.0f - 8.0f,
|
||||||
SCREEN_WIDTH, 0.0f),
|
SCREEN_WIDTH, 0.0f),
|
||||||
CRGBA(0, 0, 0, 255));
|
CRGBA(0, 0, 0, 255));
|
||||||
|
|
||||||
CSprite2d::DrawRect(
|
CSprite2d::DrawRect(
|
||||||
CRect(0.0f, SCREEN_HEIGHT,
|
CRect(0.0f, SCREEN_HEIGHT,
|
||||||
SCREEN_WIDTH, SCREEN_HEIGHT - (SCREEN_HEIGHT/2) * m_ScreenReductionPercentage/100.0f - 8.0f),
|
SCREEN_WIDTH, SCREEN_HEIGHT - (SCREEN_HEIGHT/2) * m_ScreenReductionPercentage/100.0f - 8.0f),
|
||||||
CRGBA(0, 0, 0, 255));
|
CRGBA(0, 0, 0, 255));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2631,8 +2631,8 @@ CCamera::ProcessObbeCinemaCameraCar(void)
|
||||||
if(!bDidWeProcessAnyCinemaCam || IsItTimeForNewcam(SequenceOfCams[OldMode], TimeForNext)){
|
if(!bDidWeProcessAnyCinemaCam || IsItTimeForNewcam(SequenceOfCams[OldMode], TimeForNext)){
|
||||||
// This is very strange code...
|
// This is very strange code...
|
||||||
for(OldMode = (OldMode+1) % 14;
|
for(OldMode = (OldMode+1) % 14;
|
||||||
!TryToStartNewCamMode(SequenceOfCams[OldMode]) && i <= 14;
|
!TryToStartNewCamMode(SequenceOfCams[OldMode]) && i <= 14;
|
||||||
OldMode = (OldMode+1) % 14)
|
OldMode = (OldMode+1) % 14)
|
||||||
i++;
|
i++;
|
||||||
TimeForNext = CTimer::GetTimeInMilliseconds();
|
TimeForNext = CTimer::GetTimeInMilliseconds();
|
||||||
if(i >= 14){
|
if(i >= 14){
|
||||||
|
@ -2659,8 +2659,8 @@ CCamera::ProcessObbeCinemaCameraPed(void)
|
||||||
|
|
||||||
if(!bDidWeProcessAnyCinemaCam || IsItTimeForNewcam(SequenceOfPedCams[PedOldMode], PedTimeForNext)){
|
if(!bDidWeProcessAnyCinemaCam || IsItTimeForNewcam(SequenceOfPedCams[PedOldMode], PedTimeForNext)){
|
||||||
for(PedOldMode = (PedOldMode+1) % 5;
|
for(PedOldMode = (PedOldMode+1) % 5;
|
||||||
!TryToStartNewCamMode(SequenceOfPedCams[PedOldMode]);
|
!TryToStartNewCamMode(SequenceOfPedCams[PedOldMode]);
|
||||||
PedOldMode = (PedOldMode+1) % 5);
|
PedOldMode = (PedOldMode+1) % 5);
|
||||||
PedTimeForNext = CTimer::GetTimeInMilliseconds();
|
PedTimeForNext = CTimer::GetTimeInMilliseconds();
|
||||||
}
|
}
|
||||||
bDidWeProcessAnyCinemaCam = true;
|
bDidWeProcessAnyCinemaCam = true;
|
||||||
|
@ -2813,11 +2813,11 @@ CCamera::Process_Train_Camera_Control(void)
|
||||||
uint32 node = m_iCurrentTrainCamNode;
|
uint32 node = m_iCurrentTrainCamNode;
|
||||||
for(i = 0; i < m_uiNumberOfTrainCamNodes && !found; i++){
|
for(i = 0; i < m_uiNumberOfTrainCamNodes && !found; i++){
|
||||||
if(target->IsWithinArea(m_arrTrainCamNode[node].m_cvecMinPointInRange.x,
|
if(target->IsWithinArea(m_arrTrainCamNode[node].m_cvecMinPointInRange.x,
|
||||||
m_arrTrainCamNode[node].m_cvecMinPointInRange.y,
|
m_arrTrainCamNode[node].m_cvecMinPointInRange.y,
|
||||||
m_arrTrainCamNode[node].m_cvecMinPointInRange.z,
|
m_arrTrainCamNode[node].m_cvecMinPointInRange.z,
|
||||||
m_arrTrainCamNode[node].m_cvecMaxPointInRange.x,
|
m_arrTrainCamNode[node].m_cvecMaxPointInRange.x,
|
||||||
m_arrTrainCamNode[node].m_cvecMaxPointInRange.y,
|
m_arrTrainCamNode[node].m_cvecMaxPointInRange.y,
|
||||||
m_arrTrainCamNode[node].m_cvecMaxPointInRange.z)){
|
m_arrTrainCamNode[node].m_cvecMaxPointInRange.z)){
|
||||||
m_iCurrentTrainCamNode = node;
|
m_iCurrentTrainCamNode = node;
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue