cityrp.timeweather
Day / night cycle and weather system - client (sky, fog, HUD, particles, sound).
- Sharedcityrp.timeweather.FormatTime() → stringSource ☍
-
Returns
- string
- Sharedcityrp.timeweather.GetPeriod() → stringSource ☍
-
Returns
- string
- Sharedcityrp.timeweather.GetTime() → numberSource ☍
-
Public API mirror used by other plugins.
Returns
- number
- Sharedcityrp.timeweather.IsNight() → booleanSource ☍
-
Returns
- boolean
- SharedWeatherDefinition.coldDamageSource ☍
-
Whether players outside take periodic cold damage.
- SharedWeatherDefinition.FogSource ☍
-
Overrides the ambient day/night fog entirely while active.
- SharedWeatherDefinition.groundTextureSource ☍
-
Ground/model texture swap to apply, currently only
"snow". - SharedWeatherDefinition.iconSource ☍
-
HUD chip icon.
- SharedWeatherDefinition.iconColorSource ☍
-
HUD chip icon tint, defaults to white.
- SharedWeatherDefinition.idSource ☍
-
Unique weather id;
"clear"is reserved. - SharedWeatherDefinition.labelSource ☍
-
Display name, e.g.
"Rain". - SharedWeatherDefinition.lightningSource ☍
-
Whether lightning strikes run while this weather is active.
- SharedWeatherDefinition.particleSource ☍
-
Client particle driver:
"rain","snow","sandstorm", ornil. - SharedWeatherDefinition.SkySource ☍
-
Overrides the ambient day/night sky entirely while active.
- SharedWeatherDefinition.soundSource ☍
-
Ambient loop:
"rain","wind", ornilfor none. - SharedWeatherDefinition.windScaleSource ☍
-
Multiplier applied to map
env_windentities. Default1.
Same shape as one PLUGIN.SkyColors period preset. Star/cloud fields may be omitted -
buildRenderState in cl_init.lua already defaults them when DrawStars is false.
- SharedWeatherSky.BottomColorSource ☍
-
RGB,
0-1per channel. - SharedWeatherSky.DrawStarsSource ☍
- SharedWeatherSky.DuskColorSource ☍
-
RGB,
0-1per channel. - SharedWeatherSky.DuskIntensitySource ☍
- SharedWeatherSky.DuskScaleSource ☍
- SharedWeatherSky.FadeBiasSource ☍
- SharedWeatherSky.HDRScaleSource ☍
- SharedWeatherSky.SunColorSource ☍
-
RGB,
0-1per channel. - SharedWeatherSky.SunSizeSource ☍
- SharedWeatherSky.TopColorSource ☍
-
RGB,
0-1per channel.