79 m_Text =
"default action text";
165 for (
int i = 0;
i <
action_data.m_ReservedInventoryLocations.Count();
i++)
495 Error(
"Action target not created.");
568 action_data.m_Player.GetActionManager().OnActionEnd();
611 if (
player.GetCommand_Vehicle())
614 if (
player.GetCommand_Ladder())
617 if (
player.IsRestrained())
620 if (
player.GetCommand_Swim())
626 if (
player.GetCommand_Move() &&
player.GetCommand_Move().IsOnBack())
629 if (
player.GetThrowing().IsThrowingModeEnabled())
653 Man
man =
entity.GetHierarchyRootPlayer();
795 for (
int i = 0;
i <
action_data.m_ReservedInventoryLocations.Count();
i++)
799 action_data.m_Player.GetInventory().ClearInventoryReservationEx(
il.GetItem(),
il);
811 for (
int i = 0;
i <
action_data.m_ReservedInventoryLocations.Count();
i++)
815 action_data.m_Player.GetInventory().ExtendInventoryReservationEx(
il.GetItem(),
il, 10000);
843 return target.GetObject() &&
target.GetObject().IsDamageDestroyed();
848 return target.GetObject() &&
target.GetObject().IsBuilding();
853 return target.GetObject() &&
target.GetObject().IsTransport();
925 if (!
GetGame().IsDedicatedServer())
void OnUpdateServer(float deltatime, float blood_scale, bool no_blood_loss)
const int AC_UNCATEGORIZED
ActionData CreateActionData()
void OnUpdateClient(ActionData action_data)
bool InventoryReservation(ActionData action_data)
bool CanBeSetFromInventory()
class ActionData m_RefreshReservationTimerValue
ActionVariantManager GetVariantManager()
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
void CreateConditionComponents()
float GetSpecialtyWeight()
void OnEndServer(ActionData action_data)
void SendMessageToClient(Object reciever, string message)
void ApplyModifiers(ActionData action_data)
void OnEndInput(ActionData action_data)
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
static int ComputeConditionMask(PlayerBase player, ActionTarget target, ItemBase item)
bool IsDamageDestroyed(ActionTarget target)
bool IsUsingProxies()
not using plane object - it's using multiple proxies
string GetSoundCategory(ActionData action_data)
enum ActionConditionMask m_MainItem
bool MainItemAlwaysInHands()
void OnStartClient(ActionData action_data)
bool CanBeUsedWithBrokenLegs()
void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
void RefreshReservations(ActionData action_data)
bool IsBuilding(ActionTarget target)
bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
ref CCIBase m_ConditionItem
void OnStartServer(ActionData action_data)
bool CanContinue(ActionData action_data)
ref CCTBase m_ConditionTarget
SoundOnVehicle PlayActionSound(PlayerBase player)
void SetVariantID(int ID)
void UpdateVariants(Object item, Object target, int componet_index)
bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
void ClearInventoryReservationEx(ActionData action_data)
void SetInput(ActionInput ai)
void OnEndRequest(ActionData action_data)
void EndInput(ActionData action_data)
bool CanBePerformedFromQuickbar()
bool RemoveForceTargetAfterUse()
bool CanReceiveAction(ActionTarget target)
bool IsTransport(ActionTarget target)
bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
int GetRefreshReservationTimerValue()
bool ActionConditionContinue(ActionData action_data)
string GetAdminLogMessage(ActionData action_data)
float GetProgress(ActionData action_data)
bool HasProgress()
For UI: hiding of progress bar.
void ActionCleanup(ActionData action_data)
void HandleReciveData(ActionReciveData action_recive_data, ActionData action_data)
bool CanBeUsedInRestrain()
bool CanBePerformedFromInventory()
bool IsDeploymentAction()
Is an action directly related to deployment/advanced placing.
bool CanBeUsedInVehicle()
ref Param1< string > m_MessageParam
Object GetDisplayInteractObject(PlayerBase player, ActionTarget target)
ref ActionVariantManager m_VariantManager
void OnEndClient(ActionData action_data)
ref ActionTarget m_Target
ref TStringArray m_Sounds
int GetVariants(out array< ref ActionBase > variants)
void EndRequest(ActionData action_data)
bool Post_SetupAction(ActionData action_data)
class ActionTargets ActionTarget
void DayZPlayerUtils()
cannot be instantiated
void Start()
Plays all elements this effects consists of.
int GetID()
Get the ID registered in SEffectManager.
void SetID(int id)
Set the ID registered in SEffectManager.
void End()
called on surrender end request end
void ReadFromContext(ParamsReadContext ctx)
void WriteToContext(ParamsWriteContext ctx)
ref ActionTarget m_Target
int m_RefreshReservationTimer
ref CABase m_ActionComponent
int m_RefreshJunctureTimer
ref array< ref InventoryLocation > m_ReservedInventoryLocations
Super root of all classes in Enforce script.
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
script counterpart to engine's class Inventory
const int c_InventoryReservationTimeoutMS
reservations
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsActionLogEnable()
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Serialization general interface. Serializer API works with:
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
array< string > TStringArray
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].
proto native int GetState()
returns one of STATE_...