noPE

reDarkStorm Auto Class ID

Aug 31st, 2012
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.21 KB | None | 0 0
  1. void GetClassIDs ( )
  2. {
  3.     for ( ClientClass* pCC = g_pClient->GetAllClasses(); pCC; pCC = pCC->m_pNext )
  4.     {
  5.         if (0==strcmp("CObjectSentrygun", pCC->GetName()))
  6.         {
  7.             iSentryID = pCC->m_ClassID;
  8.             XASSERT(iSentryID);
  9.         }
  10.         if (0==strcmp("CObjectDispenser", pCC->GetName()))
  11.         {
  12.             iDispencerID = pCC->m_ClassID;
  13.             XASSERT(iDispencerID);
  14.         }
  15.         if (0==strcmp("CObjectTeleporter", pCC->GetName()))
  16.         {
  17.             iTeleporterID = pCC->m_ClassID;
  18.             XASSERT(iTeleporterID);
  19.         }
  20.         if (0==strcmp("CSniperDot", pCC->GetName()))
  21.         {
  22.             iSniperDotID = pCC->m_ClassID;
  23.             XASSERT(iSniperDotID);
  24.         }
  25.         if (0==strcmp("CTFGrenadePipebombProjectile", pCC->GetName()))
  26.         {
  27.             iGrenadeID = pCC->m_ClassID;
  28.             XASSERT(iGrenadeID);
  29.         }
  30.         if (0==strcmp("CTFProjectile_Rocket", pCC->GetName()))
  31.         {
  32.             iRocketID = pCC->m_ClassID;
  33.             XASSERT(iRocketID);
  34.         }
  35.         if (0==strcmp(CTFProjectile_SentryRocket", pCC->GetName()))
  36.         {
  37.             iSentryRocketID = pCC->m_ClassID;
  38.             XASSERT(iSentryRocketID);
  39.         }
  40.         if (0==strcmp("CTFStunBall", pCC->GetName()))
  41.         {
  42.             iBaseballID = pCC->m_ClassID;
  43.             XASSERT(iBaseballID);
  44.         }
  45.         if (0==strcmp("CTFProjectile_JarMilk", pCC->GetName()))
  46.         {
  47.             iMilkID = pCC->m_ClassID;
  48.             XASSERT(iMilkID);
  49.         }
  50.         if (0==strcmp("CTFProjectile_Flare", pCC->GetName()))
  51.         {
  52.             iFlareID = pCC->m_ClassID;
  53.             XASSERT(iFlareID);
  54.         }
  55.         if (0==strcmp("CTFProjectile_Jar", pCC->GetName()))
  56.         {
  57.             iJarateID = pCC->m_ClassID;
  58.             XASSERT(iJarateID);
  59.         }
  60.         if (0==strcmp("CTFProjectile_Arrow", pCC->GetName()))
  61.         {
  62.             iArrowID = pCC->m_ClassID;
  63.             XASSERT(iArrowID);
  64.         }
  65.         if (0==strcmp("CFuncRespawnRoomVisualizer", pCC->GetName()))
  66.         {
  67.             iSpawnRoomID = pCC->m_ClassID;
  68.             XASSERT(iSpawnRoomID);
  69.         }
  70.         if (0==strcmp("CTFProjectile_HealingBolt", pCC->GetName()))
  71.         {
  72.             iMedicArrowID = pCC->m_ClassID;
  73.             XASSERT(iMedicArrowID);
  74.         }
  75.         if (0==strcmp("CTFProjectile_EnergyBall", pCC->GetName()))
  76.         {
  77.             iEnergyBall = pCC->m_ClassID;
  78.             XASSERT(iEnergyBall);
  79.         }
  80.         if (0==strcmp("CCaptureFlag", pCC->GetName()))
  81.         {
  82.             iIntelID = pCC->m_ClassID;
  83.             XASSERT(iIntelID);
  84.         }
  85.         if (0==strcmp("CTFPlayer", pCC->GetName()))
  86.         {
  87.             iCTFPlayerID = pCC->m_ClassID;
  88.             XASSERT(iCTFPlayerID);
  89.         }
  90.     }
  91.     bLogIDs = true;
  92. }
Advertisement
Add Comment
Please, Sign In to add comment