mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-13 00:49:15 +00:00
Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami
This commit is contained in:
commit
7646ceeaaa
File diff suppressed because it is too large
Load diff
|
@ -241,13 +241,13 @@ public:
|
|||
// "Should" be in alphabetic order, except "getXTalkSfx"
|
||||
void AddDetailsToRequestedOrderList(uint8 sample);
|
||||
void AddPlayerCarSample(uint8 emittingVolume, int32 freq, uint32 sample, uint8 bank,
|
||||
uint8 counter, bool notLooping);
|
||||
uint8 counter, bool notLooping); //done
|
||||
void AddReflectionsToRequestedQueue();
|
||||
void AddReleasingSounds();
|
||||
void AddSampleToRequestedQueue();
|
||||
void AgeCrimes();
|
||||
|
||||
void CalculateDistance(bool &condition, float dist);
|
||||
void CalculateDistance(bool &condition, float dist); //done
|
||||
bool CheckForAnAudioFileOnCD() const;
|
||||
void ClearActiveSamples();
|
||||
void ClearMissionAudio(uint8 slot);
|
||||
|
@ -275,7 +275,7 @@ public:
|
|||
float GetCollisionLoopingRatio(uint32 a, uint32 b, float c) const; // not used
|
||||
float GetCollisionOneShotRatio(int32 a, float b) const;
|
||||
float GetCollisionRatio(float a, float b, float c, float d) const;
|
||||
float GetDistanceSquared(const CVector &v) const;
|
||||
float GetDistanceSquared(const CVector &v) const; //done
|
||||
int32 GetJumboTaxiFreq() const;
|
||||
uint8 GetMissionAudioLoadingStatus(uint8 slot) const;
|
||||
int8 GetMissionScriptPoliceAudioPlayingStatus() const;
|
||||
|
@ -287,7 +287,7 @@ public:
|
|||
float GetVehicleNonDriveWheelSkidValue(uint8 wheel, CAutomobile *automobile,
|
||||
cTransmission *transmission, float velocityChange);
|
||||
|
||||
bool HasAirBrakes(int32 model) const;
|
||||
bool HasAirBrakes(int32 model) const; //done
|
||||
|
||||
void Initialise();
|
||||
void InitialisePoliceRadio();
|
||||
|
@ -302,13 +302,13 @@ public:
|
|||
void PlayLoadedMissionAudio(uint8 slot);
|
||||
void PlayOneShot(int32 index, int16 sound, float vol);
|
||||
void PlaySuspectLastSeen(float x, float y, float z);
|
||||
void PlayerJustGotInCar() const;
|
||||
void PlayerJustLeftCar() const;
|
||||
void PlayerJustGotInCar() const; //done
|
||||
void PlayerJustLeftCar() const; //done
|
||||
void PostInitialiseGameSpecificSetup();
|
||||
void PostTerminateGameSpecificShutdown();
|
||||
void PreInitialiseGameSpecificSetup() const;
|
||||
void PostTerminateGameSpecificShutdown(); //done
|
||||
void PreInitialiseGameSpecificSetup() const; //done
|
||||
void PreloadMissionAudio(uint8 slot, Const char *name);
|
||||
void PreTerminateGameSpecificShutdown();
|
||||
void PreTerminateGameSpecificShutdown(); //done
|
||||
/// processX - main logic of adding new sounds
|
||||
void ProcessActiveQueues();
|
||||
bool ProcessAirBrakes(cVehicleParams *params);
|
||||
|
@ -320,17 +320,18 @@ public:
|
|||
void ProcessBridgeOneShots();
|
||||
void ProcessBridgeWarning();
|
||||
#endif
|
||||
bool ProcessCarBombTick(cVehicleParams *params);
|
||||
bool ProcessCarBombTick(cVehicleParams *params); //done
|
||||
void ProcessCesna(cVehicleParams *params);
|
||||
//void ProcessCrane();
|
||||
bool ProcessEngineDamage(cVehicleParams *params);
|
||||
void ProcessEntity(int32 sound);
|
||||
bool ProcessEngineDamage(cVehicleParams *params); //done
|
||||
void ProcessEntity(int32 sound); //done
|
||||
void ProcessExplosions(int32 explosion);
|
||||
void ProcessFireHydrant();
|
||||
void ProcessFires(int32 entity);
|
||||
void ProcessFrontEnd();
|
||||
void ProcessGarages();
|
||||
bool ProcessHelicopter(cVehicleParams *params);
|
||||
void ProcessCarHeli(cVehicleParams* params); //done
|
||||
void ProcessVehicleFlatTyre(cVehicleParams* params); //done
|
||||
void ProcessJumbo(cVehicleParams *);
|
||||
void ProcessJumboAccel(CPlane *plane);
|
||||
void ProcessJumboDecel(CPlane *plane);
|
||||
|
@ -345,22 +346,22 @@ public:
|
|||
void ProcessOneShotScriptObject(uint8 sound);
|
||||
void ProcessPed(CPhysical *ped);
|
||||
void ProcessPedOneShots(cPedParams *params);
|
||||
void ProcessPhysical(int32 id);
|
||||
void ProcessPlane(cVehicleParams *params);
|
||||
void ProcessPlayersVehicleEngine(cVehicleParams *params, CVehicle* veh);
|
||||
void ProcessPhysical(int32 id); //done
|
||||
void ProcessPlane(cVehicleParams *params); //done
|
||||
void ProcessPlayersVehicleEngine(cVehicleParams *params, CVehicle* veh); //done
|
||||
void ProcessProjectiles();
|
||||
void ProcessRainOnVehicle(cVehicleParams *params);
|
||||
void ProcessReverb() const;
|
||||
bool ProcessReverseGear(cVehicleParams *params);
|
||||
void ProcessScriptObject(int32 id);
|
||||
bool ProcessReverseGear(cVehicleParams *params); //done
|
||||
void ProcessScriptObject(int32 id); //done
|
||||
void ProcessSpecial();
|
||||
#ifdef GTA_TRAIN
|
||||
bool ProcessTrainNoise(cVehicleParams *params);
|
||||
#endif
|
||||
void ProcessVehicle(CVehicle *vehicle);
|
||||
bool ProcessVehicleDoors(cVehicleParams *params);
|
||||
void ProcessVehicleEngine(cVehicleParams *params);
|
||||
void UpdateGasPedalAudio(CVehicle* veh, int vehType);
|
||||
void ProcessVehicle(CVehicle *vehicle); //done, but need add model functions
|
||||
bool ProcessVehicleDoors(cVehicleParams *params); //done
|
||||
void ProcessVehicleEngine(cVehicleParams *params); //done
|
||||
void UpdateGasPedalAudio(CVehicle* veh, int vehType); //done
|
||||
void ProcessVehicleHorn(cVehicleParams *params);
|
||||
void ProcessVehicleOneShots(cVehicleParams *params);
|
||||
bool ProcessVehicleReverseWarning(cVehicleParams *params);
|
||||
|
@ -368,8 +369,10 @@ public:
|
|||
bool ProcessVehicleSirenOrAlarm(cVehicleParams *params);
|
||||
bool ProcessVehicleSkidding(cVehicleParams *params);
|
||||
void ProcessWaterCannon(int32);
|
||||
void ProcessWeather(int32 id);
|
||||
void ProcessWeather(int32 id); //done
|
||||
bool ProcessWetRoadNoise(cVehicleParams *params);
|
||||
void ProcessEscalators(); //done
|
||||
void ProcessExtraSounds(); //done
|
||||
|
||||
int32 RandomDisplacement(uint32 seed) const;
|
||||
void ReacquireDigitalHandle() const;
|
||||
|
@ -414,11 +417,11 @@ public:
|
|||
void TranslateEntity(Const CVector *v1, CVector *v2) const;
|
||||
|
||||
void UpdateReflections();
|
||||
bool UsesReverseWarning(int32 model) const;
|
||||
bool UsesReverseWarning(int32 model) const; //done
|
||||
bool UsesSiren(int32 model) const;
|
||||
bool UsesSirenSwitching(int32 model) const;
|
||||
|
||||
CVehicle *FindVehicleOfPlayer();
|
||||
CVehicle *FindVehicleOfPlayer(); //done
|
||||
void SetPedTalkingStatus(CPed *ped, uint8 status);
|
||||
void SetPlayersMood(uint8 mood, int32 time);
|
||||
|
||||
|
|
|
@ -732,7 +732,7 @@ void CControllerConfigManager::AffectControllerStateOn_ButtonDown_Driving(int32
|
|||
if (FindPlayerVehicle() && (FindPlayerVehicle()->IsVehicle() && (
|
||||
FindPlayerVehicle()->GetModelIndex() == MI_DODO
|
||||
#ifdef FIX_BUGS
|
||||
|| CVehicle::bAllDodosCheat
|
||||
|| (CVehicle::bAllDodosCheat && !FindPlayerVehicle()->IsRealHeli())
|
||||
#endif
|
||||
)))
|
||||
{
|
||||
|
|
|
@ -219,6 +219,8 @@ extern int strncasecmp(const char *str1, const char *str2, size_t len);
|
|||
|
||||
#define clamp(v, low, high) ((v)<(low) ? (low) : (v)>(high) ? (high) : (v))
|
||||
|
||||
#define clamp2(v, center, radius) ((v) < (center) ? Max(v, center - radius) : Min(v, center + radius))
|
||||
|
||||
inline float sq(float x) { return x*x; }
|
||||
#define SQR(x) ((x) * (x))
|
||||
|
||||
|
|
|
@ -103,6 +103,8 @@ public:
|
|||
void Update(void);
|
||||
void SwitchOff(void);
|
||||
void AddThisOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, bool b_isMovingDown);
|
||||
bool IsActive() const { return m_bIsActive; };
|
||||
const CVector& GetPosition() const { return m_midPoint; };
|
||||
};
|
||||
|
||||
class CEscalators
|
||||
|
@ -114,6 +116,7 @@ public:
|
|||
static void Update(void);
|
||||
static void AddOne(CVector pos0, CVector pos1, CVector pos2, CVector pos3, bool b_isMovingDown);
|
||||
static void Shutdown(void);
|
||||
static const CEscalator& GetEscalator(int ind) { return aEscalators[ind]; };
|
||||
};
|
||||
|
||||
class CMovingThing
|
||||
|
|
|
@ -1384,7 +1384,10 @@ CAutomobile::ProcessControl(void)
|
|||
playRotorSound = true;
|
||||
}
|
||||
}else if((GetModelIndex() == MI_DODO || CVehicle::bAllDodosCheat) &&
|
||||
m_vecMoveSpeed.Magnitude() > 0.0f && CTimer::GetTimeStep() > 0.0f){
|
||||
#ifdef FIX_BUGS
|
||||
!IsRealHeli() &&
|
||||
#endif
|
||||
m_vecMoveSpeed.Magnitude() > 0.0f && CTimer::GetTimeStep() > 0.0f){
|
||||
#ifdef ALT_DODO_CHEAT
|
||||
if (bAltDodoCheat)
|
||||
FlyingControl(FLIGHT_MODEL_PLANE);
|
||||
|
@ -1493,7 +1496,7 @@ CAutomobile::ProcessControl(void)
|
|||
CMatrix mat;
|
||||
mat.Attach(RwFrameGetMatrix(m_aCarNodes[CAR_BONNET]));
|
||||
CVector blade = mat.GetRight();
|
||||
blade = GetMatrix() * blade;
|
||||
blade = Multiply3x3(blade, GetMatrix());
|
||||
camDist /= Max(Sqrt(distSq), 0.01f);
|
||||
if(Abs(DotProduct(camDist, blade)) > 0.95f){
|
||||
DMAudio.PlayOneShot(m_audioEntityId, SOUND_31, 0.0f);
|
||||
|
|
Loading…
Reference in a new issue