Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
heatpack.c
Go to the documentation of this file.
2{
3 override bool CanHaveTemperature()
4 {
5 return true;
6 }
7
8 override void OnWorkStart()
9 {
10 if (g_Game.IsServer())
11 {
12 SetTemperatureDirect(80);
13 }
14 }
15
16 override void OnWork( float consumed_energy )
17 {
18 if (g_Game.IsServer())
19 {
20 SetTemperatureDirect(80);
21 }
22 }
23
24 override void OnWorkStop()
25 {
26 if (g_Game.IsServer())
27 {
28 SetHealth(0);
29 }
30 }
31
32 override void SetActions()
33 {
34 super.SetActions();
35
37 }
38
39 override float GetQuantityNormalizedScripted()
40 {
41 return 1.0;
42 }
43
44 override bool IsSelfAdjustingTemperature()
45 {
46 return GetCompEM().IsWorking();
47 }
48}
void AddAction(typename actionName)
override void OnWorkStart()
Definition barbedwire.c:164
override void SetActions()
Definition barbedwire.c:402
override void OnWorkStop()
Definition barbedwire.c:177
override bool IsSelfAdjustingTemperature()
DayZGame g_Game
Definition dayzgame.c:3942
override bool CanHaveTemperature()
float GetQuantityNormalizedScripted()
Definition itembase.c:8335