Flacken.WS, on May 16 2009, 04:20 PM, said:
Sorry if I'm interrupting something important, but why Duke pick and, automatically, select the LASER GUN and DOUBLE BARRELED SHOTGUN, ever with SWITCH WEAPONS ON PICKUP ( in PLAYER MENU ) is OFF ?
The DB shotgun only gets selected when autoswitch is off if you pick it up while holding a different shotgun.
I coded it that way at the time because they were new weapons and I didn't want people complaining that they didn't know how to select them. The laser gun goes in the same weapon slot as mighty boot (weapon 1). That's not obvious, and if someone picked up the weapon and didn't know better, they might try selecting pistol. But I couldn't make it a subweapon of pistol because I was already using the pistol key as an akimbo toggle. The DB shotgun is a subweapon of shotgun; when you cycle through the weapons it will not show up unless it is your current shotgun (press 3 to toggle them). I know from experience some people would not even know they had the weapon unless I force it into their hands.
So, yeah, technically I should make it switch to those weapons only if switch on pickup is selected, but at least I have managed to avoid complaints (until now) by coding it the way I did.
I'm changing it now, though.
Get the latest code
HERE. Replace files inside of the dpcons folder. That will fix the autoswitch thing and has some other undocumented changes (most notably Skycar improvements).