Jump to content

Spectator Mode


Bonsai

Recommended Posts

Posted

Hey Peeps,

I finally wanna solve my spectator mode problem.

When the localPlayer dies, I use setCameraMatrix(getCameraMatrix()) to make the camera stop following

and prevent this shaking thing.

But after about 3 seconds it still starts to shake..

Also, sometimes the camera flies back to the last position of the dead player and you can still see the body lying there.

Its not that bad to see the dead body since they can be moved away, but I don't understand why the camera seems to auto focus the player, even though I cleared the camera target before.

I tried using spawnPlayer on death to prevent any camera manipulation caused by death, but its basically the same thing, camera focuses the player. Only difference is the Player isn't dead.

I really need someone who knows about this..

It became really annoying, and checking how its done in race resource wasn't helpful at all.

Bonsai

  • Moderators
Posted

O_o

Maybe you can try onClientRender+setCameraMatrix

and manage it partly at clientside. Then you also have more possibility's with animating the camera and making sure it won't get stuck in the walls.

  • Moderators
Posted

Indeed it is, but since this gta death camera starts working after a few seconds, I don't know.

But see the benefit of it, you can focus the camera on your enemy's/friends/players from the air. Like GTA 1.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...