Bonsai Posted February 24, 2014 Posted February 24, 2014 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 IIYAMA Posted February 25, 2014 Moderators Posted February 25, 2014 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.
Bonsai Posted February 25, 2014 Author Posted February 25, 2014 Yeah, its clientside already. But using onClientRender... thats seems to be a dirty solution
Moderators IIYAMA Posted February 25, 2014 Moderators Posted February 25, 2014 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now