Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
worldlighting.c
Go to the documentation of this file.
1
class
WorldLighting
2
{
3
string
lighting_default =
"dz\\data\\lighting\\lighting_default.txt"
;
4
string
lighting_darknight =
"dz\\data\\lighting\\lighting_darknight.txt"
;
5
6
void
WorldLighting
() {}
7
void
~
WorldLighting
() {}
8
9
// sets global lighting config by given value (sent from server, defined in server config)
10
void
SetGlobalLighting(
int
lightingID )
11
{
12
switch
( lightingID )
13
{
14
case
0:
15
GetGame
().GetWorld().LoadNewLightingCfg( lighting_default );
16
break
;
17
18
case
1:
19
GetGame
().GetWorld().LoadNewLightingCfg( lighting_darknight );
20
break
;
21
}
22
}
23
}
24
25
/*modded class WorldLighting
26
{
27
protected string lighting_modded = "your\\path\\to\\lighting\\cfg.txt";
28
29
override void SetGlobalLighting( int lightingID )
30
{
31
switch ( lightingID )
32
{
33
case 3:
34
GetGame().GetWorld().LoadNewLightingCfg( lighting_modded );
35
break;
36
}
37
}
38
}*/
GetGame
proto native CGame GetGame()
WorldLighting
Definition:
worldlighting.c:1
DAYZ
scripts_v1.24.157551
scripts
game
worldlighting.c
Generated by
1.8.17