DayZ 1.24
Loading...
Searching...
No Matches
ActionDisinfectSelf.c File Reference

Go to the source code of this file.

Classes

class  ActionDisinfectSelfCB
 
class  ActionDisinfectBase
 

Functions

void ActionDisinfectSelf ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnFinishProgressServer (ActionData action_data)
 

Variables

ActionDisinfectBase m_GramsConsumedPerUse
 

Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )

Definition at line 45 of file ActionDisinfectSelf.c.

46 {
47 return (player.IsBleeding() || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_1) || (player.m_SyncedModifiers & eModifierSyncIDs.MODIFIER_SYNC_WOUND_INFECT_2));
48 }
eModifierSyncIDs

◆ ActionDisinfectSelf()

void ActionDisinfectSelf ( )

Definition at line 24 of file ActionDisinfectSelf.c.

25 {
26 m_CallbackClass = ActionDisinfectSelfCB;
28 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_STITCHUPSELF;
29 m_FullBody = true;
30 m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_CROUCH;
31 m_Text = "#disinfect_self";
32 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
float m_SpecialtyWeight
Definition ActionBase.c:68
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_FullBody, m_SpecialtyWeight, m_StanceMask, m_Text, and UASoftSkillsWeight::PRECISE_LOW.

Referenced by ActionConstructor::RegisterActions(), Edible_Base::SetActions(), DisinfectantAlcohol::SetActions(), and IodineTincture::SetActions().

◆ CreateConditionComponents()

override void CreateConditionComponents ( )

Definition at line 34 of file ActionDisinfectSelf.c.

35 {
38 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool HasTarget ( )

Definition at line 40 of file ActionDisinfectSelf.c.

41 {
42 return false;
43 }

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

Definition at line 51 of file ActionDisinfectSelf.c.

52 {
53
54 if (action_data.m_Player.GetModifiersManager().IsModifierActive(eModifiers.MDF_DISINFECTION))//effectively resets the timer
55 action_data.m_Player.GetModifiersManager().DeactivateModifier(eModifiers.MDF_DISINFECTION);
56 action_data.m_Player.GetModifiersManager().ActivateModifier(eModifiers.MDF_DISINFECTION);
57
58 Apply(action_data);
59 }
eModifiers
Definition eModifiers.c:2

References ActionDisinfectBase::Apply().

Variable Documentation

◆ m_GramsConsumedPerUse

ActionDisinfectBase m_GramsConsumedPerUse