Post: Auto-NAC Help
09-15-2015, 02:29 AM #1
Convive
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({});
    ToggleNac()
{
if(self.nac == "Disabled")
{
self.nac = "Enabled";
self iPrintln("^1Nac Swap Mod Enabled. ^7Press [{+actionslot 3}] And Switch Your Weapon And Repeat.");
self iPrintln("^1Press [{+actionslot 3}] ^7To Nac Swap To Your Other Weapon.");
self iPrintln("^1Press [{+actionslot 3}] ^7While Prone To Reset The Nac Mod.");
}
}

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


This is the code im using it works but whenever i try and use it it brings up the wired combat knife glitch you can do with the glitch ctf gamemode
(adsbygoogle = window.adsbygoogle || []).push({});
09-15-2015, 03:09 AM #11
itsSorrow
In my man cave
Originally posted by Zaroff View Post
still not whatabout is it setup in the binds right?


idk m9
09-15-2015, 03:15 AM #12
Convive
Bounty hunter
Originally posted by GentleSlugger View Post
idk m9


Originally posted by another user
    {
if(self actionslotthreebuttonpressed() && self GetStance() == "false")//dpad left
{
self thread checkNacWep();
wait .12;
}

if i was using that what would be the code for standing up
09-15-2015, 03:25 AM #13
itsSorrow
In my man cave
Originally posted by Zaroff View Post
    {
if(self actionslotthreebuttonpressed() && self GetStance() == "false")//dpad left
{
self thread checkNacWep();
wait .12;
}

if i was using that what would be the code for standing up


    
if(self actionslotthreebuttonpressed() && self GetStance() == "stand")//dpad left
{
self thread checkNacWep();
wait .12;
09-15-2015, 03:27 AM #14
Convive
Bounty hunter
Originally posted by GentleSlugger View Post
    
if(self actionslotthreebuttonpressed() && self GetStance() == "stand")//dpad left
{
self thread checkNacWep();
wait .12;


thanks and how would i bind the eb to aim im /ads ive already tried and i get bad syntax
09-15-2015, 03:35 AM #15
Convive
Bounty hunter
Originally posted by GentleSlugger View Post
    
if(self actionslotthreebuttonpressed() && self GetStance() == "stand")//dpad left
{
self thread checkNacWep();
wait .12;


nac works but it doesnt rest the weapon back to original
09-15-2015, 03:36 AM #16
itsSorrow
In my man cave
Originally posted by Zaroff View Post
nac works but it doesnt rest the weapon back to original


cuz u need 2 set that up aswell
09-15-2015, 03:37 AM #17
Convive
Bounty hunter
Originally posted by GentleSlugger View Post
cuz u need 2 set that up aswell


how would i set that up lol im new to coding in general
09-15-2015, 03:45 AM #18
HiddenHour
I defeated!
Anyone wanna explain to my autistic ass wtf a nac swap is. It looks like you just switch weapons from the vids I've watched Kappa. I wanna see if I can make the code less messy.
09-15-2015, 03:58 AM #19
Convive
Bounty hunter
Originally posted by TheHiddenHour View Post
Anyone wanna explain to my autistic ass wtf a nac swap is. It looks like you just switch weapons from the vids I've watched Kappa. I wanna see if I can make the code less messy.


its basically a gun glitch trickshotters use to hit trickshotts and it looks cool

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo