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

Private Member Functions

override void Init ()
 
override bool ActivateCondition (PlayerBase player)
 
override bool DeactivateCondition (PlayerBase player)
 
override void OnActivate (PlayerBase player)
 
override void OnReconnect (PlayerBase player)
 
override void OnDeactivate (PlayerBase player)
 
override string GetDebugText ()
 
override string GetDebugTextSimple ()
 

Detailed Description

Definition at line 1 of file Wet.c.

Member Function Documentation

◆ ActivateCondition()

override bool WetMdfr::ActivateCondition ( PlayerBase player)
inlineprivate

Definition at line 10 of file Wet.c.

11 {
12 if (player.GetStatWet().Get() == player.GetStatWet().GetMax())
13 return true;
14
15 return false;
16 }

◆ DeactivateCondition()

override bool WetMdfr::DeactivateCondition ( PlayerBase player)
inlineprivate

Definition at line 18 of file Wet.c.

19 {
20 if (player.GetStatWet().Get() == player.GetStatWet().GetMin())
21 return true;
22
23 return false;
24 }

◆ GetDebugText()

override string WetMdfr::GetDebugText ( )
inlineprivate

Definition at line 43 of file Wet.c.

44 {
45 string wetness = m_Player.GetStatWet().Get().ToString();
46 string wetness_min = m_Player.GetStatWet().GetMin().ToString();
47 return "wetness:" + wetness + " | " + "wetness min:" + wetness_min;
48 }
DayZPlayer m_Player
Definition Hand_Events.c:42

References m_Player.

◆ GetDebugTextSimple()

override string WetMdfr::GetDebugTextSimple ( )
inlineprivate

Definition at line 50 of file Wet.c.

51 {
52 return "";
53 }

◆ Init()

override void WetMdfr::Init ( )
inlineprivate

Definition at line 3 of file Wet.c.

4 {
6 m_ID = eModifiers.MDF_WETNESS;
9 }
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 WetMdfr::OnActivate ( PlayerBase player)
inlineprivate

Definition at line 27 of file Wet.c.

28 {
29 if (player.m_NotifiersManager) player.m_NotifiersManager.ActivateByType(eNotifiers.NTF_WETNESS);
30 }
eNotifiers

◆ OnDeactivate()

override void WetMdfr::OnDeactivate ( PlayerBase player)
inlineprivate

Definition at line 38 of file Wet.c.

39 {
40 if (player.m_NotifiersManager) player.m_NotifiersManager.DeactivateByType(eNotifiers.NTF_WETNESS);
41 }

◆ OnReconnect()

override void WetMdfr::OnReconnect ( PlayerBase player)
inlineprivate

Definition at line 32 of file Wet.c.

33 {
34 this.OnActivate(player);
35 }
class HumanMovementState OnActivate()
HumanCommandScript fully scriptable command.
Definition human.c:1167

References OnActivate().


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