Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
christmastree.c
Go to the documentation of this file.
1
class
ChristmasTree
extends
House
2
{
3
XmasTreeLight
m_TreeLight
;
4
EffectSound
m_AmbientSoundLoop
;
5
const
string
LOOP_SOUND
=
"ChristmasMusic_SoundSet"
;
6
7
void
ChristmasTree
()
8
{
9
if
( !
g_Game
.IsDedicatedServer() )
10
{
11
m_TreeLight
= XmasTreeLight.Cast(
ScriptedLightBase
.CreateLight( XmasTreeLight,
"0 0 0"
) );
12
m_TreeLight
.AttachOnMemoryPoint(
this
,
"action"
);
13
}
14
}
15
16
override
void
EEInit
()
17
{
18
if
( !
g_Game
.IsDedicatedServer() )
19
{
20
PlaySoundSetLoop(
m_AmbientSoundLoop
,
LOOP_SOUND
, 0, 0 );
21
}
22
}
23
24
override
void
EEDelete
(
EntityAI
parent)
25
{
26
if
( !
g_Game
.IsDedicatedServer() )
27
{
28
if
(
m_TreeLight
)
29
m_TreeLight
.Destroy();
30
if
(
m_AmbientSoundLoop
)
31
SEffectManager
.
DestroyEffect
(
m_AmbientSoundLoop
);
32
}
33
}
34
};
35
class
ChristmasTree_Green
extends
ChristmasTree
{};
ChristmasTree
Definition
christmastree.c:35
EffectSound
Wrapper class for managing sound through SEffectManager.
Definition
effectsound.c:5
EntityAI
Definition
inventoryitem.c:2
House
Definition
crashbase.c:2
House::m_AmbientSoundLoop
EffectSound m_AmbientSoundLoop
Definition
christmastree.c:4
House::EEInit
override void EEInit()
Definition
christmastree.c:16
House::ChristmasTree
void ChristmasTree()
Definition
christmastree.c:7
House::EEDelete
override void EEDelete(EntityAI parent)
Definition
christmastree.c:24
House::m_TreeLight
XmasTreeLight m_TreeLight
Definition
christmastree.c:3
House::LOOP_SOUND
const string LOOP_SOUND
Definition
christmastree.c:5
SEffectManager
Manager class for managing Effect (EffectParticle, EffectSound).
Definition
effectmanager.c:6
SEffectManager::DestroyEffect
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Definition
effectmanager.c:271
ScriptedLightBase
Definition
pointlightbase.c:2
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
Games
Dayz
scripts
4_world
entities
woodbase
christmastree.c
Generated by
1.17.0