"Caching" the user who is spectating
There exists an acceptable way for caching the current user's spectated player? Maybe hooking some Observer_* functions from Orpheu, which I don't know how to hook o.O or any other way, for using it on a AddToFullPack forward tu reduce the usage of it, don't know if I explained correctly what I want
|
Re: "Caching" the user who is spectating
Quote:
|
Re: "Caching" the user who is spectating
Quote:
PHP Code:
Take as an example this plugin: https://forums.alliedmods.net/showthread.php?t=159584 You can show an sprite just to one player, and it tries to have always in player's screen Well, I want to show an sprite to a player, BUT ALSO show to any spectator which watches him on First Person View So that's why I'm asking for a way for caching spectator's target, any other doubt? |
Re: "Caching" the user who is spectating
I guess I don't really understand you question then. It should be obvious. You store the value in a variable . . . and then use the variable . . . aka caching. You just need to update it appropriately.
|
Re: "Caching" the user who is spectating
Quote:
|
| All times are GMT -4. The time now is 13:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.