AssaultCube Reloaded Forums
Death cam - Printable Version

+- AssaultCube Reloaded Forums (http://forum.acr.victorz.ca)
+-- Forum: AssaultCube Reloaded (http://forum.acr.victorz.ca/forum-1.html)
+--- Forum: Implemented Features (http://forum.acr.victorz.ca/forum-32.html)
+--- Thread: Death cam (/thread-261.html)

Pages: 1 2


Death cam - RPG - 01-01-2012

This is the camera that follows your killer. Many FPS has such effect (e.g. Counter Strike).

i think it is very easy to implement. if u want I'll make the patch.


RE: Death cam - Victor - 01-01-2012

I made code that makes the camera look at the killer, but does not follow them.

Please make a patch and I will include it. You should consider making it so that if you get headshot, it looks at your stain on the wall (the inverse direction, but does not follow).


RE: Death cam - Fubizz - 01-02-2012

but it woukd be better to have a killcam because then you can see how you get killed ...


RE: Death cam - RPG - 01-02-2012

> but it woukd be better to have a killcam because then you can see how you get killed ...

Smth like flashback? I think it's hard to implement - client must record a demo and play part of it when somebody kills you.

>I made code that makes the camera look at the killer, but does not follow them.

Didn't noticed in previous release. Or you made it in SVN? Follow/look - just make a choice, AC already has "following" code - in spectator mode, DEATHCAM - just another spectator mode.

But if you already have deathcam code (look or follow) - it's very good news.


RE: Death cam - Victor - 01-02-2012

There is deathcam LOOK already attempted to be implemented (clientgame.cpp:200), but I commented out that block because it wasn't working. It doesn't follow the killer.

EDIT:

Too late for you... I already made a deathcam. It also has a switch with /deathcam [0/1].

Looks like this is the last feature to make it into 2.3.4.


RE: Death cam - RPG - 01-02-2012

To follow look at the player just use function vectoyawpitch in physics.cpp

smth like vectoyawpitch(vec, camera1->yaw, camera1->pitch);

Also you should see the spectator and camera code in rendergl.cpp.

the most important feature of release - the lack of crashes.


RE: Death cam - Victor - 01-02-2012

There is no vectoyawpitch(), but I made code for it.


RE: Death cam - RPG - 01-03-2012

Strange... AC has this function.
I see the deathcam. i think there may be some improvements:

1. Stop looking when your killer is dead
2. Look on the player only for 3 seconds to avoid "spying".


RE: Death cam - Victor - 01-03-2012

Maybe AC 1.0.4 doesn't have it...

I'm not sure, but maybe if I made it only look for 3 seconds, then there is no need to fix number 1.


RE: Death cam - RPG - 01-04-2012

> then there is no need to fix number 1
right. just do not look at the killer forever.