Ulysses

General => Off-Topic => Topic started by: JamminR on September 07, 2013, 08:35:50 AM

Title: Question from a concerned citizen - re: Killcam
Post by: JamminR on September 07, 2013, 08:35:50 AM
A concerned citizen writes me personally asking a question that all may find informational/educational;
Quote from: A Concerned Citizen
I want to make like a killcam, so whenever a player dies he will be able to see the vision of the killer. I am kinda 85% sure it's not possible but I am just wondering.

If they mean see the last few seconds of what the attacker saw, as they were attacking you, no, not easily, if at all.

If you simply want to see what they see immediately, Yes.
Depending on gamemode, I'm sure some lua code like what we use in "ulx spectate" could be used.
Title: Re: Question from a concerned citizen - re: Killcam
Post by: Deathtitan77 on September 07, 2013, 08:40:47 AM
"If they mean see the last few seconds of what the attacker saw, as they were attacking you, no, not easily, if at all." That.
Title: Re: Question from a concerned citizen - re: Killcam
Post by: krooks on September 12, 2013, 10:18:06 AM
An interesting idea that I might actually play with, wouldn't you be able to have the ulx spectate trigger after a timed delay, that triggered directly after a kill?

This might be fun for the winning kill of the game (TTT) on servers with slo-mo
Title: Re: Question from a concerned citizen - re: Killcam
Post by: JamminR on September 12, 2013, 02:10:05 PM
But he's wanting up to the kill, not after.
There's no non-resource-intensive way to record time before a kill, or share it with the other players.
(I'm thinking demo recording or something).
Sure, you could use a player death hook to trigger the same functions spectate uses, but by then, it's not fun anymore.
Title: Re: Question from a concerned citizen - re: Killcam
Post by: krooks on September 12, 2013, 02:23:55 PM
A simple time machine script in that case, obvi! :P

I didn't realize he wanted before and not after
Title: Re: Question from a concerned citizen - re: Killcam
Post by: JamminR on September 12, 2013, 07:23:31 PM
Right, until Garry comes out with a PrePlayerDeath hook, that is 100% accurate up to 10 seconds before the PlayerDeath hook and will tie into it, and can record the attacker's view predeath, I don't see a way. :) ::)