Page 1 of 5
Kill cam for mohaa where would I start
Posted: Wed Mar 10, 2004 3:35 am
by small_sumo
Kill cam for mohaa where would I start, Can I make it level specific, as in write it into my map script?
Thanks.

Posted: Wed Mar 10, 2004 3:36 am
by omniscient
SERENDIPITY
i wanted to make one of these to, thouh it doesnt seem possible

Kill cam
Posted: Wed Mar 10, 2004 4:04 am
by tltrude
Ok, I'll bite. What is a Kill cam?
Posted: Wed Mar 10, 2004 4:07 am
by omniscient
hehe. "bite"
when u die it replays the last 5 second b4 your death from the killers POV.
Nope
Posted: Wed Mar 10, 2004 4:31 am
by tltrude
I don't think it is possible, but here is the camera tutorial that comes with the Spearhead editor.
http://pages.sbcglobal.net/tltrude/Temp ... torial.zip
Posted: Wed Mar 10, 2004 6:07 am
by small_sumo
Is there a file that says what happens at death? Cos then we could do the killcam thing (wich is just 3rd person I think) or maybe we can even do it in the script, with soemthing like if player health lessthan zero 3rd person scvar blah blah.
Follow player
Posted: Wed Mar 10, 2004 6:35 am
by tltrude
Maybe it could be done with the follow players thing, but that wouldn't replay the kill. I don't think Mohaa even has a record game system.
Posted: Wed Mar 10, 2004 7:15 am
by bighoss
Umm I dont know if it will help any, but an idea would be to look at script from COD. Cause in multiplayer there is a kill cam.
Posted: Thu Mar 11, 2004 1:13 am
by omniscient
u could make a spectator that has the demo command always on. when u die he plays to you that past 50 pictures or wahtever. (just speculating)
Posted: Fri Mar 12, 2004 10:52 pm
by M&M
ahhh,so what happens when 2 die at the same moment (or more)?a rocket guy blasts himslef and another ,or some1 throws a grenade and is trapped with the target ,or 2 ppl in different places getting shot at the same time .
u die he plays to you that past 50 pictures or wahtever
besides wouldnt taking this much screenshots slow the game?and if it was a cam that displays a movie wouldnt it slow the game 2? .
Posted: Sat Mar 13, 2004 2:47 am
by small_sumo
All I need is some code that makes the player when dead to setthread suchnsuch and in that I will use some code to force 3rdperson for a few seconds then revert back, that should do it.

Posted: Sat Mar 13, 2004 3:27 pm
by dcoshea
Is it even possible to find out which player shot the person who died via script? I know it could be done if there was an external tool involved. Is there any other way?
Regarding playing back the last 5 seconds, you could have a script which, for each player, records their origin in an array every second, keeping data only for the last 5 seconds. You could then have a camera at the location of the player who died which looks at those origins in order, panning between them and taking a second for each pan (I'm not certain you can control how long it takes to pan but you can certainly look at a location). By the time it's looking at where the shooter shot from, the shooter might have left, though. Perhaps it could look at the location the shot came from for 1 second before doing the 5 second thing, since the shooter is more likely to be visible then. This all depends on being able to find out who the shooter is.
Or does the feature in CoD look from the shooter's perspective at the person who got shot?
Regards,
David
Posted: Sat Mar 13, 2004 4:42 pm
by Bjarne BZR
dcoshea wrote:Or does the feature in CoD look from the shooter's perspective at the person who got shot?
The CoD replay does an exact replay as it looked 5 seconds before the kill was made, untill the actual kill was made. Its a replay as would you rewind a film.
Not really hard to do in the game, but VERY hard to do ( I imagine ) when you don't have access to the source code.
Posted: Sun Mar 14, 2004 10:32 am
by dcoshea
Bjarne BZR wrote:dcoshea wrote:Or does the feature in CoD look from the shooter's perspective at the person who got shot?
The CoD replay does an exact replay as it looked 5 seconds before the kill was made, untill the actual kill was made. Its a replay as would you rewind a film.
As it looked to whom, though, the shooter or the person who died?
Not really hard to do in the game, but VERY hard to do ( I imagine ) when you don't have access to the source code.
Oh well I guess we'll figure something out, even though it won't be anything like CoD
Regards,
David
Posted: Sun Mar 14, 2004 11:24 am
by Bjarne BZR
dcoshea wrote:As it looked to whom, though, the shooter or the person who died?

The shooter. Very good learning experience actually.
