(adsbygoogle = window.adsbygoogle || []).push({});
Does anyone know how to increase the gun experience via code in order to unlock attachments easily? So far I noticed that the dvar
scr_gunxpscale
can unlock all attachments after a single kill if set to something really high like 99999999 so the script would be:
gunExperienceLobby()
{
setDvar("scr_gunxpscale", 99999999);
}
I searched for references to this dvar in the original GSC files but none exist.
After using the function above, if I quit the match and look at my classes, the attachments stay unlocked. However, now my online profile will refuse to save so any changes made will be lost when the game is shut off. As you can see, this is not good after all.
Either way, I need a function which gives a certain gun experience without getting a kill so I found
addWeaponStat(weaponName, statName, increment);
However, can it increase the gun experience? I do know that it's used for unlocking camos and it works fine for that purpose.
Thank you