mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
SW: Add Alt Weapon Mode gamefunc and bind it to MOUSE3 by default
git-svn-id: https://svn.eduke32.com/eduke32@8342 1a8010ca-5511-0410-912e-c29ae57300e0 # Conflicts: # source/sw/src/_functio.h # source/sw/src/function.h
This commit is contained in:
parent
361a964067
commit
769b359928
1 changed files with 8 additions and 0 deletions
|
@ -4299,6 +4299,14 @@ void getinput(SW_PACKET *loc)
|
|||
SET(loc->bits, prev_weapon + 1);
|
||||
}
|
||||
|
||||
if (buttonMap.ButtonDown(gamefunc_Alt_Weapon_Mode))
|
||||
{
|
||||
buttonMap.ClearButton(gamefunc_Alt_Weapon_Mode);
|
||||
USERp u = User[pp->PlayerSprite];
|
||||
short const which_weapon = u->WeaponNum + 1;
|
||||
SET(loc->bits, which_weapon);
|
||||
}
|
||||
|
||||
inv_hotkey = 0;
|
||||
if (buttonMap.ButtonDown(gamefunc_Med_Kit))
|
||||
inv_hotkey = INVENTORY_MEDKIT+1;
|
||||
|
|
Loading…
Reference in a new issue