Post: [CODE] NAC Swap Mod
05-06-2015, 11:38 PM #1
mrtn
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); So I decided to release the NAC swap mod because of the big amount of people asking. It's not even that hard to figure out but just letting you know that my code for this is ghetto as fuck but it does indeed work very well. Here it is;

Put this anywhere in your menu
    
doNac() {
self endon("disconnect");
level endon("game_ended");
self endon("death");

if(self getCurrentWeapon() == self.wep2) {
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.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 );


}
}
}

checkNacWep() {
if(self.nacswap == "no"){
if(self.wep == "none")
{
self.wep = self getCurrentWeapon();
self iprintlnbold("#1: " + self.wep);
}
else
{
if(self.wep != "none" && self getCurrentWeapon() != self.wep && self getCurrentWeapon() != "none")
{
self.wep2 = self getCurrentWeapon();
self iprintlnbold("#2: " + self.wep2);
self.nacswap = "yes";
wait .5;
self iprintln("^2Press [{+actionslot 3}] ^2while in prone to reset NAC Swap, in-case you want to switch classes mid-game.");
}
}
}
else
{
doNac();
}
}


Put this in the onPlayerSpawned function
    
self.camo = 29;


Put this somewhere in your menu where you monitor button presses(on monitorActions in my case)
    
self thread checkNacWep();


Here is what it looks like for me;
    
if(self actionslotthreebuttonpressed() && self GetStance() != "prone")
{
self thread checkNacWep();
}

if(self actionslotthreebuttonpressed() && self GetStance() == "prone") {
self.nacswap = "no";
self.wep = "none";
self.wep2 = "none";
self iprintln("NAC Swap: ^2Reset");
}

The following 12 users say thank you to mrtn for this useful post:

A6shRkm, akaRadon, Buqsy, Cocaine Bills, DaddyMeth, Devilemi, Exelo, iRnZ, koekiemonstarr2, TimeWithTimmy, ViRuzModzHD, Vote
05-06-2015, 11:41 PM #2
Devilemi
Can’t trickshot me!
nice release m8
05-07-2015, 12:07 AM #3
Buqsy
Bounty hunter
I love you, thanks for the release.

Now that I look at this I can't believe I couldn't figure it out...
Last edited by Buqsy ; 05-07-2015 at 12:23 AM.
05-07-2015, 02:03 AM #4
FRINZ
I’m too L33T
now dat u 00000x00 is in a relationship w deez nuts i allow u to call dem bolas c: Enzo
05-07-2015, 02:23 AM #5
mrtn
Little One
Originally posted by FRlNZ View Post
now dat u 00000x00 is in a relationship w deez nuts i allow u to call dem bolas c: Enzo


You must login or register to view this content.
05-07-2015, 05:00 AM #6
iRnZ
NextGenUpdate Elite
Originally posted by 0x0000000 View Post
So I decided to release the NAC swap mod because of the big amount of people asking. It's not even that hard to figure out but just letting you know that my code for this is ghetto as fuck but it does indeed work very well. Here it is;

Put this anywhere in your menu
    
doNac() {
self endon("disconnect");
level endon("game_ended");
self endon("death");

if(self getCurrentWeapon() == self.wep2) {
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.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 );


}
}
}

checkNacWep() {
if(self.nacswap == "no"){
if(self.wep == "none")
{
self.wep = self getCurrentWeapon();
self iprintlnbold("#1: " + self.wep);
}
else
{
if(self.wep != "none" && self getCurrentWeapon() != self.wep && self getCurrentWeapon() != "none")
{
self.wep2 = self getCurrentWeapon();
self iprintlnbold("#2: " + self.wep2);
self.nacswap = "yes";
wait .5;
self iprintln("^2Press [{+actionslot 3}] ^2while in prone to reset NAC Swap, in-case you want to switch classes mid-game.");
}
}
}
else
{
doNac();
}
}


Put this in the onPlayerSpawned function
    
self.camo = 29;


Put this somewhere in your menu where you monitor button presses(on monitorActions in my case)
    
self thread checkNacWep();


Here is what it looks like for me;
    
if(self actionslotthreebuttonpressed() && self GetStance() != "prone")
{
self thread checkNacWep();
}

if(self actionslotthreebuttonpressed() && self GetStance() == "prone") {
self.nacswap = "no";
self.wep = "none";
self.wep2 = "none";
self iprintln("NAC Swap: ^2Reset");
}


love u man <3
05-07-2015, 05:23 AM #7
Hammy
[b]#Hammy4IMGPerms McCoy[/b]
lmfao people need mods to nac swap???
glad i quit the ts'ing community because y'all just ruined it for the ogs Them feels tears

The following user thanked Hammy for this useful post:

Exelo
05-07-2015, 09:33 AM #8
Buqsy
Bounty hunter
Originally posted by Hammy View Post
lmfao people need mods to nac swap???
glad i quit the ts'ing community because y'all just ruined it for the ogs Them feels tears


Nh I can nac, it's just cooler to hit 10 nacs in one bill.
05-07-2015, 02:12 PM #9
holy shit thx m8 Gasp
05-07-2015, 03:16 PM #10
Leal
Pepe #1 Fan
Originally posted by Hammy View Post
lmfao people need mods to nac swap???
glad i quit the ts'ing community because y'all just ruined it for the ogs Them feels tears


hi der kieran You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo