DIFF

class ActionBaseSource

ActionBase ActionBase_Basic

Derived classes
View all 423 descendants

All members, including inherited

Constructors 1

Members 16

protected int m_RefreshReservationTimerValue = 140
protected bool m_FullBody

tells whether action is full body or additive

protected ref TStringArray m_Sounds

User action sound is picked from this array randomly

protected ActionInput m_Input
Referenced by ActionBase(), GetInput(), and SetInput()
protected int m_ActionID
Referenced by ActionBase(), GetID(), and SetID()
int m_ConditionMask
protected ref ActionVariantManager m_VariantManager
protected ref Param1<string> m_MessageParam

used for passing messages from server to client

Methods 107

bool IsLockTargetOnUse()
Referenced by AddActionJuncture()
bool SetupAction(PlayerBase player, ActionTarget target, ItemBase item, out ActionData action_data, Param extra_data = NULL)
bool Post_SetupAction(ActionData action_data)
Referenced by SetupAction()
void ActionCleanup(ActionData action_data)
ActionData CreateActionData()
Referenced by SetupAction()
void CreateConditionComponents()
Object GetDisplayInteractObject(PlayerBase player, ActionTarget target)
bool HasProgress()

For UI: hiding of progress bar

bool IsUsingProxies()

not using plane object - it's using multiple proxies

bool RemoveForceTargetAfterUse()
int GetActionCategory()
bool IsEat()
bool IsDrink()
bool IsShaveSelf()
bool CanBePerformedWhileChangingStance()

Condition used in PlayerBase::CanChangeStance to check if stance can be changed while action is performed/executed

bool CanBeUsedInRestrain()
Referenced by InitConditionMask()
bool CanBeUsedInVehicle()
Referenced by InitConditionMask()
bool CanTargetBeInVehicle()
Referenced by CanReceiveAction()
bool CanBeUsedOnBack()
Referenced by InitConditionMask()
bool CanBeUsedSwimming()
Referenced by InitConditionMask()
bool CanBeUsedOnLadder()
Referenced by InitConditionMask()
bool CanBeUsedRaised()
Referenced by InitConditionMask()
bool CanBeUsedThrowing()
Referenced by InitConditionMask()
bool CanBeUsedLeaning()
Referenced by InitConditionMask()
bool CanBeUsedWithBrokenLegs()
Referenced by InitConditionMask()
bool CanBeUsedInFreelook()
Referenced by InitConditionMask()
bool IsDeploymentAction()

Is an action directly related to deployment/advanced placing

Referenced by OnStart()
bool UseMainItem()
bool MainItemAlwaysInHands()
Referenced by SetupAction()
bool DisplayTargetInActionText()

Action will display the content of ActionBase::GetTargetName next to action action name (ActionTargetsCursor::GetActionDesc).

Returns: true if allowed; otherwise false

protected bool ActionConditionContinue(ActionData action_data)
Referenced by CanContinue()
protected bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
string GetTargetName(PlayerBase player, ActionTarget target)

Used to set the name of action target displayed in UI in case ActionBase::DisplayTargetInActionText is true.

player
reference to player running action
target
actual target reference

Returns: name of the target

References string.Empty
void ApplyModifiers(ActionData action_data)
int GetRefreshReservationTimerValue()
protected int GetStanceMaskEx(PlayerBase player, ActionTarget target, ItemBase item)
References GetStanceMask()
protected int GetClosestPossibleStance(PlayerBase player, ActionTarget target, ItemBase item)
Referenced by Can()
protected bool IsFullBodyEx(PlayerBase player, ActionTarget target, ItemBase item)
References IsFullBody()
protected bool HasProneException()
Referenced by GetStanceMask(), and IsFullBody()
void OnEndInput(ActionData action_data)
void OnEndRequest(ActionData action_data)
Referenced by EndRequest()
bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
int GetVariantsCount()
void SetVariantID(int ID)
References m_VariantID
int GetVariantID()
References m_VariantID
void OnItemLocationChanged(ItemBase item)
void ClearInventoryReservationEx(ActionData action_data)
Referenced by ActionAttach.OnExecuteClient(), ActionAttach.OnExecuteServer(), ActionAttachExplosivesTrigger.OnFinishProgressClient()
Show 44 more, ActionAttachExplosivesTrigger.OnFinishProgressServer(), ActionAttachOnSelection.OnExecuteClient(), ActionAttachOnSelection.OnExecuteServer(), ActionAttachPowerSourceToPanel.OnExecuteClient(), ActionAttachToConstruction.OnExecuteClient(), ActionAttachToConstruction.OnExecuteServer(), ActionAttachWithSwitch.OnExecuteClient(), ActionAttachWithSwitch.OnExecuteServer(), SetupAction(), ActionBreakLongWoodenStick.OnFinishProgressServer(), ActionCollectBloodSelf.OnEndServer(), ActionCreateIndoorFireplace.OnExecuteClient(), ActionCreateIndoorFireplace.OnExecuteServer(), ActionCreateIndoorOven.OnExecuteServer(), ActionDeployHuntingTrap.MoveEntityToFinalPosition(), ActionDeployObject.OnStartAnimationLoop(), ActionDetachFromTarget.Process(), ActionDialCombinationLockOnTarget.OnFinishProgressServer(), ActionDigInStash.OnFinishProgressServer(), ActionDropItem.OnExecuteServer(), ActionDropItemSimple.Start(), ActionFoldEntityToSlot.OnExecuteClient(), ActionFoldEntityToSlot.OnExecuteServer(), ActionManagerClient.UnlockInventory(), ActionManagerClient.Update(), ActionOpen.OnExecuteClient(), ActionOpen.OnExecuteServer(), ActionPlaceFireplaceIntoBarrel.OnExecuteServer(), ActionRemoveSeed.OnExecuteClient(), ActionRepositionPluggedItem.OnExecuteClient(), ActionRepositionPluggedItem.OnExecuteServer(), ActionRestrainSelf.OnFinishProgressServer(), ActionSwapItemToHands.PerformSwap(), ActionTakeArrow.OnExecute(), ActionTakeArrowToHands.OnExecute(), ActionTakeHybridAttachment.OnExecute(), ActionTakeHybridAttachmentToHands.OnExecuteImpl(), ActionTakeItem.OnExecute(), ActionTakeItemToHands.OnExecute(), ActionUnfoldEntity.OnExecuteClient(), ActionUnfoldEntity.OnExecuteServer(), ActionWorldCraft.OnFinishProgressServer(), FirearmActionAttachMagazine.Start(), and FirearmActionAttachMagazineQuick.Start()
protected void InformPlayers(PlayerBase player, ActionTarget target, int state)

DEPRECATED delivers message ids to clients based on given context

protected bool IsDamageDestroyed(ActionTarget target)
void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
string GetSoundCategory(ActionData action_data)
Referenced by Start()
void OnUpdateServer(ActionData action_data)
void OnEndClient(ActionData action_data)
float GetSpecialtyWeight()
int GetState(ActionData action_data)
float GetProgress(ActionData action_data)
float GetProgressWidgetMultiplier(ActionData action_data)
string GetAdminLogMessage(ActionData action_data)