Author Topic: What is the number value for the LShift (Walk) key?  (Read 2516 times)

ugh
You meant 'walk' as in the key that makes your player movement slower
This entire time I've been thinking that you both are using the lshift key as your forward movement key. Think about using that key for a second and you'll understand why I was so dumbfounded

Which is exactly why you should be sure what you're talking about. I get what you mean but still you need to think before you act.

Quote
You meant 'walk' as in the key that makes your player movement slower

Yes walking is usually the slower movement :I
I'm not sure what anyone else would really call it. I don't call the normal movement through W running either though.
« Last Edit: July 19, 2012, 07:55:03 PM by A Twig »

Which is exactly why you should be sure what you're talking about. I get what you mean but still you need to think before you act.
There is nothing you said that differentiated between walking and having slower movement until you did. I think plenty about what I post before I do it. Maybe you should think before you act, you raged randomly at me for this tiny little misunderstanding.

There is nothing you said that differentiated between walking and having slower movement until you did. I think plenty about what I post before I do it. Maybe you should think before you act, you raged randomly at me for this tiny little misunderstanding.
Neither of you knew it was a tiny little misunderstanding until now.

^Is right

Which is also why we should move onto a new topic (Like the one I intended on making this topic about..) before other factors are added. So overall there is no exact number value for "Walking" and only Jet, Fire, Crouch, Jump, ClearGhostBrick, and Light have number values.
« Last Edit: July 20, 2012, 11:09:35 AM by A Twig »

So overall there is no exact number value for "Walking" and only Jet, Fire, Crouch, Jump, ClearGhostBrick, and Light have number values.
You're throwing two completely different things into one category

Triggers (left hand, right hand, jump, crouch, and jet) are handled by the engine, with a script callback (::onTrigger). Other core functions such as WASD movement and walking are handled similarly, but I believe without the script callback, meaning that scripts can not directly access what is happening in regards to these functions
All other keybinds, including clearbrick and light are handled through binds that call script functions, mostly serverCmds. They don't have a "number value"

Tell us exactly what you're hoping to accomplish with this, and we may be able to provide you something
« Last Edit: July 20, 2012, 05:06:35 PM by Headcrab Zombie »

Two things I was going to work on:

 - When you hit the ClearGhostBrick key it switches between two fire modes depending on the gun.

 - When you click (Or hold down, would prefer this) the SLOWER walk key, it toggles a playertype with a faster speed.

I figured that there was a number value for every key since there was for the Right Mouse Button, but it appears not. Also yes I know about the onTrigger callback, I.E. ADS.

@Treynolds
WASD By default for controls
LShift to walk (Holding W is normal speed, LShift makes me go slower)
C to crouch
F to zoom
R for light (Made so it's more authentic to reload reload-able guns)

@Chrono
I see. But would you have to judge it off of the default player? If the player was originally using a different playertype that was faster or slower than normal, wouldn't that cause a conflict or would you have to strictly use the default playertype.
^Is right

Which is also why we should move onto a new topic (Like the one I intended on making this topic about..) before other factors are added. So overall there is no exact number value for "Walking" and only Jet, Fire, Crouch, Jump, ClearGhostBrick, and Light have number values.

Are you incapable of using the Quote button?  Just asking...

Nope. Keep on the same subject and provide help or don't post random comments about how I work. If I choose to quote then that's great, if I choose not to then oh well. Tough luck.
« Last Edit: July 23, 2012, 10:00:25 AM by A Twig »

Are you incapable of using the Quote button?  Just asking...

 :iceCream: See I quoted, also earlier on this page I quoted as well. Now you may rest in peace.

So you want to run code when a player crouches?

When the player toggles or holds the key that makes them walk slower.

- When you hit the ClearGhostBrick key it switches between two fire modes depending on the gun.
package serverCmdCancelBrick

- When you click (Or hold down, would prefer this) the SLOWER walk key, it toggles a playertype with a faster speed.
You might have to change that to something else. Considering that you're modifying cancelBrick, I assume you're making some sort of gamemode that won't involve building? If so, you could package one of the other building functions, such as serverCmdPlantBrick, serverCmdRotateBrick, or servermCmdShiftBrick, the last two of which you could check the arguments so that only a certain direction does what you want.

The original motive was to have a more reasonable sprinting for my weapon pack. See how the Tactical weapons pack has sprinting, but is used with the same key the majority of people resemble as Aim-Down-Sights. I wanted to have an easily usable key for sprinting such as LShift, which for me is the walk key. Would you suggest people switch their ClearGhostBrick key or some other key to LShift for this to work?

The original motive was to have a more reasonable sprinting for my weapon pack. See how the Tactical weapons pack has sprinting, but is used with the same key the majority of people resemble as Aim-Down-Sights. I wanted to have an easily usable key for sprinting such as LShift, which for me is the walk key. Would you suggest people switch their ClearGhostBrick key or some other key to LShift for this to work?
All you need to do is over write crouch(); I think

All you need to do is over write crouch(); I think
Coding help is not the place where we spew out misinformation
Please go away