[FS] Fallout's Death camera -
ғαιιοцт - 03.01.2009
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:
Re: [FS] Fallout's Death camera -
russiany - 03.01.2009
very nice
Re: [FS] Fallout's Death camera -
ғαιιοцт - 03.01.2009
thanks
Re: [FS] Fallout's Death camera -
Sandra18[NL] - 03.01.2009
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.
Re: [FS] Fallout's Death camera -
ғαιιοцт - 03.01.2009
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)
Re: [FS] Fallout's Death camera -
Sandra18[NL] - 03.01.2009
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];
Re: [FS] Fallout's Death camera -
ғαιιοцт - 03.01.2009
ok thx Sandra
Re: [FS] Fallout's Death camera -
eXtreme72 - 04.01.2009
Wow, that's nice... I'll definately use this! Good job.
Re: [FS] Fallout's Death camera -
ArryMan - 04.01.2009
Did not worked on my server, help
Re: [FS] Fallout's Death camera -
ғαιιοцт - 04.01.2009
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?