Advertisement
fastman92

CPopulation::PedMICanBeCreatedAtThisAttractor

Apr 29th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool __cdecl CPopulation::PedMICanBeCreatedAtThisAttractor(int modelID, char *str1)
  2. {
  3.   bool result; // al@2
  4.   int v3; // ebx@3
  5.  
  6.   if ( !str1 )
  7.     return 1;
  8.   v3 = *(_DWORD *)&CModelInfo::ms_modelInfoPtrs[modelID]->licenseplateText[0];
  9.   if ( !stricmp(str1, "COPSIT") || !stricmp(str1, "COPLOOK") || !stricmp(str1, "BROWSE") )
  10.   {
  11.     result = v3 == 6;
  12.   }
  13.   else
  14.   {
  15.     if ( v3 == 6 )
  16.       return 0;
  17.     if ( !stricmp(str1, "DANCER") )
  18.     {
  19.       switch ( modelID )
  20.       {
  21.         case MODEL_BFYRI:
  22.         case MODEL_BMYRI:
  23.         case MODEL_BMYST:
  24.         case MODEL_HFYRI:
  25.         case MODEL_HMYRI:
  26.         case MODEL_OFYST:
  27.         case MODEL_OMOST:
  28.         case MODEL_OMYRI:
  29.         case MODEL_OMYST:
  30.         case MODEL_WFYRI:
  31.         case MODEL_WFYST:
  32.         case MODEL_WMYRI:
  33.         case MODEL_WMYST:
  34.           goto LABEL_9;
  35.         default:
  36.           return 0;
  37.       }
  38.       return 0;
  39.     }
  40.     if ( !stricmp(str1, "BARGUY") || !stricmp(str1, "PEDROUL") || !stricmp(str1, "PEDCARD") || !stricmp(str1, "PEDSLOT") )
  41.     {
  42.       switch ( modelID )
  43.       {
  44.         default:
  45.           goto LABEL_9;
  46.         case MODEL_WMYCON:
  47.         case MODEL_HMOGAR:
  48.         case MODEL_WMYMECH:
  49.         case MODEL_SBFYST:
  50.         case MODEL_WMYSGRD:
  51.         case MODEL_SWMYHP1:
  52.         case MODEL_SWMYHP2:
  53.         case MODEL_SWMOTR1:
  54.         case MODEL_SBMOTR2:
  55.         case MODEL_SWMOTR2:
  56.         case MODEL_SBMYTR3:
  57.         case MODEL_SWMOTR3:
  58.         case MODEL_SBMYST:
  59.         case MODEL_WMYCONB:
  60.         case MODEL_SOMYST:
  61.         case MODEL_SBFOST:
  62.         case MODEL_SOFOST:
  63.         case MODEL_SOFYST:
  64.         case MODEL_SOMOST:
  65.         case MODEL_SWMOTR5:
  66.         case MODEL_SWFOST:
  67.         case MODEL_SWFYST:
  68.         case MODEL_SWMOST:
  69.         case MODEL_SWMOTR4:
  70.           return 0;
  71.       }
  72.       return 0;
  73.     }
  74.     if ( !stricmp(str1, "STRIPW") )
  75.     {
  76.       switch ( modelID )
  77.       {
  78.         case MODEL_VWFYST1:
  79.         case MODEL_VBFYST2:
  80.         case MODEL_VHFYST3:
  81.         case MODEL_SBFYSTR:
  82.         case MODEL_SWFYSTR:
  83.           goto LABEL_9;
  84.         default:
  85.           return 0;
  86.       }
  87.       return 0;
  88.     }
  89.     if ( !stricmp(str1, "STRIPM") )
  90.       result = *(_DWORD *)&CModelInfo::ms_modelInfoPtrs[modelID]->licenseplateText[0] != 5;
  91.     else
  92. LABEL_9:
  93.       result = 1;
  94.   }
  95.   return result;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement