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

[L4D] Survival Event Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
raoulduke
Junior Member
Join Date: Apr 2009
Plugin ID:
871
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-11-2009 , 08:46   [L4D] Survival Event Timer
    Reply With Quote #1

    This is a relatively simple plugin I created for Left 4 Dead's Survival Mode.

    The plugin presents players with an alert (using the centered hint box) 10 seconds before hordes or tanks spawn. It also displays a notification when a tank has been killed. The timer will start automatically when the survival event is triggered, and stop when the round ends. The plugin is enabled by default, but can be disabled by typing "timer_switch" into console.

    This has no effect on cheats/achievements, just a helpful utility.

    I would like to extend the length of the programmed timers, as well as add notifications for notable lulls when it is safe to grab ammo/health. Any input would be appreciated, if there is something you think should be added just tell me the time and event and I'll update the plugin.
    Update 5-11-09 16:13:
    I've made some changes to the plugin to allow some more control over its behavior.

    The major difference is that the alerts now go to each client individually, allowing each client to turn on or off the alerts for themselves.
    Clients are notified at spawn that they may say !showtimer to enable or disable their alerts.

    I've also added a cvar (survival_timer_auto) to control whether the alerts are on for all (default) or off for all when each round starts.
    I added an additional cvar (survival_timer_hints) to control whether alerts appear in the bottom center hint boxes (default) or in the chat area.
    Attached Files
    File Type: sp Get Plugin or Get Source (survivaltimer.sp - 1498 views - 6.4 KB)

    Last edited by raoulduke; 05-12-2009 at 00:18.
    raoulduke is offline
    Kirk_yang
    BANNED
    Join Date: Apr 2009
    Old 05-11-2009 , 10:28   Re: [L4D] Survival Event Timer
    Reply With Quote #2

    gonna try this
    Kirk_yang is offline
    Kirk_yang
    BANNED
    Join Date: Apr 2009
    Old 05-11-2009 , 10:29   Re: [L4D] Survival Event Timer
    Reply With Quote #3

    but why is it on centered??? its kinda annoying put it on top left of the screen many people are annoyed when its on the center im jsut saying my opinion
    Kirk_yang is offline
    raoulduke
    Junior Member
    Join Date: Apr 2009
    Old 05-11-2009 , 11:19   Re: [L4D] Survival Event Timer
    Reply With Quote #4

    Quote:
    Originally Posted by Kirk_yang View Post
    but why is it on centered??? its kinda annoying put it on top left of the screen many people are annoyed when its on the center im jsut saying my opinion
    Well it's not the middle center like csay is, it's the bottom center hint box. Also, as far as I can tell the HUD messages (this would include the top left) will not work in L4D. This limits me to either the current method or a chat message. I may be wrong about this so anyone who knows otherwise please comment. The initial feedback I got was that the hint message box was more noticeable and therefor more useful than the chat message, but I'd welcome more feedback. I may just end up creating a cvar that lets you choose whichever you prefer.
    raoulduke is offline
    Kirk_yang
    BANNED
    Join Date: Apr 2009
    Old 05-12-2009 , 03:23   Re: [L4D] Survival Event Timer
    Reply With Quote #5

    Quote:
    I may just end up creating a cvar that lets you choose whichever you prefer.
    why don't u do that? its cool so we can set it up the way we prefer
    Kirk_yang is offline
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 05-12-2009 , 06:00   Re: [L4D] Survival Event Timer
    Reply With Quote #6

    Quote:
    Clients are notified at spawn that they may say !showtimer to enable or disable their alerts.
    This method is a little bit wrong and old I think. Special for such settings "clientprefs" extension was developed so you can add your on/off option into this menu and players can control it by typing !settings in chat.
    http://docs.sourcemod.net/api/index....d=show&id=884& and others in clientprefs section will help you.
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    raoulduke
    Junior Member
    Join Date: Apr 2009
    Old 05-12-2009 , 07:04   Re: [L4D] Survival Event Timer
    Reply With Quote #7

    Quote:
    Originally Posted by Kirk_yang View Post
    why don't u do that? its cool so we can set it up the way we prefer
    Already done, read the update =]
    raoulduke is offline
    exvel
    SourceMod Donor
    Join Date: Jun 2006
    Location: Russia
    Old 05-12-2009 , 07:34   Re: [L4D] Survival Event Timer
    Reply With Quote #8

    Quote:
    Originally Posted by raoulduke View Post
    Already done, read the update =]
    I don't see this in your code:
    PHP Code:
    #include <clientprefs> 
    __________________
    For admins: My plugins

    For developers: Colors library
    exvel is offline
    Send a message via ICQ to exvel
    Kirk_yang
    BANNED
    Join Date: Apr 2009
    Old 05-12-2009 , 07:35   Re: [L4D] Survival Event Timer
    Reply With Quote #9

    good now testing it
    Kirk_yang is offline
    an0n1mus1
    Junior Member
    Join Date: Apr 2009
    Old 05-13-2009 , 18:04   Re: [L4D] Survival Event Timer
    Reply With Quote #10

    It doesn't turn off. I disconnect and come back in, the countdown for the horde and the tank shows up without triggering the even.
    an0n1mus1 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 12:13.


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