Garry's Mod

Garry's Mod

236 ratings
Atmos Time Display
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Scenic
File Size
Posted
Updated
2.894 KB
5 Nov, 2014 @ 6:30pm
28 Jul, 2015 @ 1:03pm
5 Change Notes ( view )

Subscribe to download
Atmos Time Display

In 1 collection by TheFreeman193
TF193 Test Server
5 items
Description
A digital clock displaying the current Atmos time.

Features
-Digital display showing current Atmos time
-Fully positionable, defaults to integrate with the Source health box
-Customisable anchor points (left/right, top/bottom)
-12/24 hour modes
-Customisable am/pm suffixes for 12-hour mode
-Works in both singleplayer and on servers
-Can be toggled by each client on a server, and will automatically enable/disable for all clients if Atmos is turned on/off
-Can be hot-swapped, no need to restart a server or kick all clients

Console Variables
atmoshud_<setting> <value>

enabled 1/0 Toggles the panel clientside (1=enable, 0=disable, default=1)
12hr 1/0 12-hour mode (1=enable, 0=disable, default=0)
12hr_am [any] AM suffix for 12-hour mode (default=am)
12hr_pm [any] PM suffix for 12-hour mode (default=pm)
posx [num] The horizontal (x) position of the clock, -1 fits the health box (default=-1)
posy [num] The vertical (y) position of the clock, -1 fits the health box (default=-1)
anchorright 1/0 Horizontal (x) position anchor (0=left, 1=right, default=1)
anchorbottom 1/0 Vertical (y) position anchor (0=top, 1=bottom, default=0)

Console Commands
atmoshud_<command>

rebuild
-Rebuilds the clock panel clientside.
resetpos
-Resets the pos/anchor ConVars back to their defaults, and reports the previous values.

Hot-swappping
Minus the limitations of the workshop, this script can be hot-swapped. If you are installing whilst the server is running, set ATMOSHUD_IMMEDIATE to true serverside before executing the script. Clients may need to run the console command "atmoshud_rebuild startup".

(Obviously) requires the Atmos addon to be installed, which is available on the workshop here.

Released under Creative Commons CC BY-NC-SA 4.0
http://creativecommons.org/licenses/by-nc-sa/4.0/
53 Comments
8Z 24 Jan, 2016 @ 10:02pm 
can you default the time pos to be top left corner?
TheFreeman193  [author] 23 Nov, 2015 @ 2:55am 
{:D K}NukeSkaarjRaptor The Α & Ω This suggests Atmos itself isn't installed or enabled. Check you have downloaded the original addon and that it is set up correctly.
KNAVE 21 Nov, 2015 @ 8:25pm 
I only see 6:30 + i don't think that time is moving (its not changing day and night not even rain)
TheFreeman193  [author] 28 Jul, 2015 @ 12:55pm 
bawiedrich If you put this into your server console:

lua_run print(timer.Exists'atmos_dnc_hudUpd')

Do you get true back?
BulletBarry 28 Jul, 2015 @ 11:20am 
it was my server so it should be installed, as for if it is enabled.. I don't know, when I load into Garrys mod and start a map, what should be the first steps in ensuring it starts working?
TheFreeman193  [author] 28 Jul, 2015 @ 4:07am 
bawiedrich First things to check:
-Is Atmos installed on both client & server, and enabled?
-Is the Atmos DNC operational and not paused?
-Does changing atmoshud_enabled have any effect?

If you can't figure it out, get back to me and I'll go through debugging it with you.
BulletBarry 27 Jul, 2015 @ 12:56pm 
Did not work for me, it displays 00:00 and no matter what I punched into console it stayed that way, how can I resolve this?
Switch 21 Jul, 2015 @ 8:48am 
Very good addon. I added it to my server and it gives it a bit of realism.
Blue Is Epic 21 Jun, 2015 @ 5:00pm 
Ok thx for clearing that up :3
TheFreeman193  [author] 21 Jun, 2015 @ 3:24pm 
Nickadamis The addon is working as far as I can tell. Bear in mind that this needs to be installed on the server you're connected to as the Atmos time can only be accessed serverside. If it isn't working in SP, check Atmos is installed, enabled on the workshop and with the atmos_enabled convar set to 1. If this is the case and you're still having problems, try putting atmoshud_enabled 1 followed by atmoshud_rebuild into your console. There may be an issue with your setup if none of the above are working.