• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Dont switch to another weapon when AmmoAmount(0)==0

AGAIN AND AGAIN thanks to Marco he helped me once again)))

the answer:


Marco, 15.04.2012 0:24:01:
simulated function OutOfAmmo()
{
if ( Instigator == None || !Instigator.IsLocallyControlled() || HasAmmo() )
return;

DoAutoSwitch();
}

Marco, 0:24:12:
you need to remove that code in the weapon class

Marco, 0:24:21:
like this:
function OutOfAmmo();
 
Upvote 0