Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float OgBwepData[1][500];
- bool SetWepData2, StoreWepData2;
- if( !StoreWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- OgBwepData[0][i] = Wep->VectorsPerRound;
- }
- }
- }
- StoreWepData2 = true;
- }
- if( Status )
- {
- if( SetWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- Wep->VectorsPerRound = 20;
- }
- }
- }
- SetWepData2 = false;
- }
- }
- if(!Status)
- {
- if( !SetWepData2 )
- {
- cWeaponMgr* WepMgr = *(cWeaponMgr**)ADDR_WEAPONMGR;
- if( WepMgr )
- {
- for( int i = 0; i < WepMgr->WeaponCount; i++ )
- {
- cWeaponInfo* Wep = WepMgr->Weapons[i];
- if( Wep )
- {
- Wep->VectorsPerRound = OgBwepData[0][i];
- }
- }
- }
- SetWepData2 = true;
- }
- }
Add Comment
Please, Sign In to add comment