Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
torch_video.c
Go to the documentation of this file.
2{
3 protected float PARTICLE_DELAY = 15000;
4 protected bool m_EnablePtc;
5
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
40 }
41}
void AddAction(typename actionName)
bool m_EnablePtc
Definition torch_video.c:4
override void OnWork(float consumed_energy)
Definition torch_video.c:11
float PARTICLE_DELAY
Definition torch_video.c:3
override void OnWorkStart()
Definition torch_video.c:19
void SetEnablePtc()
Definition torch_video.c:6
override void OnWorkStop()
Definition torch_video.c:26
override void SetActions()
Definition torch_video.c:34
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8