Advertisement
dcomicboy

instant damage

May 1st, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 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->dwInstDamage;
  17. OgBwepData[1][i] = Wep->dwAlt_InstDamage;
  18. }
  19. }
  20. }
  21. StoreWepData2 = true;
  22. }
  23.  
  24. if( Status )
  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->dwInstDamage = 100;
  39. Wep->dwAlt_InstDamage = 100;
  40. }
  41. }
  42. }
  43. SetWepData2 = false;
  44. }
  45. }
  46. if(!Status)
  47. {
  48. if( !SetWepData2 )
  49. {
  50. cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
  51.  
  52. if( WepMgr )
  53. {
  54. for( int i = 0; i < WepMgr->WeaponCount; i++ )
  55. {
  56. cWeaponInfo* Wep = WepMgr->Weapons[i];
  57.  
  58. if( Wep )
  59. {
  60. Wep->dwInstDamage = OgBwepData[0][i];
  61. Wep->dwAlt_InstDamage = OgBwepData[1][i];
  62. }
  63. }
  64. }
  65. SetWepData2 = true;
  66. }
  67. }
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement