Raised This Month: $ Target: $400
 0% 

[SOLVED]catch key


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 09:33   [SOLVED]catch key
Reply With Quote #1

isnt there no in_flashlight?
i want to catch impulse 100 :O
__________________

Last edited by One; 08-14-2009 at 10:23.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-14-2009 , 09:53   Re: catch key
Reply With Quote #2

hlsdk_const.inc
Code:
#define IN_ATTACK                       (1<<0)
#define IN_JUMP                         (1<<1)
#define IN_DUCK                         (1<<2)
#define IN_FORWARD                      (1<<3)
#define IN_BACK                         (1<<4)
#define IN_USE                          (1<<5)
#define IN_CANCEL                       (1<<6)
#define IN_LEFT                         (1<<7)
#define IN_RIGHT                        (1<<8)
#define IN_MOVELEFT                     (1<<9)
#define IN_MOVERIGHT                    (1<<10)
#define IN_ATTACK2                      (1<<11)
#define IN_RUN                          (1<<12)
#define IN_RELOAD                       (1<<13)
#define IN_ALT1                         (1<<14)
#define IN_SCORE                        (1<<15)     // Used by client.dll for when scoreboard is held down
__________________
Bugsy is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-14-2009 , 09:57   Re: catch key
Reply With Quote #3

There's an event called Flashlight. Check out Avalanche's post
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 10:05   Re: catch key
Reply With Quote #4

@ bugsy : ty thats why i asked, cuz i couldnt find in_flash or in_impulse or somthing like this.

@ xanimos : ty i got it
register_event("Flashlight","event_flashlight ","b");
or how xpaw said :

egister_impulse( 100, "your func" );

new question : which is better or better said faster?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-14-2009 , 10:13   Re: catch key
Reply With Quote #5

The difference in speed between the two would be too minuscule to make a difference.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-14-2009 , 10:23   Re: [SOLVED]catch key
Reply With Quote #6

ok @ ty again
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-14-2009 , 10:04   Re: catch key
Reply With Quote #7

register_impulse ?
__________________
xPaw 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 15:16.


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