DayZ 1.24
Loading...
Searching...
No Matches
ActionMeasureBattery.c
Go to the documentation of this file.
2{
3
5 {
6 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_LICKBATTERY;
7 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_LICKBATTERY;
8 m_Text = "#lick_battery";
9 }
10
16
17 override bool HasProneException()
18 {
19 return true;
20 }
21
22 override bool HasTarget()
23 {
24 return false;
25 }
26
28 {
29
30 float energy = 0;
31 if (action_data.m_MainItem.HasEnergyManager())
32 energy = action_data.m_MainItem.GetCompEM().GetEnergy();
33 action_data.m_MainItem.TransferModifiers(action_data.m_Player);
34 if (energy > 0)
36 if (energy == 0)
38 }
39};
string m_Text
Definition ActionBase.c:49
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56
override bool HasProneException()
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
const int UA_FINISHED
Definition constants.c:436
const int UA_FAILED
Definition constants.c:433