Kill cam for mohaa where would I start

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Kill cam for mohaa where would I start

Post 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.

:idea:
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

SERENDIPITY
i wanted to make one of these to, thouh it doesnt seem possible :?
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Kill cam

Post by tltrude »

Ok, I'll bite. What is a Kill cam?
Tom Trude,

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

hehe. "bite"
when u die it replays the last 5 second b4 your death from the killers POV.
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Nope

Post 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
Tom Trude,

Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Follow player

Post 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.
Tom Trude,

Image
bighoss
Major
Posts: 276
Joined: Fri Jan 09, 2004 3:34 pm
Location: USA, Ohio

Post 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.
Image
Strive to accomplish great things!!
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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)
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post 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? .
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.


:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
dcoshea
Colour Sergeant
Posts: 94
Joined: Thu Mar 04, 2004 3:00 am
Location: Sydney, Australia
Contact:

Post 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
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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.
Admin .MAP Forums
Image
Head above heels.
dcoshea
Colour Sergeant
Posts: 94
Joined: Thu Mar 04, 2004 3:00 am
Location: Sydney, Australia
Contact:

Post 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
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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. :)
Admin .MAP Forums
Image
Head above heels.
Post Reply