zRayzHaze

Advanced Warfare Set Perks/Perks string.h

Dec 11th, 2022 (edited)
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.46 KB | Source Code | 0 0
  1. //Advanced Warfare Perk Dump
  2. //Fixed now you can add to your class, sorry i update everything from my phone i dont have access to my computer atm :/
  3. //Place this to Strucutres.h
  4.  
  5. struct scr_entref_t {
  6.     unsigned short classnum;
  7.     unsigned short entnum;
  8.     unsigned short client;
  9. };
  10.  
  11. enum AWPerks {
  12. specialty_bulletaccuracy,
  13. specialty_fastreload,
  14. specialty_rof,
  15. specialty_holdbreath,
  16. specialty_longersprint,
  17. specialty_detectexplosive,
  18. specialty_exposeenemy,
  19. specialty_extraammo,
  20. specialty_twoprimaries,
  21. specialty_armorvest,
  22. specialty_fraggrenade,
  23. specialty_specialgrenade,
  24. specialty_extendedmags,
  25. specialty_lightweight,
  26. specialty_marathon,
  27. specialty_quickdraw,
  28. specialty_improvedholdbreath,
  29. specialty_fastsprintrecovery,
  30. specialty_extendedmelee,
  31. specialty_fastoffhand,
  32. specialty_stalker,
  33. specialty_extratactical,
  34. specialty_extralethal,
  35. specialty_recoil,
  36. specialty_flinch,
  37. specialty_fastmantle,
  38. specialty_detectintel,
  39. specialty_overdrive,
  40. specialty_overdrive2,
  41. specialty_overdrive3,
  42. specialty_resistexplosion,
  43. specialty_resistshellshock,
  44. specialty_exo_blastsuppressor,
  45. specialty_exo_slamboots,
  46. specialty_extended_battery,
  47. specialty_extended_battery2,
  48. specialty_extendeddetectgren,
  49. specialty_holdbreathwhileads,
  50. specialty_longerrange,
  51. specialty_fastermelee,
  52. specialty_reducedsway,
  53. specialty_bulletpenetration,
  54. specialty_grenadepulldeath,
  55. specialty_pistoldeath,
  56. specialty_quieter,
  57. specialty_parabolic,
  58. specialty_bulletdamage,
  59. specialty_sprintfire,
  60. specialty_notused,
  61. specialty_explosivebullets,
  62. specialty_scavenger,
  63. specialty_coldblooded,
  64. specialty_radarimmune,
  65. specialty_blindeye,
  66. specialty_plainsight,
  67. specialty_noplayertarget,
  68. specialty_heartbreaker,
  69. specialty_selectivehearing,
  70. specialty_fastsnipe,
  71. specialty_spygame,
  72. specialty_automantle,
  73. specialty_quickswap,
  74. specialty_lowprofile,
  75. specialty_empimmune,
  76. specialty_detectgrenade,
  77. specialty_throwback,
  78. specialty_radarblip,
  79. specialty_radararrow,
  80. specialty_moreminimap,
  81. specialty_enhancedtracer,
  82. specialty_radarjuggernaut,
  83. specialty_sprintreload,
  84. specialty_activecloaking,
  85. specialty_nojumpfriction,
  86. specialty_fastclimb,
  87. specialty_perkbreak_radar,
  88. specialty_highroller,
  89. specialty_hard_shell,
  90. specialty_class_fasthands,
  91. specialty_class_flakjacket,
  92. specialty_class_dexterity,
  93. specialty_silentkill,
  94. specialty_noscopeoutline,
  95. specialty_superbulletpenetration,
  96. specialty_exo_dodgethruster,
  97. specialty_exo_skidplates,
  98. specialty_exo_boostshocks,
  99. specialty_exo_ping,
  100. specialty_fastsprintads,
  101. specialty_fastoffhandrecovery,
  102. specialty_minion,
  103. specialty_exoping_immune,
  104. specialty_bulletresupply,
  105. specialty_lethalresupply,
  106. specialty_tacticalresupply,
  107. specialty_explosiveammoresupply,
  108. specialty_ballcarrier,
  109. specialty_uav_paint,
  110. specialty_wildcard_dualtacticals,
  111. specialty_wildcard_duallethals,
  112. };
  113.  
  114. //Now i give you the extra to set the perks, you just need to add few things and use your brain, i cannot do that for you, joke aside here is the function you need, is not the only things needed you need the Scr things and u good, theyre essy to find whne i have time i may upload them for ya
  115. //Place it in your Functions.cpp
  116.  
  117. void PlayerCmd_setPerk(int clientIndex, const char* perk) {
  118.     scr_entref_t entref;
  119.     entref.client = clientIndex;
  120.     entref.entnum = clientIndex;
  121.     entref.classnum = 0;
  122.     Scr_AddString(perk);
  123.     Scr_SetNumParam(1);
  124.     ((void(*)(scr_entref_t))&ParseAddr(0x3208B0))(entref);
  125.     Scr_ClearOutParams();
  126.     iPrintln(clientIndex, perk);
  127. //Note the address called is for the TU 1.20
  128. }
Advertisement
Add Comment
Please, Sign In to add comment