Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
torch_video.c
Go to the documentation of this file.
1
class
Torch_Video
:
LongTorch
2
{
3
protected
float
PARTICLE_DELAY
= 15000;
4
protected
bool
m_EnablePtc
;
5
6
void
SetEnablePtc
()
7
{
8
m_EnablePtc
=
true
;
9
}
10
11
override
void
OnWork
(
float
consumed_energy )
12
{
13
if
(!
m_EnablePtc
)
14
return
;
15
16
super.OnWork(consumed_energy);
17
}
18
19
override
void
OnWorkStart
()
20
{
21
GetGame
().GetCallQueue(
CALL_CATEGORY_SYSTEM
).CallLater(
SetEnablePtc
,
PARTICLE_DELAY
);
22
23
super.OnWorkStart();
24
}
25
26
override
void
OnWorkStop
()
27
{
28
GetGame
().GetCallQueue(
CALL_CATEGORY_SYSTEM
).Remove(
SetEnablePtc
);
29
m_EnablePtc
=
false
;
30
31
super.OnWorkStop();
32
}
33
34
override
void
SetActions
()
35
{
36
super.SetActions();
37
38
AddAction
(
ActionLightTorchVideo
);
39
AddAction
(
ActionExtinquishTorchVideo
);
40
}
41
}
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
ActionExtinquishTorchVideo
Definition
actionextinquishtorchvideo.c:2
ActionLightTorchVideo
Definition
actionlighttorchvideo.c:2
LongTorch
Definition
longtorch.c:2
Torch_Video
Definition
torch_video.c:2
Torch_Video::m_EnablePtc
bool m_EnablePtc
Definition
torch_video.c:4
Torch_Video::OnWork
override void OnWork(float consumed_energy)
Definition
torch_video.c:11
Torch_Video::PARTICLE_DELAY
float PARTICLE_DELAY
Definition
torch_video.c:3
Torch_Video::OnWorkStart
override void OnWorkStart()
Definition
torch_video.c:19
Torch_Video::SetEnablePtc
void SetEnablePtc()
Definition
torch_video.c:6
Torch_Video::OnWorkStop
override void OnWorkStop()
Definition
torch_video.c:26
Torch_Video::SetActions
override void SetActions()
Definition
torch_video.c:34
GetGame
proto native CGame GetGame()
CALL_CATEGORY_SYSTEM
const int CALL_CATEGORY_SYSTEM
Definition
tools.c:8
Daten
4_world
entities
itembase
torch_video.c
Generated by
1.12.0