24-hour clock (source + example plugin)

24-hour clock (source + example plugin) 1.0.0

Login or Register an account to download this content
This mod provides a mostly reliable way to get the 24-hour time of day in the game. It does so by calculating the 12-hour time from the Finland-shaped clock in the player's house, then using the Sun's rotation to decide whether it's the morning or the afternoon.

I've also included a plugin that displays the 24-hour time of day in the upper right corner. I'll probably release an actual physical clock in the near future, I just need to figure out how to draw a GUI in world space.

How to use
  1. Open your mod in Visual Studio.
  2. Right click on the project > Add >Existing Item...
  3. Navigate to TwentyFourClock.cs and open it.
  4. Add using TwentyFourClock; to the using statements.
  5. Create a member field of type Clock24 and instantiate it in the OnLoad method.

Latest News

Author
Wampa842
Downloads
564
File size
4.2 KB
Views
4,557
First release
Last update
User rating
0.00 star(s) 0 ratings

More mods from Wampa842

What would make you race in our Club events

  • Special events

    Votes: 2 10.5%
  • More leagues

    Votes: 1 5.3%
  • Prizes

    Votes: 3 15.8%
  • Trophies

    Votes: 2 10.5%
  • Forum trophies

    Votes: 0 0.0%
  • Livestreams

    Votes: 4 21.1%
  • Easier access

    Votes: 15 78.9%
  • Other? post your reason

    Votes: 2 10.5%
Back
Top