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

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override string GetDebugText ()
 
override void OnActivate (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnTick (PlayerBase player, float deltaT)
 

Private Attributes

const int LIFETIME = 60
 
const float STAMINA_DEPLETION_MULTIPLIER = 0
 

Detailed Description

Definition at line 1 of file EpinephrineMdfr.c.

Member Function Documentation

◆ ActivateCondition()

override bool EpinephrineMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 15 of file EpinephrineMdfr.c.

16 {
17 return false;
18 }

◆ DeactivateCondition()

override bool EpinephrineMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 47 of file EpinephrineMdfr.c.

48 {
50
52 return true;
53 else
54 return false;
55 }
float GetAttachedTime()

References GetAttachedTime(), and LIFETIME.

◆ GetDebugText()

override string EpinephrineMdfr::GetDebugText ( )
inlineprivate

Definition at line 25 of file EpinephrineMdfr.c.

26 {
27 return (LIFETIME - GetAttachedTime()).ToString();
28 }

References GetAttachedTime(), and LIFETIME.

◆ Init()

override void EpinephrineMdfr::Init ( )
inlineprivate

Definition at line 5 of file EpinephrineMdfr.c.

6 {
8 m_IsPersistent = true;
9 m_ID = eModifiers.MDF_EPINEPHRINE;
13 }
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 DisableActivateCheck()
float m_TickIntervalActive
float m_TickIntervalInactive
bool m_IsPersistent
const int DEFAULT_TICK_TIME_INACTIVE
eModifiers
Definition eModifiers.c:2

References DEFAULT_TICK_TIME_INACTIVE, DisableActivateCheck(), m_ID, m_IsPersistent, m_TickIntervalActive, m_TickIntervalInactive, and m_TrackActivatedTime.

◆ OnActivate()

override void EpinephrineMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 30 of file EpinephrineMdfr.c.

31 {
32 player.IncreaseHealingsCount();
33 //if( player.GetNotifiersManager() ) player.GetNotifiersManager().ActivateByType(eNotifiers.NTF_PILLS);
34 player.GiveShock(100);
35 player.GetStaminaHandler().SetStamina(100);
36 player.GetStaminaHandler().ActivateDepletionModifier(EStaminaMultiplierTypes.EPINEPHRINE);
37 }
EStaminaMultiplierTypes

◆ OnDeactivate()

override void EpinephrineMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 39 of file EpinephrineMdfr.c.

40 {
41 //if( player.GetNotifiersManager() ) player.GetNotifiersManager().DeactivateByType(eNotifiers.NTF_PILLS);
42 player.DecreaseHealingsCount();
43 //player.GetStaminaHandler().SetDepletionMultiplier(1);
44 player.GetStaminaHandler().DeactivateDepletionModifier(EStaminaMultiplierTypes.EPINEPHRINE);
45 }

◆ OnReconnect()

override void EpinephrineMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 20 of file EpinephrineMdfr.c.

21 {
23 }
class HumanMovementState OnActivate()
HumanCommandScript fully scriptable command.
Definition human.c:1167

References OnActivate().

◆ OnTick()

override void EpinephrineMdfr::OnTick ( PlayerBase player,
float deltaT )
inlineprivate

Definition at line 57 of file EpinephrineMdfr.c.

58 {
59 //player.GetStaminaHandler().SetStamina(100);
60 }

Member Data Documentation

◆ LIFETIME

const int EpinephrineMdfr::LIFETIME = 60
private

Definition at line 3 of file EpinephrineMdfr.c.

Referenced by DeactivateCondition(), and GetDebugText().

◆ STAMINA_DEPLETION_MULTIPLIER

const float EpinephrineMdfr::STAMINA_DEPLETION_MULTIPLIER = 0
private

Definition at line 4 of file EpinephrineMdfr.c.

Referenced by StaminaHandler::Init().


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