ItsMods
Help How to disable auto-weapon switch when out of ammo? - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help How to disable auto-weapon switch when out of ammo? (/Thread-Help-How-to-disable-auto-weapon-switch-when-out-of-ammo.html)



How to disable auto-weapon switch when out of ammo? - Demyxxx - 09-16-2011

What can I do to disable auto-weapon switch when out of ammo?It is annoying when playing on p.x knife only servers cause you're getting killed when you have to switch back to ballistic!


RE: How to disable auto-weapon switch when out of ammo? - AZUMIKKEL - 09-16-2011

You have to make a mod for that, so you can't use it on pubic servers.


RE: How to disable auto-weapon switch when out of ammo? - Nekochan - 09-16-2011

with using script ?
System like zombie's weapon check.
Quote:if(self getCurrentWeapon() == self.primary && self getAmmoCount(self.primary) <= 1)
{
self waittill("weapon_change");
self setSpawnweapon(self.primary);
}
Idk crappy code
use loop, if you want it with secondary change self.primary to self.secondary
or modify a weapon file.