Hook player's map exploring ?
Before I release my massive mod (which is still about 40% completed and soon I might open a development thread about it..) I must create another sub-plugin in order to exploit an error.
After I complete the plugin I will release it so that it can help everyone who is experiencing the same problem. (Solution to that problem hasn't been published under the relating names for keysearching) Anyway, To do that I need to be sure in what is the right forward to use. I need a function call only when the client is exploring the world i.e move the mouse around, arrow keys, walk/run or anything that changes the view angle for that matter. Anything even close to that? |
Re: Hook player's map exploring ?
Quote:
|
Re: Hook player's map exploring ?
I have to disagree.
Pretty sure there is a way to determine if the player's view changing keys are in idle or not. Might be a bit tricky for the mouse direction though. Or one can use the "detect changes method". Might not be one forward, could be a functional callback or something... |
Re: Hook player's map exploring ?
Maybe by giving the option to player?
When the choose to explore, then something will be applied to them such as they can shoot anyone or the player will be invisible to player that choose to play. When he want to play, then he need to open certain menu and choose to play. |
Re: Hook player's map exploring ?
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". |
Re: Hook player's map exploring ?
The function must be called when the player changes the view.
This is for optimization purposes. The other solution is using a task, but that would be very slow, unneeded and not very promising for a plug-in designed to optimize. It would ruin more than optimize. |
Re: Hook player's map exploring ?
Checking if the player is in idle is very close to what I want as most of the actions do require change in the view.
I am not sure of how to do that though. (I am not much familiar with pev and what it actually means/does.) And there are some actions that don't need the function to be activated such as weapon switch, fire, crouch (which will change the meridian, but that could be forgiven) etc. |
Re: Hook player's map exploring ?
Quote:
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 |
Re: Hook player's map exploring ?
Quote:
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. |
Re: Hook player's map exploring ?
I didn't said that I DON'T want. I said that I CAN'T be more specific.
Yes I could definitely say more about what am I actually trying to achieve.. but for that I must open another topic as it is out of the bounds of that one o.o Like.. completely unrelated stuff. |
| All times are GMT -4. The time now is 22:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.