Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toggleNacWeap()
- {
- if(self.nacswap == "no")
- {
- if(self.wep == "none")
- {
- if(self actionslotthreebuttonpressed())
- {
- self.wep = self getCurrentWeapon();
- self iprintlnbold("#^11^7: " + self.wep);
- }
- }
- }
- if(self.wep != "none" && self getCurrentWeapon() != self.wep && self getCurrentWeapon() != "none")
- {
- if(self actionslotthreebuttonpressed())
- {
- self.wep2 = self getCurrentWeapon();
- self iprintlnbold("#^12^7: " + self.wep2);
- self.nacswap = "yes";
- wait .5;
- self iprintln("Prone & [{+actionslot 3}] to reset Nac Swap");
- }
- }
- else
- {
- doNac();
- }
- }
- doNac()
- {
- self endon("disconnect");
- level endon("game_ended");
- self endon("death");
- if(self getCurrentWeapon() == self.wep2 && self actionslotthreebuttonpressed())
- {
- self.ammo3 = self getWeaponAmmoClip(self getCurrentWeapon());
- self.ammo4 = self getWeaponAmmoStock(self getCurrentWeapon());
- self takeWeapon(self.wep2);
- wait .05;
- self giveWeapon(self.wep2, 0, true ( self.camo, 0, 0, 0, 0 ));
- self setweaponammoclip( self.wep2, self.ammo3 );
- self setweaponammostock( self.wep2, self.ammo4 );
- }
- else
- {
- if(self getCurrentWeapon() == self.wep && self actionslotthreebuttonpressed())
- {
- self.ammo1 = self getWeaponAmmoClip(self getCurrentWeapon());
- self.ammo2 = self getWeaponAmmoStock(self getCurrentWeapon());
- self takeWeapon(self.wep);
- wait .05;
- self giveWeapon(self.wep, 0, true ( self.camo, 0, 0, 0, 0 ));
- self setweaponammoclip( self.wep, self.ammo1 );
- self setweaponammostock( self.wep, self.ammo2 );
- }
- }
- }
Add Comment
Please, Sign In to add comment