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

[HL2DM] - Timeleft on HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peter Brev
Member
Join Date: Aug 2023
Plugin ID:
8595
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Half-Life 2 Deathmatch
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provides time left on the HUD.
    Old 11-22-2023 , 06:22   [HL2DM] - Timeleft on HUD
    Reply With Quote #1

    This plugin is included in xFix! It is recommended to use this new plugin over this standalone one!

    https://forums.alliedmods.net/showthread.php?t=347457

    =============================================

    There used to be "Advanced Timeleft" by gavvvr, but I do not have a copy of it, and not sure it is was ever archived, but I have no will to search for it, so I made this version, easily accessible. Not a whole lot of games support HUD elements on screen, but HL2DM does.

    Use this if your server is a public FFA ( Free For All ) server. Most match server plugins, like XMS, come bundled with their own version of timeleft on HUD ( if your server is a match server, that is ). The plugin uploaded on Sourcemod here is only to provide a detached version. Have fun.
    Attached Files
    File Type: sp Get Plugin or Get Source (hud_timeleft 1.1.1.sp - 102 views - 1.4 KB)

    Last edited by Peter Brev; Today at 11:28.
    Peter Brev is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 11-23-2023 , 10:19   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #2

    Code optimization
    PHP Code:
    //// hud_timeleft 1.0.0.sp
    //
    // Code size:         4720 bytes
    // Data size:         2556 bytes
    // Stack/heap size:      16508 bytes
    // Total requirements:   23784 bytes
    //
    // Compilation Time: 0,3 sec
    // ----------------------------------------

    //// hud_timeleft 1.1.0.sp
    //
    // Code size:         4716 bytes
    // Data size:         2532 bytes
    // Stack/heap size:      16512 bytes
    // Total requirements:   23760 bytes
    //
    // Compilation Time: 0,22 sec
    // ----------------------------------------

    //// hud_timeleft 1.1.1.sp
    //
    // Code size:         4740 bytes
    // Data size:         2532 bytes
    // Stack/heap size:      16512 bytes
    // Total requirements:   23784 bytes
    //
    // Compilation Time: 0,22 sec
    // ---------------------------------------- 
    Attached Files
    File Type: sp Get Plugin or Get Source (hud_timeleft 1.1.1.sp - 79 views - 1.4 KB)
    __________________

    Last edited by Grey83; 11-23-2023 at 15:19.
    Grey83 is offline
    Peter Brev
    Member
    Join Date: Aug 2023
    Old 11-23-2023 , 12:25   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #3

    Thanks. File updated in the OP.

    Edit: Restored 1.0 for now, as your version has a visual glitch for any mp_timelimit value above 60 ( timeleft shows as 1h 117m for example ).

    Edit 2: Issue solved.

    Last edited by Peter Brev; 11-27-2023 at 04:42.
    Peter Brev is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 11-23-2023 , 15:20   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #4

    Quote:
    Originally Posted by Peter Brev View Post
    timeleft shows as 1h 117m for example
    fixed
    __________________
    Grey83 is offline
    Peter Brev
    Member
    Join Date: Aug 2023
    Old 11-23-2023 , 15:32   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #5

    Of course, it makes sense once I see what the problem was. Nice code optimization, though! Updated the OP.
    Peter Brev is offline
    hl2dmgamer
    Junior Member
    Join Date: Dec 2023
    Old 02-03-2024 , 13:27   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #6

    very useful plugin

    Last edited by hl2dmgamer; 02-03-2024 at 13:29.
    hl2dmgamer is offline
    painkiller
    Senior Member
    Join Date: Jun 2011
    Old 02-20-2024 , 11:58   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #7

    Edit: delete

    [SM] Plugin hud_timeleft.smx failed to load: Unable to load plugin (unsupported feature set; code is too new).

    I have recompiled it

    Last edited by painkiller; 02-20-2024 at 12:06.
    painkiller is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-20-2024 , 14:41   Re: [HL2DM] - Timeleft on HUD
    Reply With Quote #8

    Quote:
    Originally Posted by painkiller View Post
    Unable to load plugin (unsupported feature set; code is too new).
    The versions of SM on the server and the one with which the plugin was copied must match.
    __________________
    Grey83 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:34.


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