(24 Apr 12, 09:51PM)Bukz Wrote: I can't help but feel that this option would be much better hardcoded.
only two lines are changed:
weapon.cpp, line 82:
[SELECT ALL] Code:
if((w->selectable() || w==curweapon || (w->type==GUN_PISTOL && player1->akimbo)) && (w->mag>0||w->ammo>0||skipemptygun == 0))
weapon.cpp, line 100:
[SELECT ALL] Code:
if(!num || (curidx<0 && curweapon->ammo>0 && curweapon->mag>0 && skipemptygun == 1)) return;
and one line added (I just put it right before shiftweapon() ):
[SELECT ALL] Code:
VARP(skipemptygun, 0, 0, 1);
Everything I know about C++ is only due to it looking so similar to Java, so idk if it's exactly the right way to go about it, but it works (except that I couldn't figure out how to hook it into preferences).
Edit: updated, thanks RR