mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 14:13:42 +00:00
more fix
This commit is contained in:
parent
708d5831e4
commit
b4f6a9336b
2 changed files with 15 additions and 15 deletions
|
@ -636,9 +636,9 @@ public:
|
||||||
|
|
||||||
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
|
float LimitAngleOnCircle(float angle) { return angle < 0.0f ? angle + 360.0f : angle; }
|
||||||
|
|
||||||
|
bool ThisIsAValidRandomCop(uint32 mi, int cop, int swat, int fbi, int army, int miami);
|
||||||
bool ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal);
|
bool ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal);
|
||||||
bool CheckDamagedWeaponType(int32 actual, int32 type);
|
bool CheckDamagedWeaponType(int32 actual, int32 type);
|
||||||
static bool ThisIsAValidRandomCop(int32 mi, bool cop, bool swat, bool fbi, bool army, bool miami);
|
|
||||||
|
|
||||||
void ReturnFromGosubOrFunction();
|
void ReturnFromGosubOrFunction();
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,20 @@
|
||||||
extern const char* scriptfile;
|
extern const char* scriptfile;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool CRunningScript::ThisIsAValidRandomCop(uint32 mi, int cop, int swat, int fbi, int army, int miami)
|
||||||
|
{
|
||||||
|
switch (mi)
|
||||||
|
{
|
||||||
|
case MI_COP: if (cop) return true; break;
|
||||||
|
case MI_SWAT: if (swat) return true; break;
|
||||||
|
case MI_FBI: if (fbi) return true; break;
|
||||||
|
case MI_ARMY: if (army) return true; break;
|
||||||
|
default:
|
||||||
|
return miami && (mi >= MI_VICE1 && mi <= MI_VICE8);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool CRunningScript::ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal)
|
bool CRunningScript::ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, int criminal)
|
||||||
{
|
{
|
||||||
switch (pedtype) {
|
switch (pedtype) {
|
||||||
|
@ -66,20 +80,6 @@ bool CRunningScript::ThisIsAValidRandomPed(uint32 pedtype, int civ, int gang, in
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CRunningScript::ThisIsAValidRandomCop(int32 mi, bool cop, bool swat, bool fbi, bool army, bool miami)
|
|
||||||
{
|
|
||||||
switch (mi)
|
|
||||||
{
|
|
||||||
case MI_COP: if (cop) return true;
|
|
||||||
case MI_SWAT: if (swat) return true;
|
|
||||||
case MI_FBI: if (fbi) return true;
|
|
||||||
case MI_ARMY: if (army) return true;
|
|
||||||
default:
|
|
||||||
return miami && (mi >= MI_VICE1 && mi <= MI_VICE8);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
int8 CRunningScript::ProcessCommands1000To1099(int32 command)
|
int8 CRunningScript::ProcessCommands1000To1099(int32 command)
|
||||||
{
|
{
|
||||||
switch (command) {
|
switch (command) {
|
||||||
|
|
Loading…
Reference in a new issue