Raised This Month: $ Target: $400
 0% 

check if player moving mouse or shoting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
linuxas
Member
Join Date: Sep 2013
Old 01-17-2014 , 15:09   check if player moving mouse or shoting
Reply With Quote #1

Hi all. I'm editing AFK kick to spectators plugin. I dont like, that this plugin is only checking if player is walking (a,s,w,d), ducking, jumping... Because if player is shoting, but doesn't move, the plugin kicks him to spectators..
Is there possible to check if player is moving mouse or shooting? It would be much better.
Sorry or bad english, thank you.
linuxas is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-17-2014 , 15:18   Re: check if player moving mouse or shoting
Reply With Quote #2

Quote:
Originally Posted by linuxas View Post
Is there possible to check if player is moving mouse or shooting?
Yes, detect button IN_ATTACK or IN_ATTACK2 to see if they are attacking. I don't recall at this moment how to determine if the player is looking around, but it is possible to determine
__________________
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
linuxas
Member
Join Date: Sep 2013
Old 01-18-2014 , 06:36   Re: check if player moving mouse or shoting
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
Yes, detect button IN_ATTACK or IN_ATTACK2 to see if they are attacking. I don't recall at this moment how to determine if the player is looking around, but it is possible to determine
Thank you !
linuxas is offline
WiggPerson
Junior Member
Join Date: Dec 2013
Location: Slovakia
Old 01-18-2014 , 08:15   Re: check if player moving mouse or shoting
Reply With Quote #4

To detect moving mouse try to check client's angles.
__________________
It does not matter who you are, just who you become.

Last edited by WiggPerson; 01-18-2014 at 08:16.
WiggPerson is offline
linuxas
Member
Join Date: Sep 2013
Old 01-19-2014 , 08:31   Re: check if player moving mouse or shoting
Reply With Quote #5

Quote:
Originally Posted by WiggPerson View Post
To detect moving mouse try to check client's angles.
Thank you, I will try.
linuxas 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 10:05.


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