Remember Spectators v1.2.5
10 Attachment(s)
*Only tested in L4D*
This will remember who is on the spectator team when the map changes. Once the new maps loads it will move the players back into the spectator team. CVAR: remember_spec_version Version 1.0.0: Initial Release Version 1.1.0: Minor bug fixing (validating clients). Thanks olj! Version 1.1.1: Stupid bugs... hopefully fixed validation.. Version 1.2.0: Added a check when player changes teams Version 1.2.1: Forgot to add client validation again... :shock: Version 1.2.2: Testing Version... Version 1.2.3: More minor bug fixes Version 1.2.4: Smashing tiny bugs Version 1.2.5: Bug fix. |
Re: [L4D] Remember Spectators
Nice work, bman.
I always had the problem when a player would go spectate right about the time the map would change. It would force the player to join the infected or the survivor team while still being afk, thus ruining the game for everyone. This will save me a lot of trouble. Thanks. Btw, got some error logs. Code:
L 08/20/2009 - 00:01:39: SourceMod error session started |
Re: [L4D] Remember Spectators
This should work in other mods, but team numbers would be totally different, so you will have to adjust this.
Add this function somewhere in code, then use IsValidClient check before GetClientTeam on 38 line EDIT: we dont want to do IsPlayerAlive check, so comment this out. PHP Code:
|
Re: [L4D] Remember Spectators *v1.1*
Thanks. But the error message is still their with the new version.
Code:
L 08/20/2009 - 10:21:56: SourceMod error session started |
Re: [L4D] Remember Spectators *v1.1*
There is no reason why adding valid client checking would screw this. Was there any other changes form 1.0?
|
Re: [L4D] Remember Spectators *v1.1*
Don't know either. The plugin works but those error messages needs to be taken care of.
I think he only did what you said yesterday, can't see anything different from 1.0 and 1.1 |
Re: [L4D] Remember Spectators *v1.1*
Quote:
EDIT: OH, well, validation check should be put BEFORE Any other checks. Can you swap this on your self? I cant edit 1st post. |
Re: [L4D] Remember Spectators *v1.1*
Yeah.
|
Re: [L4D] Remember Spectators *v1.1*
You mean at line 38?
|
Re: [L4D] Remember Spectators *v1.1*
Quote:
|
Re: [L4D] Remember Spectators v1.1.1
Hopefully this is fixed now.. I just moved the team checking method into the IsValidClient() method.
|
Re: [L4D] Remember Spectators v1.1.1
Yeah, error seems to be fixed.
There seems to be a new problem though. A friend of mine told me that if you've been on spectate mode a bit longer (lets say for 3 mapchanges) and then goes back to the game, you will get switched to spectate automaticly on next mapchange. You'll basicly be forced to spectate on every map change, even though you have joined the survivor/infected again. This problem is hard to describe, I think I've seen it when I joined the game as spectator twice. The problem seems to be very rare though. Dosen't happen if you go spectate for one map change. |
Re: [L4D] Remember Spectators v1.1.1
Just added a check to see if the client was in the spectators array when they change teams, if they are it will remove them from the array. Hopefully preventing your issue
|
Re: [L4D] Remember Spectators v1.2
Thanks. I'll report back if I see any trouble.
|
Re: [L4D] Remember Spectators v1.2.1
Whoops, download the plugin again... I forgot to add IsValidClient() to the team change method.... :down:
|
Re: [L4D] Remember Spectators v1.2.1
Done.
|
Re: [L4D] Remember Spectators v1.2.1
It just happend again. Was spectating on the first 2 maps, joined the infected team at the 3rd. On the 4th, just after the loading screen I was put back on spectate mode again. Was tested with 1.2.1
|
Re: [L4D] Remember Spectators v1.2.1
Can you test this version and let me know if its still broken?
|
Re: [L4D] Remember Spectators v1.2.1
Quote:
|
Re: [L4D] Remember Spectators v1.2.1
Quote:
|
Re: [L4D] Remember Spectators v1.2.1
yes thank god someone made this plugin xD my friend seems to go afk almost all the time during a game and it seems to get annoying havin to switch him back to spec every time xD
|
Re: [L4D] Remember Spectators v1.2.3
Test version worked perfect.
I assume you added back that check in 1.2.3 so I'm taking that one. |
Re: [L4D] Remember Spectators v1.2.3
Had another error this morning, it's been on almost every map.
Fix this and release a new update. Code:
L 08/22/2009 - 07:44:28: SourceMod error session started |
Re: [L4D] Remember Spectators v1.2.4
I added an additional check. v1.2.4
|
Re: [L4D] Remember Spectators v1.2.4
Thanks.
|
Re: [L4D] Remember Spectators v1.2.4
Code:
L 08/22/2009 - 20:32:24: Info (map "l4d_vs_hospital01_apartment") (file "errors_20090822.log") |
Re: [L4D] Remember Spectators v1.2.4
Something with arrays indexes. Maybe its trying to remove target from array index, which is already empty??
|
Re: [L4D] Remember Spectators v1.2.4
No idea but I only got the error once.
I don't know why it gave me the error now when I've been using it without errors for 2-3 hours. |
Re: [L4D] Remember Spectators v1.2.4
Try this one. Maybe clients are getting removed when they are team changed by the server when the round is over. Try the new version, I disabled the team_change hook.
|
Re: [L4D] Remember Spectators v1.2.5
I will let it run a couple of hours. I'll report back if I get any more erros.
|
Re: [L4D] Remember Spectators v1.2.5
The plugin looks the steam id, how can i change to look the nick of the player and no steam id ?
|
Re: [L4D] Remember Spectators v1.2.5
Quote:
|
Re: [L4D] Remember Spectators v1.2.5
Cool plugin man, makes respecing constantly for scrim matches a thing of the past! Thanks
|
Re: [L4D] Remember Spectators v1.2.5
Yeah, this plugin should have been approved by now :wink:
|
Re: [L4D] Remember Spectators v1.2.5
round_end is a generic round event, therefore this plugin can be used in other games too.
approved, greetings ~Berni |
Re: [L4D] Remember Spectators v1.2.5
Quote:
|
Re: Remember Spectators v1.2.5
not work on L4D2 , Next Round Equally wrong team
|
Re: Remember Spectators v1.2.5
It does work. Please, don't post if you don't know what you're talking about.
|
Re: Remember Spectators v1.2.5
So far works on CS Source Orange.
|
Re: Remember Spectators v1.2.5
anyone tested this on CSGO?
|
All times are GMT -4. The time now is 08:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.