mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-06 00:25:54 +00:00
Enable GTA_BRIDGE
This commit is contained in:
parent
6b54d04bfc
commit
b35b0c598d
|
@ -9311,7 +9311,8 @@ cAudioManager::ProcessBridge()
|
|||
void
|
||||
cAudioManager::ProcessBridgeWarning()
|
||||
{
|
||||
if (CStats::CommercialPassed && m_sQueueSample.m_fDistance < 450.f) {
|
||||
// TODO: LCS
|
||||
/* if (CStats::CommercialPassed && m_sQueueSample.m_fDistance < 450.f) {
|
||||
m_sQueueSample.m_nVolume = ComputeVolume(100, 450.f, m_sQueueSample.m_fDistance);
|
||||
if (m_sQueueSample.m_nVolume != 0) {
|
||||
m_sQueueSample.m_nCounter = 0;
|
||||
|
@ -9332,7 +9333,7 @@ cAudioManager::ProcessBridgeWarning()
|
|||
m_sQueueSample.m_bRequireReflection = false;
|
||||
AddSampleToRequestedQueue();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -161,3 +161,23 @@ bool CBridge::ThisIsABridgeObjectMovingUp(int index)
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void CBridge::ForceBridgeState(uint8 state)
|
||||
{
|
||||
#ifdef GTA_BRIDGE
|
||||
State = state;
|
||||
switch (state)
|
||||
{
|
||||
case STATE_BRIDGE_LOCKED:
|
||||
case STATE_LIFT_PART_MOVING_DOWN:
|
||||
case STATE_LIFT_PART_ABOUT_TO_MOVE_UP:
|
||||
ThePaths.SetLinksBridgeLights(-330.0f, -230.0f, -700.0f, -588.0f, true);
|
||||
break;
|
||||
case STATE_BRIDGE_ALWAYS_UNLOCKED:
|
||||
ThePaths.SetLinksBridgeLights(-330.0f, -230.0f, -700.0f, -588.0f, false);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
|
@ -26,4 +26,5 @@ public:
|
|||
static bool ShouldLightsBeFlashing();
|
||||
static void FindBridgeEntities();
|
||||
static bool ThisIsABridgeObjectMovingUp(int);
|
||||
static void ForceBridgeState(uint8 state);
|
||||
};
|
||||
|
|
|
@ -198,7 +198,7 @@ enum Config {
|
|||
//#define ANIM_COMPRESSION // only keep most recently used anims uncompressed
|
||||
|
||||
#define GTA_TRAIN
|
||||
//#define GTA_BRIDGE
|
||||
#define GTA_BRIDGE
|
||||
|
||||
#if defined GTA_PS2
|
||||
# define GTA_PS2_STUFF
|
||||
|
|
Loading…
Reference in a new issue