mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-17 05:15:30 +00:00
the great reorganization
This commit is contained in:
parent
219a65b81a
commit
53023eb65b
150 changed files with 45 additions and 37 deletions
36
src/core/Wanted.cpp
Normal file
36
src/core/Wanted.cpp
Normal file
|
@ -0,0 +1,36 @@
|
|||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "Wanted.h"
|
||||
|
||||
bool CWanted::AreSwatRequired()
|
||||
{
|
||||
return m_nWantedLevel >= 4;
|
||||
}
|
||||
|
||||
bool CWanted::AreFbiRequired()
|
||||
{
|
||||
return m_nWantedLevel >= 5;
|
||||
}
|
||||
|
||||
bool CWanted::AreArmyRequired()
|
||||
{
|
||||
return m_nWantedLevel >= 6;
|
||||
}
|
||||
|
||||
int CWanted::NumOfHelisRequired()
|
||||
{
|
||||
if (m_IsIgnoredByCops)
|
||||
return 0;
|
||||
|
||||
// Return value is number of helicopters, no need to name them.
|
||||
switch (m_nWantedLevel) {
|
||||
case WANTEDLEVEL_3:
|
||||
case WANTEDLEVEL_4:
|
||||
return 1;
|
||||
case WANTEDLEVEL_5:
|
||||
case WANTEDLEVEL_6:
|
||||
return 2;
|
||||
default:
|
||||
return 0;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue