DayZ 1.24
Loading...
Searching...
No Matches
BrokenArmsMdfr Class Reference
Inheritance diagram for BrokenArmsMdfr:
[legend]
Collaboration diagram for BrokenArmsMdfr:
[legend]

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 

Private Attributes

const float HEALTHY_ARM = 80
 

Detailed Description

Definition at line 1 of file BrokenArms.c.

Member Function Documentation

◆ ActivateCondition()

override bool BrokenArmsMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 13 of file BrokenArms.c.

14 {
15 if (player.GetHealth("RightArm", "Health") <= 0 || player.GetHealth("LeftArm", "Health") <= 0)
16 return true;
17 return false;
18 }

◆ DeactivateCondition()

override bool BrokenArmsMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 30 of file BrokenArms.c.

31 {
32 if (player.GetHealth("RightArm", "Health") >= HEALTHY_ARM && player.GetHealth("LeftArm", "Health") >= HEALTHY_ARM)
33 return true;
34 else
35 return false;
36 }
const float HEALTHY_ARM
Definition BrokenArms.c:3

References HEALTHY_ARM.

◆ Init()

override void BrokenArmsMdfr::Init ( )
inlineprivate

Definition at line 5 of file BrokenArms.c.

6 {
8 m_ID = eModifiers.MDF_BROKEN_ARMS;
11 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void BrokenArmsMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 20 of file BrokenArms.c.

21 {
22 // player.setBrokenLimbs("Arms",true);
23 }

◆ OnDeactivate()

override void BrokenArmsMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 25 of file BrokenArms.c.

26 {
27 // player.setBrokenLimbs("Arms",false);
28 }

Member Data Documentation

◆ HEALTHY_ARM

const float BrokenArmsMdfr::HEALTHY_ARM = 80
private

Definition at line 3 of file BrokenArms.c.

Referenced by DeactivateCondition().


The documentation for this class was generated from the following file: