• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Faster spectator mode & OnPlayerRequestClass
#1
Is there any option to make spectator mode "faster" when toggling. I can see skin mesh for a second every time and I would like to make it cleaner and smoother.



I'm trying to do some cinematic scene when player connects but OnPlayerRequestClass is called even though I put it there in spectator mode.



My suggestion would be to able in script?to disable this callback at all if we don't want to use it, also F4 button ingame is abusable by players on RP servers.
  Reply
#2
Maybe you are doing something wrong, because currently I use InterpolateCameraPos and InterpolateCameraLookAt to create camera movement while the player is not logged in.

Every 50 seconds, if the player is still on the login screen, the camera continues to move in predefined random locations.



Here is an example of the system I use and works without problems:





PHP Code:
public OnPlayerConnect(playerid)

{

? ? 
TogglePlayerSpectating(playeridtrue);

? ? 
SetPlayerInterior(playerid0);

? ? 
SetPlayerVirtualWorld(playerid0);

? ? 
InterpolateCameraPos(playerid1315.031982, -1732.84899922.6300481813.086425, -1733.90136719.43346740000CAMERA_MOVE);

? ? 
InterpolateCameraLookAt(playerid1319.984375, -1732.78247021.9447111815.772827, -1729.68737719.5935951000CAMERA_MOVE);

? ? return 
1;

}



public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])

{??

? ? if(
dialogid == 8)

? ? {

? ? ? ? if(
responsenew_TogglePlayerSpectating(playeridfalse);//Spawn player after login and call OnPlayerRequestClass

? ? }

? ? return 
1;

}



public 
OnPlayerRequestClass(playeridclassid)

{

? ? 
SetTimerEx("SkipRequestClass",1,0,"d",playerid);//Disable buttons

? ? return 1;

}



forward SkipRequestClass(playerid);

public 
SkipRequestClass(playerid)

{

? ? 
SpawnPlayer(playerid);

? ? return 
1;


  Reply


Forum Jump: