Raised This Month: $ Target: $400
 0% 

Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-05-2009 , 21:50   Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #1

I have a good feeling this isn't possible but it's worth a shot. Is it possible, for example, to force a player to use\execute MOUSE1?
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-05-2009 , 22:27   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #2

How do you know what a player has MOUSE1 bound to?
fysiks is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-05-2009 , 22:59   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
I have a good feeling this isn't possible but it's worth a shot. Is it possible, for example, to force a player to use\execute MOUSE1?
mmm
client_cmd(id, +attack)
not to press a key but yep to accion a comand (so, do what a key can do)
Speed! is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-06-2009 , 00:17   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
How do you know what a player has MOUSE1 bound to?
I don't but would like to know if it is possible to execute actual button\mouse presses before I consider anything else.

Quote:
Originally Posted by Speed! View Post
mmm
client_cmd(id, +attack)
not to press a key but yep to accion a comand (so, do what a key can do)
I want the actual key\mouse click, not just a command.
__________________
Bugsy is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 00:45   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
I don't but would like to know if it is possible to execute actual button\mouse presses before I consider anything else.



I want the actual key\mouse click, not just a command.
well you could query the bind of MOUSE1 and then execute that command...
Speed! is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-06-2009 , 00:49   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #6

Quote:
Originally Posted by Speed! View Post
well you could query the bind of MOUSE1 and then execute that command...
I am inquiring for my aimbot detection plugin. Some aimbots function by binding to the shoot button so it only aims when the shoot button is pressed. I would like to force the button press for this purpose.
__________________
Bugsy is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-06-2009 , 00:49   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #7

You can't.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Speed!
BANNED
Join Date: Jan 2009
Old 02-06-2009 , 12:08   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #8

mmmm and what with trying this

PHP Code:
static victimflags
victimflags 
pev(victimpev_flags
isnt there a flag for shooting? sorry i just remember DUCKING; ONGROUND etc
Speed! is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-06-2009 , 12:29   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #9

Quote:
Originally Posted by Speed! View Post
mmmm and what with trying this

PHP Code:
static victimflags
victimflags 
pev(victimpev_flags
isnt there a flag for shooting? sorry i just remember DUCKING; ONGROUND etc
There's ways to detect when player is shooting, still:
Quote:
Originally Posted by Bugsy View Post
I want the actual key\mouse click...
Bugsy wants to detect the mouse pressing, which is not possible.
SnoW is offline
Send a message via MSN to SnoW
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-06-2009 , 17:03   Re: Calling a players bound key\mouse. (MOUSE1, MOUSE2 etc)
Reply With Quote #10

in a client's prethink, get their pev_button, if has the bit for IN_ATTACK they are starting to attack, if pev_oldbutton has the bit IN_ATTACK, they are holding the attack button.

or at least that's what I thought...
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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 01:43.


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