Raised This Month: $ Target: $400
 0% 

"Caching" the user who is spectating


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-02-2013 , 19:19   "Caching" the user who is spectating
Reply With Quote #1

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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2013 , 20:19   Re: "Caching" the user who is spectating
Reply With Quote #2

Quote:
Originally Posted by meTaLiCroSS View Post
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
What are you trying to do? I know there is a way to get the spectated player via fakemeta. It's been posted on the forums several times.
__________________
fysiks is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-02-2013 , 20:25   Re: "Caching" the user who is spectating
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
What are you trying to do? I know there is a way to get the spectated player via fakemeta. It's been posted on the forums several times.
Yeah, through 2 entvars

PHP Code:
const EV_INT_SPEC_MODE =     EV_INT_iuser1 // just for readability
const EV_INT_SPEC_TARGET EV_INT_iuser2 
But is a bad idea to call these entvars on AddToFullPack constantly.

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?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2013 , 20:44   Re: "Caching" the user who is spectating
Reply With Quote #4

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.
__________________

Last edited by fysiks; 01-02-2013 at 20:44.
fysiks is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-02-2013 , 21:12   Re: "Caching" the user who is spectating
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
You just need to update it appropriately.
That's what I'm asking LOL, asking which forward, event, or something, for storing the value appropriately
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 01-02-2013 at 21:14.
meTaLiCroSS 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 13:38.


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