mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 06:24:08 +00:00
script 500-599 plus bugfix
This commit is contained in:
parent
9d4140734f
commit
d579ee1b64
14 changed files with 907 additions and 22 deletions
|
@ -27,6 +27,11 @@ float &CWeather::Rainbow = *(float*)0x940598;
|
|||
bool &CWeather::bScriptsForceRain = *(bool*)0x95CD7D;
|
||||
bool &CWeather::Stored_StateStored = *(bool*)0x95CDC1;
|
||||
|
||||
float &CWeather::Stored_InterpolationValue = *(float*)0x942F54;
|
||||
int16 &CWeather::Stored_OldWeatherType = *(int16*)0x95CC68;
|
||||
int16 &CWeather::Stored_NewWeatherType = *(int16*)0x95CCAE;
|
||||
float &CWeather::Stored_Rain = *(float*)0x885B4C;
|
||||
|
||||
WRAPPER void CWeather::RenderRainStreaks(void) { EAXJMP(0x524550); }
|
||||
|
||||
void CWeather::ReleaseWeather()
|
||||
|
@ -45,3 +50,23 @@ void CWeather::ForceWeatherNow(int16 weather)
|
|||
NewWeatherType = weather;
|
||||
ForcedWeatherType = weather;
|
||||
}
|
||||
|
||||
void CWeather::StoreWeatherState()
|
||||
{
|
||||
Stored_StateStored = true;
|
||||
Stored_InterpolationValue = InterpolationValue;
|
||||
Stored_Rain = Rain;
|
||||
Stored_NewWeatherType = NewWeatherType;
|
||||
Stored_OldWeatherType = OldWeatherType;
|
||||
}
|
||||
|
||||
void CWeather::RestoreWeatherState()
|
||||
{
|
||||
#ifdef FIX_BUGS // it's not used anyway though
|
||||
Stored_StateStored = false;
|
||||
#endif
|
||||
InterpolationValue = Stored_InterpolationValue;
|
||||
Rain = Stored_Rain;
|
||||
NewWeatherType = Stored_NewWeatherType;
|
||||
OldWeatherType = Stored_OldWeatherType;
|
||||
}
|
|
@ -32,10 +32,16 @@ public:
|
|||
|
||||
static bool &bScriptsForceRain;
|
||||
static bool &Stored_StateStored;
|
||||
static float &Stored_InterpolationValue;
|
||||
static int16 &Stored_OldWeatherType;
|
||||
static int16 &Stored_NewWeatherType;
|
||||
static float &Stored_Rain;
|
||||
|
||||
static void RenderRainStreaks(void);
|
||||
|
||||
static void ReleaseWeather();
|
||||
static void ForceWeather(int16);
|
||||
static void ForceWeatherNow(int16);
|
||||
static void StoreWeatherState();
|
||||
static void RestoreWeatherState();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue