Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actionbase.c File Reference

Go to the source code of this file.

Data Structures

class  ActionData
 

Enumerations

enum  ActionConditionMask {
  ACM_NO_EXEPTION = 0, ACM_IN_VEHICLE = 1, ACM_ON_LADDER = 2, ACM_SWIMMING = 4,
  ACM_RESTRAIN = 8, ACM_RAISED = 16, ACM_ON_BACK = 32, ACM_THROWING = 64,
  ACM_LEANING = 128, ACM_BROKEN_LEGS = 256
}
 

Functions

void ActionBase ()
 
bool IsLockTargetOnUse ()
 
void InitConditionMask ()
 
bool SetupAction (PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data=NULL)
 
bool Post_SetupAction (ActionData action_data)
 
void ActionCleanup (ActionData action_data)
 
 GetInputType ()
 
void SetInput (ActionInput ai)
 
ActionData CreateActionData ()
 
void CreateConditionComponents ()
 
Object GetDisplayInteractObject (PlayerBase player, ActionTarget target)
 
bool HasTarget ()
 
bool HasProgress ()
 For UI: hiding of progress bar. More...
 
bool IsLocal ()
 
bool IsInstant ()
 
bool IsUsingProxies ()
 not using plane object - it's using multiple proxies More...
 
bool RemoveForceTargetAfterUse ()
 
int GetActionCategory ()
 
bool IsEat ()
 
bool IsDrink ()
 
bool IsShaveSelf ()
 
string GetText ()
 
bool CanBePerformedFromQuickbar ()
 
bool CanBePerformedFromInventory ()
 
bool CanBeSetFromInventory ()
 
bool CanBeUsedInRestrain ()
 
bool CanBeUsedInVehicle ()
 
bool CanBeUsedOnBack ()
 
bool CanBeUsedSwimming ()
 
bool CanBeUsedOnLadder ()
 
bool CanBeUsedRaised ()
 
bool CanBeUsedThrowing ()
 
bool CanBeUsedLeaning ()
 
bool CanBeUsedWithBrokenLegs ()
 
bool IsDeploymentAction ()
 Is an action directly related to deployment/advanced placing. More...
 
bool UseMainItem ()
 
bool MainItemAlwaysInHands ()
 
protected bool ActionConditionContinue (ActionData action_data)
 
protected bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
void ApplyModifiers (ActionData action_data)
 
int GetRefreshReservationTimerValue ()
 
void WriteToContext (ParamsWriteContext ctx, ActionData action_data)
 
bool ReadFromContext (ParamsReadContext ctx, out ActionReciveData action_recive_data)
 
void HandleReciveData (ActionReciveData action_recive_data, ActionData action_data)
 
protected int GetStanceMask (PlayerBase player)
 
bool IsFullBody (PlayerBase player)
 
protected bool HasProneException ()
 
void Start (ActionData action_data)
 
void End (ActionData action_data)
 
void Interrupt (ActionData action_data)
 
void OnEndInput (ActionData action_data)
 
void EndInput (ActionData action_data)
 
void OnEndRequest (ActionData action_data)
 
void EndRequest (ActionData action_data)
 
bool CanReceiveAction (ActionTarget target)
 
bool Can (PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
 
bool Can (PlayerBase player, ActionTarget target, ItemBase item)
 
protected bool CanContinue (ActionData action_data)
 
bool HasVariants ()
 
int GetVariantsCount ()
 
int GetVariants (out array< ref ActionBase > variants)
 
void SetVariantID (int ID)
 
int GetVariantID ()
 
void UpdateVariants (Object item, Object target, int componet_index)
 
ActionVariantManager GetVariantManager ()
 
bool InventoryReservation (ActionData action_data)
 
void ClearInventoryReservationEx (ActionData action_data)
 
void RefreshReservations (ActionData action_data)
 
bool UseAcknowledgment ()
 
protected void InformPlayers (PlayerBase player, ActionTarget target, int state)
 DEPRECATED delivers message ids to clients based on given context. More...
 
void SendMessageToClient (Object reciever, string message)
 
protected bool IsDamageDestroyed (ActionTarget target)
 
protected bool IsBuilding (ActionTarget target)
 
protected bool IsTransport (ActionTarget target)
 
protected bool IsInReach (PlayerBase player, ActionTarget target, float maxDistance=1.0)
 
SoundOnVehicle PlayActionSound (PlayerBase player)
 
void OnActionInfoUpdate (PlayerBase player, ActionTarget target, ItemBase item)
 
string GetSoundCategory (ActionData action_data)
 
void OnUpdate (ActionData action_data)
 
void OnUpdateClient (ActionData action_data)
 
void OnUpdateServer (ActionData action_data)
 
void OnStart (ActionData action_data)
 
void OnStartClient (ActionData action_data)
 
void OnStartServer (ActionData action_data)
 
void OnEnd (ActionData action_data)
 
void OnEndClient (ActionData action_data)
 
void OnEndServer (ActionData action_data)
 
float GetSpecialtyWeight ()
 
int GetState (ActionData action_data)
 
float GetProgress (ActionData action_data)
 
ActionInput GetInput ()
 
void SetID (int actionId)
 
int GetID ()
 
string GetAdminLogMessage (ActionData action_data)
 

Variables

enum ActionConditionMask m_MainItem
 
ref ActionTarget m_Target
 
class ActionData m_RefreshReservationTimerValue = 140
 
protected string m_Sound
 
protected string m_Text
 
protected bool m_LockTargetOnUse
 
protected bool m_FullBody
 
protected int m_StanceMask
 
protected ref TStringArray m_Sounds
 
ref CCIBase m_ConditionItem
 
ref CCTBase m_ConditionTarget
 
protected ActionInput m_Input
 
protected int m_ActionID
 
protected int m_VariantID
 
int m_ConditionMask
 
protected ref ActionVariantManager m_VariantManager
 
protected ref Param1< stringm_MessageParam
 
protected float m_SpecialtyWeight
 

Enumeration Type Documentation

◆ ActionConditionMask

Enumerator
ACM_NO_EXEPTION 
ACM_IN_VEHICLE 
ACM_ON_LADDER 
ACM_SWIMMING 
ACM_RESTRAIN 
ACM_RAISED 
ACM_ON_BACK 
ACM_THROWING 
ACM_LEANING 
ACM_BROKEN_LEGS 

Definition at line 1 of file actionbase.c.

Function Documentation

◆ ActionBase()

void ActionBase ( )

Definition at line 73 of file actionbase.c.

◆ ActionCleanup()

void ActionCleanup ( ActionData  action_data)

Definition at line 200 of file actionbase.c.

◆ ActionCondition()

override bool ActionCondition ( PlayerBase  player,
ActionTarget  target,
ItemBase  item 
)

Definition at line 372 of file actionbase.c.

◆ ActionConditionContinue()

protected bool ActionConditionContinue ( ActionData  action_data)

Definition at line 367 of file actionbase.c.

◆ ApplyModifiers()

void ApplyModifiers ( ActionData  action_data)

◆ Can() [1/2]

bool Can ( PlayerBase  player,
ActionTarget  target,
ItemBase  item 
)

Definition at line 741 of file actionbase.c.

◆ Can() [2/2]

bool Can ( PlayerBase  player,
ActionTarget  target,
ItemBase  item,
int  condition_mask 
)

Definition at line 703 of file actionbase.c.

◆ CanBePerformedFromInventory()

bool CanBePerformedFromInventory ( )

Definition at line 296 of file actionbase.c.

◆ CanBePerformedFromQuickbar()

bool CanBePerformedFromQuickbar ( )

Definition at line 291 of file actionbase.c.

◆ CanBeSetFromInventory()

bool CanBeSetFromInventory ( )

Definition at line 301 of file actionbase.c.

◆ CanBeUsedInRestrain()

bool CanBeUsedInRestrain ( )

Definition at line 306 of file actionbase.c.

◆ CanBeUsedInVehicle()

bool CanBeUsedInVehicle ( )

Definition at line 311 of file actionbase.c.

◆ CanBeUsedLeaning()

bool CanBeUsedLeaning ( )

Definition at line 341 of file actionbase.c.

◆ CanBeUsedOnBack()

bool CanBeUsedOnBack ( )

Definition at line 316 of file actionbase.c.

◆ CanBeUsedOnLadder()

bool CanBeUsedOnLadder ( )

Definition at line 326 of file actionbase.c.

◆ CanBeUsedRaised()

bool CanBeUsedRaised ( )

Definition at line 331 of file actionbase.c.

◆ CanBeUsedSwimming()

bool CanBeUsedSwimming ( )

Definition at line 321 of file actionbase.c.

◆ CanBeUsedThrowing()

bool CanBeUsedThrowing ( )

Definition at line 336 of file actionbase.c.

◆ CanBeUsedWithBrokenLegs()

bool CanBeUsedWithBrokenLegs ( )

Definition at line 346 of file actionbase.c.

◆ CanContinue()

protected bool CanContinue ( ActionData  action_data)

Definition at line 748 of file actionbase.c.

◆ CanReceiveAction()

bool CanReceiveAction ( ActionTarget  target)

Definition at line 638 of file actionbase.c.

◆ ClearInventoryReservationEx()

void ClearInventoryReservationEx ( ActionData  action_data)

Definition at line 862 of file actionbase.c.

◆ CreateActionData()

ActionData CreateActionData ( )

Definition at line 213 of file actionbase.c.

◆ CreateConditionComponents()

void CreateConditionComponents ( )

Definition at line 218 of file actionbase.c.

◆ End()

void End ( ActionData  action_data)

Definition at line 597 of file actionbase.c.

◆ EndInput()

void EndInput ( ActionData  action_data)

Definition at line 624 of file actionbase.c.

◆ EndRequest()

void EndRequest ( ActionData  action_data)

Definition at line 633 of file actionbase.c.

◆ GetActionCategory()

int GetActionCategory ( )

Definition at line 266 of file actionbase.c.

◆ GetAdminLogMessage()

string GetAdminLogMessage ( ActionData  action_data)

Definition at line 1081 of file actionbase.c.

◆ GetDisplayInteractObject()

Object GetDisplayInteractObject ( PlayerBase  player,
ActionTarget  target 
)

Definition at line 224 of file actionbase.c.

◆ GetID()

int GetID ( )

Definition at line 1076 of file actionbase.c.

◆ GetInput()

ActionInput GetInput ( )

Definition at line 1066 of file actionbase.c.

◆ GetInputType()

GetInputType ( )

Definition at line 203 of file actionbase.c.

◆ GetProgress()

float GetProgress ( ActionData  action_data)

Definition at line 1061 of file actionbase.c.

◆ GetRefreshReservationTimerValue()

int GetRefreshReservationTimerValue ( )

Definition at line 379 of file actionbase.c.

◆ GetSoundCategory()

string GetSoundCategory ( ActionData  action_data)

Definition at line 989 of file actionbase.c.

◆ GetSpecialtyWeight()

float GetSpecialtyWeight ( )

Definition at line 1044 of file actionbase.c.

◆ GetStanceMask()

protected int GetStanceMask ( PlayerBase  player)

Definition at line 539 of file actionbase.c.

◆ GetState()

int GetState ( ActionData  action_data)

Definition at line 1056 of file actionbase.c.

◆ GetText()

string GetText ( )

Definition at line 286 of file actionbase.c.

◆ GetVariantID()

int GetVariantID ( )

Definition at line 782 of file actionbase.c.

◆ GetVariantManager()

ActionVariantManager GetVariantManager ( )

Definition at line 795 of file actionbase.c.

◆ GetVariants()

int GetVariants ( out array< ref ActionBase variants)

Definition at line 769 of file actionbase.c.

◆ GetVariantsCount()

int GetVariantsCount ( )

Definition at line 761 of file actionbase.c.

◆ HandleReciveData()

void HandleReciveData ( ActionReciveData  action_recive_data,
ActionData  action_data 
)

Definition at line 517 of file actionbase.c.

◆ HasProgress()

bool HasProgress ( )

For UI: hiding of progress bar.

Definition at line 238 of file actionbase.c.

◆ HasProneException()

protected bool HasProneException ( )

Definition at line 563 of file actionbase.c.

◆ HasTarget()

bool HasTarget ( )

Action is performed on target, not with item itself, when set to true.

  • target will be synced to server
  • UI: floating widget will be displayed at target pos

Definition at line 232 of file actionbase.c.

◆ HasVariants()

bool HasVariants ( )

Definition at line 756 of file actionbase.c.

◆ InformPlayers()

protected void InformPlayers ( PlayerBase  player,
ActionTarget  target,
int  state 
)

DEPRECATED delivers message ids to clients based on given context.

◆ InitConditionMask()

void InitConditionMask ( )

Definition at line 95 of file actionbase.c.

◆ Interrupt()

void Interrupt ( ActionData  action_data)

Definition at line 616 of file actionbase.c.

◆ InventoryReservation()

bool InventoryReservation ( ActionData  action_data)

Definition at line 804 of file actionbase.c.

◆ IsBuilding()

protected bool IsBuilding ( ActionTarget  target)

Definition at line 918 of file actionbase.c.

◆ IsDamageDestroyed()

protected bool IsDamageDestroyed ( ActionTarget  target)

Definition at line 913 of file actionbase.c.

◆ IsDeploymentAction()

bool IsDeploymentAction ( )

Is an action directly related to deployment/advanced placing.

Definition at line 352 of file actionbase.c.

◆ IsDrink()

bool IsDrink ( )

Definition at line 276 of file actionbase.c.

◆ IsEat()

bool IsEat ( )

Definition at line 271 of file actionbase.c.

◆ IsFullBody()

bool IsFullBody ( PlayerBase  player)

Definition at line 553 of file actionbase.c.

◆ IsInReach()

protected bool IsInReach ( PlayerBase  player,
ActionTarget  target,
float  maxDistance = 1.0 
)

Definition at line 928 of file actionbase.c.

◆ IsInstant()

bool IsInstant ( )

Definition at line 250 of file actionbase.c.

◆ IsLocal()

bool IsLocal ( )

Definition at line 244 of file actionbase.c.

◆ IsLockTargetOnUse()

bool IsLockTargetOnUse ( )

Definition at line 90 of file actionbase.c.

◆ IsShaveSelf()

bool IsShaveSelf ( )

Definition at line 281 of file actionbase.c.

◆ IsTransport()

protected bool IsTransport ( ActionTarget  target)

Definition at line 923 of file actionbase.c.

◆ IsUsingProxies()

bool IsUsingProxies ( )

not using plane object - it's using multiple proxies

Definition at line 256 of file actionbase.c.

◆ MainItemAlwaysInHands()

bool MainItemAlwaysInHands ( )

Definition at line 362 of file actionbase.c.

◆ OnActionInfoUpdate()

void OnActionInfoUpdate ( PlayerBase  player,
ActionTarget  target,
ItemBase  item 
)

Definition at line 984 of file actionbase.c.

◆ OnEnd()

void OnEnd ( ActionData  action_data)

Definition at line 1031 of file actionbase.c.

◆ OnEndClient()

void OnEndClient ( ActionData  action_data)

Definition at line 1036 of file actionbase.c.

◆ OnEndInput()

void OnEndInput ( ActionData  action_data)

Definition at line 621 of file actionbase.c.

◆ OnEndRequest()

void OnEndRequest ( ActionData  action_data)

Definition at line 630 of file actionbase.c.

◆ OnEndServer()

override void OnEndServer ( ActionData  action_data)

Original action didn't add any noise to the NoiseSystem

Definition at line 1039 of file actionbase.c.

◆ OnStart()

void OnStart ( ActionData  action_data)

Definition at line 1017 of file actionbase.c.

◆ OnStartClient()

void OnStartClient ( ActionData  action_data)

Definition at line 1023 of file actionbase.c.

◆ OnStartServer()

void OnStartServer ( ActionData  action_data)

Definition at line 1026 of file actionbase.c.

◆ OnUpdate()

void OnUpdate ( ActionData  action_data)

Definition at line 995 of file actionbase.c.

◆ OnUpdateClient()

void OnUpdateClient ( ActionData  action_data)

Definition at line 998 of file actionbase.c.

◆ OnUpdateServer()

void OnUpdateServer ( ActionData  action_data)

Definition at line 1014 of file actionbase.c.

◆ PlayActionSound()

SoundOnVehicle PlayActionSound ( PlayerBase  player)

Definition at line 966 of file actionbase.c.

◆ Post_SetupAction()

bool Post_SetupAction ( ActionData  action_data)

Definition at line 195 of file actionbase.c.

◆ ReadFromContext()

bool ReadFromContext ( ParamsReadContext  ctx,
out ActionReciveData  action_recive_data 
)

create target object from proxyBoneIdx synced from client

Definition at line 440 of file actionbase.c.

◆ RefreshReservations()

void RefreshReservations ( ActionData  action_data)

Definition at line 878 of file actionbase.c.

◆ RemoveForceTargetAfterUse()

bool RemoveForceTargetAfterUse ( )

Definition at line 261 of file actionbase.c.

◆ SendMessageToClient()

void SendMessageToClient ( Object  reciever,
string  message 
)

Definition at line 901 of file actionbase.c.

◆ SetID()

void SetID ( int  actionId)

Definition at line 1071 of file actionbase.c.

◆ SetInput()

void SetInput ( ActionInput  ai)

Definition at line 208 of file actionbase.c.

◆ SetupAction()

bool SetupAction ( PlayerBase  player,
ActionTarget  target,
ItemBase  item,
out ActionData  action_data,
Param  extra_data = NULL 
)

Definition at line 144 of file actionbase.c.

◆ SetVariantID()

void SetVariantID ( int  ID)

Definition at line 777 of file actionbase.c.

◆ Start()

override void Start ( ActionData  action_data)

Definition at line 570 of file actionbase.c.

◆ UpdateVariants()

void UpdateVariants ( Object  item,
Object  target,
int  componet_index 
)

Definition at line 787 of file actionbase.c.

◆ UseAcknowledgment()

bool UseAcknowledgment ( )

Definition at line 893 of file actionbase.c.

◆ UseMainItem()

bool UseMainItem ( )

Definition at line 357 of file actionbase.c.

◆ WriteToContext()

void WriteToContext ( ParamsWriteContext  ctx,
ActionData  action_data 
)

get proxy bone idx from parent and selection we are looking at ID is used for synchronisation to server where it's translated back to object

Definition at line 384 of file actionbase.c.

Variable Documentation

◆ m_ActionID

protected int m_ActionID

Definition at line 58 of file actionbase.c.

◆ m_ConditionItem

ref CCIBase m_ConditionItem

Definition at line 55 of file actionbase.c.

◆ m_ConditionMask

int m_ConditionMask

Definition at line 60 of file actionbase.c.

◆ m_ConditionTarget

ref CCTBase m_ConditionTarget

Definition at line 56 of file actionbase.c.

◆ m_FullBody

protected bool m_FullBody

Definition at line 52 of file actionbase.c.

◆ m_Input

protected ActionInput m_Input

Definition at line 57 of file actionbase.c.

◆ m_LockTargetOnUse

protected bool m_LockTargetOnUse

Definition at line 51 of file actionbase.c.

◆ m_MainItem

enum ActionConditionMask m_MainItem

◆ m_MessageParam

protected ref Param1<string> m_MessageParam

Definition at line 64 of file actionbase.c.

◆ m_RefreshReservationTimerValue

class ActionData m_RefreshReservationTimerValue = 140

◆ m_Sound

protected string m_Sound

Definition at line 48 of file actionbase.c.

◆ m_Sounds

protected ref TStringArray m_Sounds

Definition at line 54 of file actionbase.c.

◆ m_SpecialtyWeight

protected float m_SpecialtyWeight

Definition at line 68 of file actionbase.c.

◆ m_StanceMask

protected int m_StanceMask

Definition at line 53 of file actionbase.c.

◆ m_Target

ref ActionTarget m_Target

Definition at line 17 of file actionbase.c.

◆ m_Text

protected string m_Text

Definition at line 49 of file actionbase.c.

◆ m_VariantID

protected int m_VariantID

Definition at line 59 of file actionbase.c.

◆ m_VariantManager

protected ref ActionVariantManager m_VariantManager

Definition at line 61 of file actionbase.c.