[ASK]Death/login/cutscene camera mode
#1

how to make player doesn't have character/skin spawn, just put camera to a point? just like login mode, player doesn't see and have controlled char. I want to make it for deathcam and cutscene too.
Reply
#2

You want to skip the death cut scene and spawn the player directly?
Reply
#3

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
You want to skip the death cut scene and spawn the player directly?
no, not quick respawn. just camera face to body when dead for a moment.

Like most servers, when login dialog camera face to building or anything. but request class is skipped.
Reply
#4

you get the player's coordinates, set the camera to a higher altitude (z axys) and set it to face the player. I haven't tested what I did, but it should be something like this:
Код:
forward camtrick();
public OnPlayerDeath(playerid)
{
	 new Float:x, Float:y, Float:z;
	 GetPlayerPos(playerid, x, y, z);
	 SetPlayerCameraPos(playerid, x, y, z+2);
	 SetTimer("camtrick", 2500, false); // Set a timer of 2.5 seconds
}
public camtrick()
{
	SetCameraBehindPlayer(playerid): 
}
Reply
#5

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
you get the player's coordinates, set the camera to a higher altitude (z axys) and set it to face the player. I haven't tested what I did, but it should be something like this:
Код:
forward camtrick();
public OnPlayerDeath(playerid)
{
	 new Float:x, Float:y, Float:z;
	 GetPlayerPos(playerid, x, y, z);
	 SetPlayerCameraPos(playerid, x, y, z+2);
	 SetTimer("camtrick", 2500, false); // Set a timer of 2.5 seconds
}
public camtrick()
{
	SetCameraBehindPlayer(playerid): 
}
Okay, thanks. +REP
I think I must set timer for respawn delay too.
Reply
#6

Delaying the after death respawn may be tricky, because it's processed by the client, not the server.
The server only receives the information that the player has respawned, so it calls OnPlayerSpawn.

Glad I could help. And by the way...I don't ask for rep, but I do monitor it....and it hasn't changed.
But, it's ok. Rep me only if you think I deserve it. Thx.
Reply
#7

Hello again

I already do that but textbox showed "You must spread some Reputation around before giving it to HeLiOn_PrImE again." sorry I can't keep the promise
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)