Raised This Month: $ Target: $400
 0% 

Hook player's map exploring ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-02-2015 , 20:34   Re: Hook player's map exploring ?
Reply With Quote #1

So you just want to know if they are idle or not? You can check the commands that they are using in client_command() using pev_button (or something like that, IIRC). See hlsdk_const.inc.

Alternatively, you can simply check their position/angles and see if they change.

Regardless, your request really doesn't make sense. You should explain better what exactly you are trying to "hook".
__________________

Last edited by fysiks; 10-02-2015 at 20:37.
fysiks is offline
Al3
Member
Join Date: Sep 2015
Location: Bulgaria
Old 10-02-2015 , 20:43   Re: Hook player's map exploring ?
Reply With Quote #2

Quote:
Originally Posted by fysiks View Post
So you just want to know if they are idle or not? You can check the commands that they are using in client_command() using pev_button (or something like that, IIRC). See hlsdk_const.inc.

Alternatively, you can simply check their position/angles and see if they change.

Regardless, your request really doesn't make sense. You should explain better what exactly you are trying to "hook".
All right. I was trying to explain with my best.

I am trying to call a function only when the client changes the view (view angle (mouse) / xyz position). All part of the coordinate system.
I seriously don't know how to make it any clearer O_O

Last edited by Al3; 10-02-2015 at 20:44.
Al3 is offline
Send a message via Skype™ to Al3
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-02-2015 , 20:49   Re: Hook player's map exploring ?
Reply With Quote #3

Quote:
Originally Posted by Al3 View Post
All right. I was trying to explain with my best.

I am trying to call a function only when the client changes the view (view angle (mouse) / xyz position). All part of the coordinate system.
I seriously don't know how to make it any clearer O_O
Yeah, but that is basically ALWAYS when someone is not idle. You can do it by monitoring the position and view angles as I already said but regardless, the function is going to be called ALL THE TIME. If it's not trivial code, this could easily cause lag.

There's got to be a more specific event that you can hook. But, we can't really help you with that since you don't want to be any more specific about what you are actually trying to do.
__________________

Last edited by fysiks; 10-02-2015 at 20:50.
fysiks 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 22:17.


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