Ulysses
General => Off-Topic => Topic started 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;
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.
-
"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.
-
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
-
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.
-
A simple time machine script in that case, obvi! :P
I didn't realize he wanted before and not after
-
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. :) ::)