Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionbandagebase.c
Go to the documentation of this file.
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 }
ItemBase
Definition: inventoryitem.c:730
AGT_ITEM_TO_FLESH
const int AGT_ITEM_TO_FLESH
Definition: constants.c:475
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition: pluginmanager.c:316
PlayerBase
Definition: playerbaseclient.c:1
ActionBandageBase
Definition: actionbandagebase.c:1
ActionContinuousBase
Definition: actioncontinuousbase.c:132