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

[L4D] VS Auto-spectate on AFK


Post New Thread Reply   
 
Thread Tools Display Modes
Author
djromero
Senior Member
Join Date: Dec 2008
Location: Maracaibo, Venezuela
Plugin ID:
771
Plugin Version:
1.3.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    28 
    Plugin Description:
    Forces survivors and infected to spectate if they're AFK after certain time
    Old 02-13-2009 , 21:32   [L4D] VS Auto-spectate on AFK
    Reply With Quote #1

    This plugin will force players to join the spectators team if they're AFK after certain time. While on spectators team, they will be kicked if they're still AFK after more time (can be disabled). Admins with reserve flag won't be kicked, but will be forced to spectate. Connecting players, while in mid-game, can be forced to spectate.

    How to install?
    Copy .smx file on your plugins directory. Remember to use the latest 1.2 snapshot.

    CVARS:

    l4d_specafk_warnspectime: How much time in seconds should a player be AFK to get warned about being forced to spectators. Default is 20.

    l4d_specafk_spectime: How many seconds (after warn) will the player be forced to spectate if still on AFK. Default is 15.

    l4d_specafk_warnkicktime: Time to warn an AFK player while on spectators team. Default is 30.

    l4d_specafk_kicktime: Time to kick an AFK player while on spectators team. Default is 30.

    l4d_specafk_checkinteral: How often the plugin warns/checks/actions. Default is 5.

    l4d_specafk_kickenabled: If kick is enabled while AFK on spectators. Default is 1 (enabled).

    l4d_specafk_speconconnect: If a player connects after the other already leaved the safe room, it will be forced to spectate. He'll get a hit every 10 seconds telling him to press M to join a team. Default is 1 (enabled).

    l4d_specafk_showteampanel: Should we show the change team panel to connecting players after team leaved safe room?. Default 0 (hide panel).

    Changelog:
    1.0
    - Initial release.
    1.1
    - Added new cvars to disabled kick on AFK and to force players to spectate on connect.
    - Changed cvar to allow multiple team changes.
    - Fixed some general bugs.
    1.2.
    - Added cvar to show team selection panel.
    - Enabled "spectate" command.
    - Rollback on method for detecting VS maps.
    1.2.1
    - Fixed error while reseting AFK timers (Numer Six's post).
    - Fixed (finally) method for detecting VS maps. Still using map name, safest way.
    - Join team panel is disabled by default.
    - Hint to join teams will always show, even if panel is enabled.
    1.3
    - The AFK manager will start working on round start, but it won't switch ppl to spectators until at least 1 player leaves the safe room. If a player joins and is AFK while inside the safe room, when you leave he will be forced immediately to spectators.
    - The HINT message and the choose team panel (if enabled) will show to AFK players too, not just connecting players.
    - The AFK manager will be disabled as soon as players reach the rescue vehicule, so you don't get the warnings while the animation is playing.
    1.3.1
    -
    l4d_specafk_speconconnect defaults to 0 (disabled), since valve fixed this. If you want to keep using this, just add this cvar to your server.cfg.
    - If "spec on connect" is enabled, and a connecting player joins as a dead survivor, he won't be forced to spectators (not even for being afk).

    NOTE: "Get Plugin" will now compile with SM 1.2
    Attached Files
    File Type: sp Get Plugin or Get Source (L4DVSAutoSpectateOnAFK.sp - 10316 views - 21.7 KB)
    __________________
    David Romero



    Last edited by djromero; 03-14-2009 at 03:54. Reason: Upgraded to version 1.3.1
    djromero is offline
    Number Six
    Senior Member
    Join Date: Dec 2008
    Old 02-14-2009 , 01:31   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #2

    Tested and perfect .
    Just a small bug , my second admin just with kick flag , kicked in spect mode after few secondes , not me with root flag .
    __________________


    Number Six is offline
    AcidTester
    Senior Member
    Join Date: Jan 2009
    Old 02-14-2009 , 02:11   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #3

    What can i say, a big respect!!!!!!!
    __________________
    AcidTester is offline
    Send a message via ICQ to AcidTester
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 02-14-2009 , 04:40   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #4

    omg undoubtly one of the useful plugin for left 4 dead Im trying !

    Last edited by Naow; 02-14-2009 at 04:45.
    Naow is offline
    Dark-Reaper
    Member
    Join Date: Jan 2009
    Old 02-14-2009 , 05:41   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #5

    Nice plugin but, could you add the " go to the idle team " if the AFK player is on survivors, or could you automaticly put up the team menu when the player is swapped to spectators ?

    I ask this because there is some ( noob ) players who don't know how to join a team.
    Dark-Reaper is offline
    AcidTester
    Senior Member
    Join Date: Jan 2009
    Old 02-14-2009 , 10:17   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #6

    Romero, i remember i asked in some thread, but forgot what.
    Example: versus 4x4 full house, one of survivals dead and guy desided to leave the game (dont want to w8 roundend) and new guy enter the game, but it remains at spectators and cant enter for dead survival. But if he afk (he not actually move mouse, or fly over the map) counter starts and he gets kicked, thats absolutely normal like plugin works.
    Is it possible to enter for survival team when one of them dead already?
    __________________
    AcidTester is offline
    Send a message via ICQ to AcidTester
    djromero
    Senior Member
    Join Date: Dec 2008
    Location: Maracaibo, Venezuela
    Old 02-14-2009 , 14:01   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #7

    Quote:
    Originally Posted by AcidTester View Post
    Romero, i remember i asked in some thread, but forgot what.
    Example: versus 4x4 full house, one of survivals dead and guy desided to leave the game (dont want to w8 roundend) and new guy enter the game, but it remains at spectators and cant enter for dead survival. But if he afk (he not actually move mouse, or fly over the map) counter starts and he gets kicked, thats absolutely normal like plugin works.
    Is it possible to enter for survival team when one of them dead already?
    If you join and a bot is already dead, you'll take his place. That's how the game behaves by default.
    __________________
    David Romero


    djromero is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 02-14-2009 , 17:31   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #8

    Quote:
    Originally Posted by AcidTester View Post
    Romero, i remember i asked in some thread, but forgot what.
    Example: versus 4x4 full house, one of survivals dead and guy desided to leave the game (dont want to w8 roundend) and new guy enter the game, but it remains at spectators and cant enter for dead survival. But if he afk (he not actually move mouse, or fly over the map) counter starts and he gets kicked, thats absolutely normal like plugin works.
    Is it possible to enter for survival team when one of them dead already?
    Its an issue of the other l4d spectator team plugin , its annoying
    Naow is offline
    AcidTester
    Senior Member
    Join Date: Jan 2009
    Old 02-14-2009 , 18:04   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #9

    Quote:
    Originally Posted by djromero View Post
    If you join and a bot is already dead, you'll take his place. That's how the game behaves by default.
    Yes thats it, but i mean i use it with your l4d vs spec team, and all players join spec first, then they decide what side to choose.
    __________________
    AcidTester is offline
    Send a message via ICQ to AcidTester
    JaymZ
    Junior Member
    Join Date: Jan 2009
    Location: France
    Old 02-14-2009 , 19:43   Re: [L4D] VS Auto-spectate on AFK
    Reply With Quote #10

    (french with bad english)

    1) I don't understand this c_var: "l4d_specafk_checkinteral"? enable / disable plugin with 1 or 0 ?
    2) all c_var edited in server.cfg?

    Anyway, very good plugin idea!

    Last edited by JaymZ; 02-14-2009 at 19:46.
    JaymZ is offline
    Reply


    Thread Tools
    Display Modes

    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 09:30.


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