Posts: 2,938
Threads: 162
Joined: May 2010
Topic isn't quite descriptive, but let me explain.
playerA PlayerSpectatePlayer on playerB
playerB's position gets moved far away using SetPlayerPos OR the player's state is changed.
Spectate mode doesn't update, camera goes to blueberry or something. PlayerSpectatePlayer is required to restart the spectating.
-- Please fix for 0.3.7.
Posts: 637
Threads: 25
Joined: Dec 2010
Reputation:
0
it's possible to fix via script
Posts: 161
Threads: 12
Joined: Apr 2012
Reputation:
0
^ it's possible to fix your brains via rusty metal bar.
Yes it is another issue which can be "patched" but also could be solved in different manner. It is an annoying bug, and just pisses me to implement it in every other game mode I create.
Posts: 2,938
Threads: 162
Joined: May 2010
I already fixed it evidently? If the player's state changed, respec them and check for if in vehicle / player.
Maybe if it was implemented in a_adminspec.pwn (i believe?) people wouldn't complain.
I'm just reporting, I've never really seen anyone else report this even tho they have reported all the other "fix it yourself" bugs.
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
Nobody reported this because there is already a fix for this that can be scripted.
Posts: 637
Threads: 25
Joined: Dec 2010
Reputation:
0
preloading animations need time to load
Posts: 669
Threads: 15
Joined: Jul 2009
Reputation:
0
The problem exists because the player that is being spectated has teleported outside of the streaming range of the spectator, and therefore the spectator's client no longer knows where the other player is.
Knowing this, there is a much less complex/more reliable method than hooking SetPlayerPos and setting a timer - use OnPlayerStreamOut and check if forplayerid was spectating playerid. If so, call PlayerSpectatePlayer again.
The problem isn't really a bug in the spectate code but rather a side-effect of the player streaming system. If it were 'fixed' in the SA-MP server, it would be the exact same code that I described above.
I agree that a fix for all of these little bugs would be appreciated but c'mon, we have the opportunity for some cool new things in 0.3.7 - let's not waste their time with tiny things we can fix ourselves.