Dateien

> > CS2D > Lua Scripts > Gajos | Day-Night Cycle v1.1
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Gajos | Day-Night Cycle v1.1 >

2 Kommentare728 b, 322 Downloads

alt Gajos | Day-Night Cycle v1.1

Gaios
Reviewer Off Offline

Author: user Gaios
Version: 1.1

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[1] end of the day in 360 degrees
nightRange
- Array[0] start and Array[1] 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.

1.1 >

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

> GNU General Public License
10× editiert, zuletzt 09.03.23 10:39:00
Zugelassen von DC

Download Download

728 b, 322 Downloads

Kommentare

2 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Xirot
User Off Offline

I like
Ich mag es!

alt

Marcell
Super User Off Offline

Thanks god, that Gajos does exists. He was born to create awesome things like this.
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang