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

Private Member Functions

void ApplyBandage (ItemBase item, PlayerBase player)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionBandageBase.c.

Member Function Documentation

◆ ApplyBandage()

void ActionBandageBase::ApplyBandage ( ItemBase item,
PlayerBase player )
inlineprivate

Definition at line 3 of file ActionBandageBase.c.

4 {
5 if (player.GetBleedingManagerServer())
6 player.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(item);
7
8 PluginTransmissionAgents transmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents));
10
11 if (item.HasQuantity())
12 item.AddQuantity(-1, true);
13 else
14 item.Delete();
15 }
PluginBase GetPlugin(typename plugin_type)
const int AGT_ITEM_TO_FLESH
Definition constants.c:475

References AGT_ITEM_TO_FLESH, and GetPlugin().

Referenced by OnFinishProgressServer().


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