Raised This Month: $32 Target: $400
 8% 

[L4D] Away


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ivailosp
Senior Member
Join Date: Feb 2009
Plugin ID:
767
Plugin Version:
0.0.0.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 02-12-2009 , 07:55   [L4D] Away
    Reply With Quote #1

    DESCRIPTION :

    While you play in VS you can't take a break aka "go_away_from_keyboard", so this plugin enable you to do so.

    COMMANDS :

    Basic Commands (chat) :
    • !away: You go away and bot take your place(if you are survivor)
    Cvars :
    The following cvars are stored in:
    /left4dead/cfg/sourcemod/sm_away.cfg
    • sm_away_announce (0|1, def 1) - announce !away command to clients
    p.s. bad english and bad code style ;D
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_away.sp - 5168 views - 1.6 KB)
    File Type: smx sm_away.smx (2.9 KB, 2334 views)

    Last edited by ivailosp; 02-12-2009 at 08:58.
    ivailosp is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 08:31   Re: [L4D] Away
    Reply With Quote #2

    AWESOME i'll give it a shot !
    Naow is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 08:36   Re: [L4D] Away
    Reply With Quote #3

    Really cool idea, I hope this works well. I will try it out tonight.

    This plugin sets `director_no_human_zombies` which controls whether players can be special infected. What happens if no human zombies happens to be enabled when it's time for an infected to spawn? Could a survivor grief the infected team by spamming this? You may want to have some sort of per map limit on this.

    Also you may want to change this message to be more meaningful, I don't know if players will understand what being 'away' means and they probably won't want to go there.
    Code:
     
    PrintToChat(client, "\x04[SM]\x03 Type !away to go away");
    madcap is offline
    ivailosp
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 08:44   Re: [L4D] Away
    Reply With Quote #4

    when director_no_human_zombies is set to 1, human zombies can't swap, but my plugin set this cvar to 1 for only 0.05 sec so yes, this can be a problem, but only for 0.05 sec
    btw my english is bad, so if you give me more meaningful message i will change it
    ivailosp is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 08:50   Re: [L4D] Away
    Reply With Quote #5

    What's the feature called in campaign? Isn't it something like "Take a break"? I'd base it on whatever the option is in campaign.

    Quote:
    Say !away to take a break.
    or

    Quote:
    Say !away if you need to go AFK.
    And then maybe change the player's name to IDLE <player name> just like in campaign.

    You also may want to call TimerAnnounce more often, maybe after every map load. Players tend to have short memories... probably due to zombies eating their brains.

    Last edited by madcap; 02-12-2009 at 10:14.
    madcap is offline
    ivailosp
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 09:00   Re: [L4D] Away
    Reply With Quote #6

    Quote:
    And then maybe change the player's name to IDLE <player name> just like in campaign.
    already do that
    ivailosp is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 11:45   Re: [L4D] Away
    Reply With Quote #7

    your plugin works perfectly on my server , good job ;) +rep
    Naow is offline
    Naow
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 11:53   Re: [L4D] Away
    Reply With Quote #8

    I think you could improve your plugin , by moving an afk player automatically into inactive mode , like coop
    Naow is offline
    Pontifex
    Member
    Join Date: Feb 2009
    Old 02-12-2009 , 13:42   Re: [L4D] Away
    Reply With Quote #9

    Good idea! But can do better than editing a timer as you wish? If for example I would like if the player does not touch the keyboard for 10 seconds, then it comes to bot ... A time should be regulated in .cfg
    Pontifex is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-12-2009 , 16:05   Re: [L4D] Away
    Reply With Quote #10

    It'd be really easy to add the "go_away_from_keyboard" command to an AFK plugin with a check to see if the mod is L4D and the team is survivor. Probably a lot easier than adding all the AFK logic to this script.
    madcap 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 20:48.


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