English Gajos | Day-Night Cycle v1.0 icon

2 comments
10.02.22 11:43:28 am
like 2 like it!
730 b, 159 Downloads
Gaios
Security Supporter
Offline Off
Author: user Gaios
Version: 1.0

Description
This script adds a day and night cycle to the game and forces players to use lighting engine. Also the night isn't "too dark" like normally by default is.

Config
dayDuration
- Length of the day in seconds
dayRange
- Array[0] start and Array[0] end of the day in 360 degrees
nightRange
- Array[0] start and Array[0] end of the night in 360 degrees

off-topic Warning
dayRange
and
nightRange
must fit together the 360 degrees and can't be lower than 1. Also the lower values night has, the shorter it will be.

API
DAY_NIGHT_CYCLE.setTime(time)
- Sets current time in 360 degrees and returns mapped time for cs2d cmd sv_daylighttime
DAY_NIGHT_CYCLE.isNight()
- Returns
true
if the current cycle is night
DAY_NIGHT_CYCLE.isDay()
- Returns
true
if the current cycle is day

Installation
Put the script inside sys/lua/autorun directory.

IMG:https://i.imgur.com/0M8Zkk3.png

> GNU General Public License
imageimageimage
edited 5×, last 23.02.22 11:11:33 am
ok This file has been reviewed and approved by DC (10.02.22 07:13:37 pm)

Comments

2 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
09.03.22 08:46:17 pm
like I like it!
Up
Xirot
User
Offline Off
I like
27.02.22 08:44:58 pm
like I like it!
Up
Salad Fingers
Super User
Offline Off
Thanks god, that Gajos does exists. He was born to create awesome things like this.
To the start Previous 1 Next To the start