mirror of
https://github.com/halpz/re3.git
synced 2025-07-05 08:40:48 +00:00
merge with master
This commit is contained in:
@ -33,6 +33,7 @@
|
||||
#include "Clock.h"
|
||||
#include "Timecycle.h"
|
||||
#include "RpAnimBlend.h"
|
||||
#include "AnimBlendAssociation.h"
|
||||
#include "Shadows.h"
|
||||
#include "Radar.h"
|
||||
#include "Hud.h"
|
||||
@ -207,6 +208,7 @@ PlayAnimation(RpClump *clump, AssocGroupId animGroup, AnimationId anim)
|
||||
animAssoc->SetRun();
|
||||
}
|
||||
|
||||
extern void (*DebugMenuProcess)(void);
|
||||
void
|
||||
CAnimViewer::Update(void)
|
||||
{
|
||||
@ -246,6 +248,9 @@ CAnimViewer::Update(void)
|
||||
}
|
||||
CPad::UpdatePads();
|
||||
CPad* pad = CPad::GetPad(0);
|
||||
|
||||
DebugMenuProcess();
|
||||
|
||||
CStreaming::UpdateForAnimViewer();
|
||||
CStreaming::RequestModel(modelId, 0);
|
||||
if (CStreaming::HasModelLoaded(modelId)) {
|
||||
|
@ -1530,7 +1530,7 @@ CCam::Process_FollowPedWithMouse(const CVector &CameraTarget, float TargetOrient
|
||||
CamDist = fBaseDist + Cos(Alpha)*fAngleDist;
|
||||
|
||||
if(TheCamera.m_bUseTransitionBeta)
|
||||
Beta = -CGeneral::GetATanOfXY(-Cos(m_fTransitionBeta), -Sin(m_fTransitionBeta));
|
||||
Beta = CGeneral::GetATanOfXY(-Cos(m_fTransitionBeta), -Sin(m_fTransitionBeta));
|
||||
|
||||
if(TheCamera.m_bCamDirectlyBehind)
|
||||
Beta = TheCamera.m_PedOrientForBehindOrInFront;
|
||||
|
@ -9,12 +9,14 @@
|
||||
#include "FileMgr.h"
|
||||
#include "main.h"
|
||||
#include "AnimManager.h"
|
||||
#include "AnimBlendAssociation.h"
|
||||
#include "AnimBlendAssocGroup.h"
|
||||
#include "AnimBlendClumpData.h"
|
||||
#include "Pad.h"
|
||||
#include "DMAudio.h"
|
||||
#include "World.h"
|
||||
#include "PlayerPed.h"
|
||||
#include "Wanted.h"
|
||||
#include "CutsceneHead.h"
|
||||
#include "RpAnimBlend.h"
|
||||
#include "ModelIndices.h"
|
||||
|
@ -212,7 +212,7 @@ CEventList::ReportCrimeForEvent(eEventType type, int32 crimeId, bool copsDontCar
|
||||
|
||||
#ifdef VC_PED_PORTS
|
||||
if (crime == CRIME_HIT_PED && ((CPed*)crimeId)->IsPointerValid() &&
|
||||
FindPlayerPed()->m_pWanted->m_nWantedLevel == 0 && ((CPed*)crimeId)->m_ped_flagE2) {
|
||||
FindPlayerPed()->m_pWanted->m_nWantedLevel == 0 && ((CPed*)crimeId)->bBeingChasedByPolice) {
|
||||
|
||||
if(!((CPed*)crimeId)->DyingOrDead()) {
|
||||
sprintf(gString, "$50 Good Citizen Bonus!");
|
||||
|
@ -94,7 +94,6 @@ int32 *&pControlEdit = *(int32**)0x628D08;
|
||||
bool &DisplayComboButtonErrMsg = *(bool*)0x628D14;
|
||||
int32 &MouseButtonJustClicked = *(int32*)0x628D0C;
|
||||
int32 &JoyButtonJustClicked = *(int32*)0x628D10;
|
||||
uint32 &nTimeForSomething = *(uint32*)0x628D54;
|
||||
bool &holdingScrollBar = *(bool*)0x628D59;
|
||||
//int32 *pControlTemp = 0;
|
||||
|
||||
@ -2202,15 +2201,15 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
field_535 = false;
|
||||
}
|
||||
|
||||
static int nTimeForSomething = 0;
|
||||
static uint32 lastTimeClickedScrollButton = 0;
|
||||
|
||||
if (CTimer::GetTimeInMillisecondsPauseMode() - nTimeForSomething >= 200) {
|
||||
if (CTimer::GetTimeInMillisecondsPauseMode() - lastTimeClickedScrollButton >= 200) {
|
||||
m_bPressedPgUpOnList = false;
|
||||
m_bPressedPgDnOnList = false;
|
||||
m_bPressedUpOnList = false;
|
||||
m_bPressedDownOnList = false;
|
||||
m_bPressedScrollButton = false;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
}
|
||||
|
||||
if (CPad::GetPad(0)->GetTabJustDown()) {
|
||||
@ -2249,7 +2248,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
m_nCurrExLayer = 19;
|
||||
if (!m_bPressedUpOnList) {
|
||||
m_bPressedUpOnList = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_DENIED, 0);
|
||||
ScrollUpListByOne();
|
||||
}
|
||||
@ -2271,7 +2270,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
m_nCurrExLayer = 19;
|
||||
if (!m_bPressedDownOnList) {
|
||||
m_bPressedDownOnList = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_DENIED, 0);
|
||||
ScrollDownListByOne();
|
||||
}
|
||||
@ -2286,7 +2285,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
m_nCurrExLayer = 19;
|
||||
if (!m_bPressedPgUpOnList) {
|
||||
m_bPressedPgUpOnList = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
m_bShowMouse = false;
|
||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_DENIED, 0);
|
||||
PageUpList(false);
|
||||
@ -2298,7 +2297,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
m_nCurrExLayer = 19;
|
||||
if (!m_bPressedPgDnOnList) {
|
||||
m_bPressedPgDnOnList = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
m_bShowMouse = false;
|
||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_DENIED, 0);
|
||||
PageDownList(false);
|
||||
@ -2384,7 +2383,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
case HOVEROPTION_CLICKED_SCROLL_UP:
|
||||
if (!m_bPressedScrollButton) {
|
||||
m_bPressedScrollButton = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
ScrollUpListByOne();
|
||||
}
|
||||
break;
|
||||
@ -2392,7 +2391,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||
case HOVEROPTION_CLICKED_SCROLL_DOWN:
|
||||
if (!m_bPressedScrollButton) {
|
||||
m_bPressedScrollButton = true;
|
||||
nTimeForSomething = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
lastTimeClickedScrollButton = CTimer::GetTimeInMillisecondsPauseMode();
|
||||
ScrollDownListByOne();
|
||||
}
|
||||
break;
|
||||
@ -3593,7 +3592,7 @@ void CMenuManager::SwitchMenuOnAndOff()
|
||||
PcSaveHelper.PopulateSlotInfo();
|
||||
m_nCurrOption = 0;
|
||||
}
|
||||
/* // PS2 leftover?
|
||||
/* // PS2 leftover
|
||||
if (m_nCurrScreen != MENUPAGE_SOUND_SETTINGS && gMusicPlaying)
|
||||
{
|
||||
DMAudio.StopFrontEndTrack();
|
||||
|
@ -41,6 +41,8 @@
|
||||
#include "Record.h"
|
||||
#include "Renderer.h"
|
||||
#include "Replay.h"
|
||||
#include "References.h"
|
||||
#include "Radar.h"
|
||||
#include "Restart.h"
|
||||
#include "RoadBlocks.h"
|
||||
#include "PedRoutes.h"
|
||||
|
@ -574,8 +574,9 @@ void CPad::AffectFromXinput(uint32 pad)
|
||||
PCTempJoyState.RightShoulder2 = xstate.Gamepad.bRightTrigger;
|
||||
|
||||
PCTempJoyState.Select = (xstate.Gamepad.wButtons & XINPUT_GAMEPAD_BACK) ? 255 : 0;
|
||||
#ifdef REGISTER_START_BUTTON
|
||||
PCTempJoyState.Start = (xstate.Gamepad.wButtons & XINPUT_GAMEPAD_START) ? 255 : 0;
|
||||
|
||||
#endif
|
||||
float lx = (float)xstate.Gamepad.sThumbLX / (float)0x7FFF;
|
||||
float ly = (float)xstate.Gamepad.sThumbLY / (float)0x7FFF;
|
||||
float rx = (float)xstate.Gamepad.sThumbRX / (float)0x7FFF;
|
||||
|
@ -2,7 +2,9 @@
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "PlayerPed.h"
|
||||
#include "Wanted.h"
|
||||
#include "PlayerInfo.h"
|
||||
#include "Fire.h"
|
||||
#include "Frontend.h"
|
||||
#include "PlayerSkin.h"
|
||||
#include "Darkel.h"
|
||||
@ -12,6 +14,7 @@
|
||||
#include "Remote.h"
|
||||
#include "World.h"
|
||||
#include "Replay.h"
|
||||
#include "Camera.h"
|
||||
#include "Pad.h"
|
||||
#include "ProjectileInfo.h"
|
||||
#include "Explosion.h"
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "TxdStore.h"
|
||||
#include "ModelIndices.h"
|
||||
#include "Pools.h"
|
||||
#include "Wanted.h"
|
||||
#include "Directory.h"
|
||||
#include "RwHelper.h"
|
||||
#include "World.h"
|
||||
|
Reference in New Issue
Block a user