Advertisement
dcomicboy

1 clip

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