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

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 : 397
Join date : 2015-10-02
Age : 20

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

Back to top Go down

Back to top

- Similar topics

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