Problem with faces
#1

Hi,i've a small problem in my request class.

This is when i choose Swat:



Why the face is in the right position?lol.

Here is the OnPlayerRequestClass infos about SWAT:

Код:
 gTeam[playerid] = TEAM_SWAT;
	  GameTextForPlayer(playerid, "~g~Swat", 1000, 6);
	  SetPlayerCameraPos(playerid,-1585.859,712.039,-4.088);
      SetPlayerCameraLookAt(playerid,-1590.260,714.383,-5.242);
      SetPlayerPos(playerid, -1590.260,714.383,-5.242);
      SetPlayerFacingAngle(playerid,0);
And for Farmers:



Код:
      gTeam[playerid] = TEAM_FARMERS;
      GameTextForPlayer(playerid, "~g~Farmers", 1000, 6);
      SetPlayerCameraPos(playerid,-1115.033,-1196.493,129.692);
      SetPlayerCameraLookAt(playerid,-1109.436,-1196.336,129.225);
      SetPlayerPos(playerid,-1109.436,-1196.336,129.225);
      SetPlayerFacingAngle(playerid,0);
Kamikazers



Код:
   gTeam[playerid] = TEAM_KAMIKAZERS;
      GameTextForPlayer(playerid, "~r~Kamikazers", 1000, 6);
      SetPlayerCameraPos(playerid,-1833.725,881.319,87.250);
      SetPlayerCameraLookAt(playerid,-1830.012,881.114,87.195);
      SetPlayerPos(playerid,-1830.012,881.114,87.195);
      SetPlayerFacingAngle(playerid,0);
Immigrants:



Код:
    gTeam[playerid] = TEAM_IMMIGRANTS;
      GameTextForPlayer(playerid, "~g~Immigrants", 1000, 6);
      SetPlayerCameraPos(playerid,-1453.411,1505.879,2.141);
      SetPlayerCameraLookAt(playerid,-1448.855,1504.286,1.736);
      SetPlayerPos(playerid,-1448.855,1504.286,1.736);
      SetPlayerFacingAngle(playerid,0);
Medics (LOLLL)



Код:
 gTeam[playerid] = TEAM_MEDICS;
      GameTextForPlayer(playerid, "~r~Medics", 1000, 6);
      SetPlayerCameraPos(playerid,-2689.175,622.850,15.528);
      SetPlayerCameraLookAt(playerid,-2690.032,633.025,14.453);
      SetPlayerPos(playerid,-2690.032,633.025,14.453);
      SetPlayerFacingAngle(playerid,0);
And this is the last,Richs:



Код:
  gTeam[playerid] = TEAM_RICHS;
      GameTextForPlayer(playerid, "~y~Richs", 1000, 6);
      SetPlayerCameraPos(playerid,-2726.348,992.213,55.236);
      SetPlayerCameraLookAt(playerid,-2724.392,988.204,54.460);
      SetPlayerPos(playerid,-2724.392,988.204,54.460);
      SetPlayerFacingAngle(playerid,0);
When i choose Richs,i can see the face angle good,but with other teams not.

What's wrong?
Reply
#2

Because they all face the same direction and the cameras do not. You have to put the facing angle to face the camera. This should really be obvious.
Reply
#3

pawn Код:
SetPlayerFacingAngle(playerid, 180.0);
Reply
#4

Use the same CameraLookAtPos for all the classes. I think that one is the camera's offsets.
Reply
#5

blackwave got it.

#1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)