Raised This Month: $ Target: $400
 0% 

How do i override a key


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
InnocentMonster
New Member
Join Date: Sep 2012
Old 09-23-2012 , 21:07   How do i override a key
Reply With Quote #1

Hello Everyone,

I am currently working on a mod that need to replace jump (Space Bar) with my own command. I know that Vs Saxton Hale mode can use Ctrl as super jump, so there must be a way. Can anyone help me?

Thanks,
InnocentMonster
InnocentMonster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-23-2012 , 22:12   Re: How do i override a key
Reply With Quote #2

Just as an FYI, it's impossible to tell what physical key is being used for a command. The only thing that you can do is execute a function when they send the jump command to the server (but note that the jump command is handled different than single instance commands like "say" or "say_team").
__________________
fysiks is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-24-2012 , 00:23   Re: How do i override a key
Reply With Quote #3

Scripting help for SourceMod is found over there
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:22.


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