Raised This Month: $51 Target: $400
 12% 

[L4D] VS Auto-spectate on AFK


Post New Thread Reply   
 
Thread Tools Display Modes
djromero
Senior Member
Join Date: Dec 2008
Location: Maracaibo, Venezuela
Old 02-17-2009 , 21:22   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #31

Version 1.2 released.
__________________
David Romero


djromero is offline
Dark-Reaper
Member
Join Date: Jan 2009
Old 02-18-2009 , 06:09   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #32

There is still the problem.

I'll explain it exactly :

We are 8, but some of us have a better connection. And one of the survivors leave the safe-room when he is alone and there is one infected. What will happened ? All the 6 players left will be able to change team, so teams will be totally mixed.
Dark-Reaper is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 02-18-2009 , 06:24   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #33

Quote:
Originally Posted by djromero View Post
Version 1.2 released.
Thanks for the update, works like a charm now.

Last edited by Visual77; 02-18-2009 at 06:30.
Visual77 is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 02-18-2009 , 10:17   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #34

approved

Note:
PHP Code:
473     
474    
// now we reset all the timers ... 
475    new i
476    for (i=1;i<MAXPLAYERS;i++) 
477    
478        afkResetTimers(i); 
479        afkPlayerTrapped[i] = false// we mark the player as not trapped 
You probably want to use <= in line 476 instead of <
sfPlayer is offline
djromero
Senior Member
Join Date: Dec 2008
Location: Maracaibo, Venezuela
Old 02-18-2009 , 11:17   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #35

Quote:
Originally Posted by sfPlayer View Post
approved

Note:
PHP Code:
473     
474    
// now we reset all the timers ... 
475    new i
476    for (i=1;i<MAXPLAYERS;i++) 
477    
478        afkResetTimers(i); 
479        afkPlayerTrapped[i] = false// we mark the player as not trapped 
You probably want to use <= in line 476 instead of <
Yes, but i'm a little confused with this. I have been getting some error about "MAXPLAYERS" client being not valid while using the IsClientConnected function.
__________________
David Romero


djromero is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 02-18-2009 , 12:23   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #36

try i<=GetMaxClients()
sfPlayer is offline
madcap
Senior Member
Join Date: Feb 2009
Old 02-18-2009 , 14:57   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #37

I like this plugin and I've learned a bunch of neat tricks looking through the code but I have a couple of questions/concerns.


Code:
// If player has at least reservation ...
 if (GetAdminFlag(id, Admin_Reservation)||GetAdminFlag(id, Admin_Root)||GetAdminFlag(id, Admin_Kick))
  return true;
Rather than only making Reservation, Root and Kick admins exempt from AFK kicking, why not allow admins to specify which access levels are exempt in a cvar? There are too many admin types and each server could use them differently so why hardcode the exempt access levels? Maybe I don't want reserved slot players to be kick immune but I do want root admins to be immune.

Example:
Quote:
l4d_specafk_kickimmune "aoz"


I can't test it right now but won't your IsValidPlayer function return true for any bots? From my experimentation IsFakeClient is not true for bots. When I need to test this I look at the auth string which is a steam ID for a player and BOT for a bot.


Also, as I already noted in the L4D Away plugin can l4d_specafk_showteampanel please default to 0 instead of 1? It really is a lot more user friendly. I know it's easy enough to change but I'm guessing a lot of people won't bother to do it because they don't know how annoying it is.


I only bring these things up because I care. Neat plugin.

Last edited by madcap; 02-18-2009 at 15:05.
madcap is offline
AcidTester
Senior Member
Join Date: Jan 2009
Old 02-19-2009 , 08:32   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #38

Found issue/bug with coop play.
When coop, go_away_from_keyboard cvar not work.
Also when guy afk it forces him to spectators as normal this is good, but when he decide to go back, left mouse button doesnt make any result, pressing "M" either not any menu appears. The only way to return in game from spectators u have to manually go to spectatort again by typing in console spectate and after this while pressing "M" u can join survivals.
Can u fix this with coop play pls? and also let go_away_from_keyboard work either.

Suggestions:
on connect opens panel with choose team its good, but when guy press cancel and decide to observe a little and after decide to choose team but dont know how. Can u bring back hint message with "press M to choose team" like in previous version?
__________________
AcidTester is offline
Send a message via ICQ to AcidTester
Number Six
Senior Member
Join Date: Dec 2008
Old 02-19-2009 , 20:10   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #39

L 02/20/2009 - 01:47:18: SourceMod error session started
L 02/20/2009 - 01:47:18: Info (map "l4d_vs_hospital01_apartment") (file "errors_20090220.log")
L 02/20/2009 - 01:47:18: [SM] Native "GetClientTeam" reported: Client 2 is not in game
L 02/20/2009 - 01:47:18: [SM] Displaying call stack trace for plugin "L4DVSAutoSpectateOnAFK.smx":
L 02/20/2009 - 01:47:18: [SM] [0] Line 440, D:\L4DMods\SkyAdmin\L4DVSAutoSpectateOnAFK.sp ::afkResetTimers()
L 02/20/2009 - 01:47:18: [SM] [1] Line 477, D:\L4DMods\SkyAdmin\L4DVSAutoSpectateOnAFK.sp ::afkManager_Start()
L 02/20/2009 - 01:47:18: [SM] [2] Line 221, D:\L4DMods\SkyAdmin\L4DVSAutoSpectateOnAFK.sp :layerLeftStart()
L 02/20/2009 - 01:54:58: Error log file session closed.

1 problem :
Players play but forced spectate in 5 secondes and kicked 5 others secondes ... Generally on map change with 8 players .
__________________



Last edited by Number Six; 02-19-2009 at 22:01.
Number Six is offline
djromero
Senior Member
Join Date: Dec 2008
Location: Maracaibo, Venezuela
Old 02-19-2009 , 23:36   Re: [L4D] VS Auto-spectate on AFK
Reply With Quote #40

Quote:
Originally Posted by madcap View Post
I can't test it right now but won't your IsValidPlayer function return true for any bots? From my experimentation IsFakeClient is not true for bots. When I need to test this I look at the auth string which is a steam ID for a player and BOT for a bot.
If IsFakeClient returned false for bots, then my vs infected bots plugin wouldn't work at all, so it must be returning true for bots.
__________________
David Romero


djromero is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode