Game Development Community

Death Cam

by Josiah Pisciotta · in Torque Game Engine · 07/19/2007 (11:51 am) · 4 replies

I am trying change the standard death cam that comes with torque. I want mine to just stay at the same angel as it is while the game play is going. Anyone have any idea how to do this because everytime I try it just sends my camera view to "Corpse" cam which I have tried to modify to get it to stay but it zips me to another side of level and just sticks the camera there... any suggestions would help.

#1
07/19/2007 (12:18 pm)
Do you mean you want the camera to stay with the player when he dies?
#2
07/20/2007 (11:20 am)
Well I want the camera to pretty much stay the same when the player dies. In about the same spot so I can see the death animation, because the stock camera goes under the ground to some weird horrible angle.
#3
07/25/2007 (11:30 am)
*bump
#4
07/27/2007 (2:19 am)
I have the same idea, but cant find solution...
i found that after death camer changes to "corpse" mode in "camera.cs" script
in this function:
Quote:
function Observer::setMode(%this,%obj,%mode,%arg1,%arg2,%arg3)
{
switch$ (%mode)
{
case "Observer":
// Let the player fly around
%obj.setFlyMode();

case "Corpse":
// Lock the camera down in orbit around the corpse,
// which should be arg1
%transform = %arg1.getTransform();
%obj.setOrbitMode(%arg1, %transform, 0.5, 4.5, 4.5);
}
%obj.mode = %mode;
}

so it seems we need to replace "corpse mode" by ours mode that we want to be...
or just need to find where is camera mode changes, may be somewhere in player death script