[FilterScript] [FS] Fallout's Death camera
#1

Fallout's Death Camera



Hi, I made some sort of Death Camera (so when you die, you spectate the player who killed you)
When there is no killer, you'll just spawn regulary
There is also a little countdown that shows the time before you spawn again.

it looks like this:


How to install:
- Put this filterscript in this folder: server\filterscripts\<here>
- Add F_DC to your filterscripts line in server.cfg

Download:

Reply
#2

very nice
Reply
#3

thanks
Reply
#4

Nice!

I didn't test it, but i read the script, and i think there will be problems when 2 or more players are dead/spectating at the same time.

Because you only have 1 textdraw and 1 timer.
Reply
#5

Quote:
Originally Posted by =>Sandra<=
Nice!

I didn't test it, but i read the script, and i think there will be problems when 2 or more players are dead/spectating at the same time.

Because you only have 1 textdraw and 1 timer.
the textdraw thing is fixed, but is the timer wrong? (i don't think it is, because i used SetTimerEx with "playerid", sorry if I'm wrong)
Reply
#6

Quote:
Originally Posted by °ғαιιοцт°
the textdraw thing is fixed, but is the timer wrong? (i don't think it is, because i used SetTimerEx with "playerid")
The point is that you only have 1 timer-variable (CountDownTimer).
For example this will happen:
  • Player 1 Dies, Value of CountDownTimer set to '1'
  • Within 6 seconds, Player 2 dies, CountDownTimer will be set to '2' since the first timer is not killed/finished yet
  • The 6 seconds are over for Player 1, CountDownTimer (which has value '2' now, gets killed).
  • There timer for the first player will never stop, and player 2 will not spawn again since his/her timer is killed
I did not tested it, but i think this can happen when a player dies within 6 seconds after another player died.

To solve, you have to make a CountDownTimer-vaiable for every player:
Code:
new CountDownTimer[MAX_PLAYERS];
Reply
#7

ok thx Sandra
Reply
#8

Wow, that's nice... I'll definately use this! Good job.
Reply
#9

Did not worked on my server, help
Reply
#10

Quote:
Originally Posted by ęΧţřЄшĕ95
Wow, that's nice... I'll definately use this! Good job.
thx

Quote:
Originally Posted by ArryMan
Did not worked on my server, help
did you add F_DC to your filterscripts line in server.cfg?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)