(Old code tutorial) Multable Weapons with same key from Wolf Planet forum

View previous topic View next topic Go down

(Old code tutorial) Multable Weapons with same key from Wolf Planet forum

Post by Officer-M. John (Admin) on Sun Mar 27, 2016 8:22 am

Ok, something like this should work (in CheckWeaponChange):

Code:

if (gamestate.chosenweapon==wp_pistol && bestweapon>=wp_pistol2)
{
    gamestate.chosenweapon=wp_pistol2;
    InClearKeysDown();
}
else if (gamestate.chosenweapon==wp_pistol2)
{
    gamestate.chosenweapon=wp_pistol1;
    InClearKeysDown();
}

I haven't tried this, but it should work. Flamer46 posted a more complicated tutorial, but it is big and memory straining.

Writte by Deathshead on Sat Apr 02, 2005 8:32 am
avatar
Officer-M. John (Admin)
Admin

Posts : 323
Join date : 2015-10-02
Age : 19

View user profile http://wolf3dfanboys.usersboard.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum