I got problems with my weapons being automatically deselected when they are out of ammo. The following code works, but there is always a one second delay which is not with JK's original cogs. Please tell me what I'm doing wrong:
------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
Code:
IN THE FIRE MESSAGE
if(GetInv(player, 12) < 5)
{
// Play "out of ammo" sound
PlaySoundThing(outSound, player, 1, -1, -1, 0x80);
if(GetAutoSwitch() & 1)
SelectWeapon(player, AutoSelectWeapon(player, 1));
Return;
}------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
If((GetAutoSwitch() & 1)) ![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)