AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   check if player moving mouse or shoting (https://forums.alliedmods.net/showthread.php?t=233608)

linuxas 01-17-2014 15:09

check if player moving mouse or shoting
 
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. :)

YamiKaitou 01-17-2014 15:18

Re: check if player moving mouse or shoting
 
Quote:

Originally Posted by linuxas (Post 2087306)
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

linuxas 01-18-2014 06:36

Re: check if player moving mouse or shoting
 
Quote:

Originally Posted by YamiKaitou (Post 2087310)
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 ! :)

WiggPerson 01-18-2014 08:15

Re: check if player moving mouse or shoting
 
To detect moving mouse try to check client's angles.

linuxas 01-19-2014 08:31

Re: check if player moving mouse or shoting
 
Quote:

Originally Posted by WiggPerson (Post 2087611)
To detect moving mouse try to check client's angles.

Thank you, I will try. :)


All times are GMT -4. The time now is 10:05.

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