DayZ
1.24
Loading...
Searching...
No Matches
ActionBandageBase.c
Go to the documentation of this file.
1
class
ActionBandageBase
:
ActionContinuousBase
2
{
3
void
ApplyBandage
(
ItemBase
item
,
PlayerBase
player
)
4
{
5
if
(
player
.GetBleedingManagerServer())
6
player
.GetBleedingManagerServer().RemoveMostSignificantBleedingSourceEx(
item
);
7
8
PluginTransmissionAgents
transmissionAgents
= PluginTransmissionAgents.Cast(
GetPlugin
(PluginTransmissionAgents));
9
transmissionAgents
.TransmitAgents(
item
,
player
,
AGT_ITEM_TO_FLESH
);
10
11
if
(
item
.HasQuantity())
12
item
.AddQuantity(-1,
true
);
13
else
14
item
.Delete();
15
}
16
}
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition
PluginManager.c:300
ActionBandageBase
Definition
ActionBandageBase.c:2
ActionBandageBase::ApplyBandage
void ApplyBandage(ItemBase item, PlayerBase player)
Definition
ActionBandageBase.c:3
ActionContinuousBase
Definition
ActionContinuousBase.c:119
ItemBase
Definition
InventoryItem.c:697
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
AGT_ITEM_TO_FLESH
const int AGT_ITEM_TO_FLESH
Definition
constants.c:475
scripts
4_World
Classes
UserActionsComponent
Actions
Continuous
Medical
ActionBandageBase.c
Generated by
1.10.0