DayZ 1.24
Loading...
Searching...
No Matches
BandageDressing.c
Go to the documentation of this file.
1class BandageDressing extends ItemBase
2{
3 //================================================================
4 // IGNITION ACTION
5 //================================================================
6 override bool HasFlammableMaterial()
7 {
8 return true;
9 }
10
12 {
13 if (GetHierarchyParent()) return false;
14
15 return true;
16 }
17
19 {
20 return false;
21 }
22
24 {
25 }
26
28 {
29 Fireplace.IgniteEntityAsFireplace(this, fire_source);
30 }
31
33 {
34 return Fireplace.CanIgniteEntityAsFireplace(this);
35 }
36
48
49 override float GetBandagingEffectivity()
50 {
51 return 2.0;
52 };
53
54 override bool CanBeDisinfected()
55 {
56 return true;
57 }
58
59 override float GetInfectionChance(int system = 0, Param param = null)
60 {
61 if (m_Cleanness == 1)
62 return 0;
63 else
64 return 0.05;
65 }
66
68 {
69 super.OnCombine(other_item);
70 if (m_Cleanness == 1 && other_item.m_Cleanness == 0)
71 SetCleanness(0);
72 }
73}
ActionBandageSelfCB ActionContinuousBaseCB ActionBandageSelf()
ActionBandageTargetCB ActionContinuousBaseCB ActionBandageTarget()
void ActionDetach()
void AddAction(typename actionName)
int m_Cleanness
Definition ItemBase.c:4715
void SetCleanness(int value, bool allow_client=false)
Definition ItemBase.c:8357
override bool IsThisIgnitionSuccessful(EntityAI item_source=NULL)
override void SetActions()
override bool HasFlammableMaterial()
override float GetBandagingEffectivity()
override void OnIgnitedThis(EntityAI fire_source)
override bool CanBeIgnitedBy(EntityAI igniter=NULL)
override void OnCombine(ItemBase other_item)
override bool CanIgniteItem(EntityAI ignite_target=NULL)
override bool CanBeDisinfected()
override void OnIgnitedTarget(EntityAI ignited_item)
override float GetInfectionChance(int system=0, Param param=null)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12