dcomicboy

vector hack

May 1st, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. float OgBwepData[1][500];
  2. bool SetWepData2, StoreWepData2;
  3.  
  4. if( !StoreWepData2 )
  5. {
  6. cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
  7.  
  8. if( WepMgr )
  9. {
  10. for( int i = 0; i < WepMgr->WeaponCount; i++ )
  11. {
  12. cWeaponInfo* Wep = WepMgr->Weapons[i];
  13.  
  14. if( Wep )
  15. {
  16. OgBwepData[0][i] = Wep->VectorsPerRound;
  17. }
  18. }
  19. }
  20. StoreWepData2 = true;
  21. }
  22.  
  23. if( Status )
  24. {
  25. if( SetWepData2 )
  26. {
  27. cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
  28.  
  29. if( WepMgr )
  30. {
  31. for( int i = 0; i < WepMgr->WeaponCount; i++ )
  32. {
  33. cWeaponInfo* Wep = WepMgr->Weapons[i];
  34.  
  35. if( Wep )
  36. {
  37. Wep->VectorsPerRound = 20;
  38. }
  39. }
  40. }
  41. SetWepData2 = false;
  42. }
  43. }
  44. if(!Status)
  45. {
  46. if( !SetWepData2 )
  47. {
  48. cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
  49.  
  50. if( WepMgr )
  51. {
  52. for( int i = 0; i < WepMgr->WeaponCount; i++ )
  53. {
  54. cWeaponInfo* Wep = WepMgr->Weapons[i];
  55.  
  56. if( Wep )
  57. {
  58. Wep->VectorsPerRound = OgBwepData[0][i];
  59. }
  60. }
  61. }
  62. SetWepData2 = true;
  63. }
  64. }
Add Comment
Please, Sign In to add comment