Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
vitaminbottle.c
Go to the documentation of this file.
2 {
3  //Specify this item can only be combined but not split
4  override void InitItemVariables()
5  {
6  super.InitItemVariables();
7 
9  }
10 
11  override void OnConsume(float amount, PlayerBase consumer)
12  {
13  if (consumer.GetModifiersManager().IsModifierActive(eModifiers.MDF_IMMUNITYBOOST)) //effectively resets the timer
14  {
15  consumer.GetModifiersManager().DeactivateModifier(eModifiers.MDF_IMMUNITYBOOST);
16  }
17 
18  consumer.GetModifiersManager().ActivateModifier(eModifiers.MDF_IMMUNITYBOOST);
19  }
20 
21  override void SetActions()
22  {
23  super.SetActions();
24 
27  }
28 }
29 
can_this_be_combined
bool can_this_be_combined
Definition: itembase.c:62
ActionForceConsumeSingle
void ActionForceConsumeSingle()
Definition: actionforceconsumesingle.c:13
PlayerBase
Definition: playerbaseclient.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
eModifiers
eModifiers
Definition: emodifiers.c:1
ActionEatPillFromBottle
Definition: actioneatpillfrombottle.c:1
VitaminBottle
Definition: vitaminbottle.c:1
Edible_Base
Definition: bearsteakmeat.c:1