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

[ASW] Speedtimer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
voiderest
Junior Member
Join Date: Jan 2009
Plugin ID:
1954
Plugin Version:
0.9
Plugin Category:
Statistical
Plugin Game:
Alien Swarm
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Show a timer for alien swarm.
    Unapprover:
    Reason for Unapproving:
    Author inactive + Post #4
    Old 09-15-2010 , 04:12   [ASW] Speedtimer
    Reply With Quote #1

    THIS PLUGIN IS FOR ALIEN SWARM ONLY
    mmsource-1.9.0-hg730
    sourcemod-1.4.0-hg3120


    It simply shows how much time has passed since the start of the level using PrintCenterText(). Players can turn it on or off by saying '!showtimer'.

    asw_speedtimer_default: (1/0) The default setting for players.
    asw_speedtimer_welcome: (1/0)To show the welcome message or not.


    There are things that could be done to improve the performance of the plugin but event support would be useful and it works right now.
    Attached Files
    File Type: sp Get Plugin or Get Source (asw_speedtimer.sp - 588 views - 3.4 KB)

    Last edited by psychonic; 11-03-2011 at 22:42. Reason: changed game to Alien Swarm
    voiderest is offline
    nagypocak
    Member
    Join Date: Jul 2010
    Old 09-23-2010 , 12:52   Re: [ASW] Speedtimer
    Reply With Quote #2

    Excellent! Works like a charm!
    nagypocak is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 09-29-2010 , 11:59   Re: [ASW] Speedtimer
    Reply With Quote #3

    I was planning on writing this but I never got around to it.
    Good job!
    __________________
    DarthNinja is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 01-31-2011 , 09:42   Re: [ASW] Speedtimer
    Reply With Quote #4

    @ voiderest

    Code:
    for (new i = 0; i < MAXPLAYERS+1; i++)
    Looping players in the game should go to <= MaxClients, rather than < MAXPLAYERS.

    Through your WelcomePlayer timer, you should pass a userid or client serial so that you know it's the same player when the timer callback fires.

    Also, your PrintTime timer get started once for every time cl_start, cl_forceready, or cl_ready is used. Each one becomes a repeating timer with no end which will leak handles.
    psychonic is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 02-06-2011 , 09:34   Re: [ASW] Speedtimer
    Reply With Quote #5

    Quote:
    Hello,
    plugin is great for counting mission time but it lacked few features. As we are trying speed runs we need end time to show in chat. So I've grabbed source and edited it a bit.

    - Added asw_timer_off and asw_timer_on commands allowing admin with unban flag to force all players to set timer off/on
    - Added "Mission completed in xx : xx" when mission is success, also added cvar asw_speedtimer_showfinish (default 1)
    - Added asw_speedtimer_everyminute cvar (default 1) which show every inute info in chat like: "x minutes has passed!" even when player disabled timer
    - Added IsClientInGame check
    - (Fixed?) what psychonic said (but not 'WelcomePlayer' thingy)

    as for now this is my personal version which I use on my server.

    and btw, not sure but there might be a bug:
    - somebody types !showtimer, but chat reply and timer setting is to other client

    Few things about which I thought:
    - Add milliseconds time
    - Remembering previous time and compare it with current
    - Lite Stats ?
    Look Here: http://forums.alliedmods.net/showthread.php?p=1409405
    __________________

    Last edited by kwski43; 02-07-2011 at 13:20.
    kwski43 is offline
    toazron1
    Senior Member
    Join Date: Oct 2006
    Old 02-06-2011 , 12:14   Re: [ASW] Speedtimer
    Reply With Quote #6

    you should include a clientingame check for the loops
    __________________
    toazron1 is offline
    Send a message via AIM to toazron1
    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 04:33.


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