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

Protected 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)
 
override void OnTick (PlayerBase player, float deltaT)
 

Protected Attributes

const float BLOOD_DECREMENT_PER_SEC = -10
 
PluginAdminLog m_AdminLog
 

Detailed Description

Definition at line 2 of file Bleeding.c.

Member Function Documentation

◆ ActivateCondition()

override bool BleedingCheckMdfr::ActivateCondition ( PlayerBase player)
inlineprotected

Definition at line 20 of file Bleeding.c.

21 {
22 float blood = player.GetHealth("", "Blood");
23
25 return true;
26 return false;
27
28 }
static const int BLOOD_THRESHOLD_FATAL

References PlayerConstants::BLOOD_THRESHOLD_FATAL.

◆ DeactivateCondition()

override bool BleedingCheckMdfr::DeactivateCondition ( PlayerBase player)
inlineprotected

Definition at line 43 of file Bleeding.c.

44 {
45 return false;
46 }

◆ Init()

override void BleedingCheckMdfr::Init ( )
inlineprotected

Definition at line 7 of file Bleeding.c.

8 {
10 m_ID = eModifiers.MDF_BLEEDING;
13
14 if (GetGame().IsServer())
15 m_AdminLog = PluginAdminLog.Cast(GetPlugin(PluginAdminLog));
16
18 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
bool m_TrackActivatedTime
void DisableDeactivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
const int DEFAULT_TICK_TIME_INACTIVE
const int DEFAULT_TICK_TIME_ACTIVE
PluginBase GetPlugin(typename plugin_type)
PluginAdminLog m_AdminLog
Definition Bleeding.c:5
eModifiers
Definition eModifiers.c:2
proto native CGame GetGame()

References DEFAULT_TICK_TIME_ACTIVE, DEFAULT_TICK_TIME_INACTIVE, DisableDeactivateCheck(), GetGame(), GetPlugin(), m_AdminLog, m_ID, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void BleedingCheckMdfr::OnActivate ( PlayerBase player)
inlineprotected

Definition at line 30 of file Bleeding.c.

31 {
32 player.SetHealth("", "", -1000);
33
34 if (m_AdminLog)
35 m_AdminLog.BleedingOut(player);
36 }

References m_AdminLog.

◆ OnDeactivate()

override void BleedingCheckMdfr::OnDeactivate ( PlayerBase player)
inlineprotected

Definition at line 38 of file Bleeding.c.

39 {
40
41 }

◆ OnTick()

override void BleedingCheckMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprotected

Definition at line 48 of file Bleeding.c.

49 {
50
51 }

Member Data Documentation

◆ BLOOD_DECREMENT_PER_SEC

const float BleedingCheckMdfr::BLOOD_DECREMENT_PER_SEC = -10
protected

Definition at line 4 of file Bleeding.c.

◆ m_AdminLog

PluginAdminLog BleedingCheckMdfr::m_AdminLog
protected

Definition at line 5 of file Bleeding.c.

Referenced by Init(), and OnActivate().


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