AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   UC_Buttons (https://forums.alliedmods.net/showthread.php?t=132631)

mati009988 07-17-2010 04:52

UC_Buttons
 
Hi!
When walk speed is high and i try to go with shift i can hear my footsteps.

I try to fix it:
PHP Code:

new button get_uc(uc_handleUC_Buttons);
if(
button IN_xxx){
/*code*/


But i don`t know how to name shift key

Please help.

lazarev 07-17-2010 04:56

Re: UC_Buttons
 
http://forums.alliedmods.net/showthread.php?t=56872

Hunter-Digital 07-17-2010 04:57

Re: UC_Buttons
 
I think it's got something to do with IN_RUN ... but that can be weird, because I think it's triggered when you WALK OR when you RUN by pressing the shift key (always run off, shift = run).

The best way I think is to use get_speed() and if it's >= to the boosted walking speed, you just do what you need.

mati009988 07-18-2010 08:58

Re: UC_Buttons
 
ok thanks


All times are GMT -4. The time now is 07:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.