Author Topic: Question from a concerned citizen - re: Killcam  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Question from a concerned citizen - re: Killcam
« 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Deathtitan77

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 6
Re: Question from a concerned citizen - re: Killcam
« Reply #1 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.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Question from a concerned citizen - re: Killcam
« Reply #2 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
My TTT server. Join the fun!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Question from a concerned citizen - re: Killcam
« Reply #3 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Question from a concerned citizen - re: Killcam
« Reply #4 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
My TTT server. Join the fun!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Question from a concerned citizen - re: Killcam
« Reply #5 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. :) ::)

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming