Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
actionbandagebase.c
Go to the documentation of this file.
1class 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}
const int AGT_ITEM_TO_FLESH
Definition constants.c:509
PluginBase GetPlugin(typename plugin_type)