DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ActionTurnOnHelmetFlashlight
+ Граф наследования:ActionTurnOnHelmetFlashlight:

Закрытые члены

void ActionTurnOnHelmetFlashlight ()
 
override bool IsInstant ()
 
override bool HasTarget ()
 
override bool UseMainItem ()
 
override void CreateConditionComponents ()
 
override GetInputType ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 
- Закрытые члены унаследованные от ActionBase
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.
 
bool IsLocal ()
 
bool IsInstant ()
 
bool IsUsingProxies ()
 not using plane object - it's using multiple proxies
 
bool RemoveForceTargetAfterUse ()
 
int GetActionCategory ()
 
bool IsEat ()
 
bool IsDrink ()
 
bool IsShaveSelf ()
 
string GetText ()
 
bool CanBePerformedFromQuickbar ()
 
bool CanBePerformedFromInventory ()
 
bool CanBeSetFromInventory ()
 
bool CanBeUsedInRestrain ()
 
bool CanBeUsedInVehicle ()
 
bool CanTargetBeInVehicle ()
 
bool CanBeUsedOnBack ()
 
bool CanBeUsedSwimming ()
 
bool CanBeUsedOnLadder ()
 
bool CanBeUsedRaised ()
 
bool CanBeUsedThrowing ()
 
bool CanBeUsedLeaning ()
 
bool CanBeUsedWithBrokenLegs ()
 
bool CanBeUsedInFreelook ()
 
bool IsDeploymentAction ()
 Is an action directly related to deployment/advanced placing.
 
bool UseMainItem ()
 
bool MainItemAlwaysInHands ()
 
bool DisplayTargetInActionText ()
 
bool ActionConditionContinue (ActionData action_data)
 
bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
string GetTargetName (PlayerBase player, ActionTarget target)
 
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)
 
int GetStanceMaskEx (PlayerBase player, ActionTarget target, ItemBase item)
 
int GetStanceMask (PlayerBase player)
 
bool IsFullBodyEx (PlayerBase player, ActionTarget target, ItemBase item)
 
bool IsFullBody (PlayerBase player)
 
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)
 
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 ()
 
void OnItemLocationChanged (ItemBase item)
 
bool InventoryReservation (ActionData action_data)
 
void ClearInventoryReservationEx (ActionData action_data)
 
void RefreshReservations (ActionData action_data)
 
bool AddActionJuncture (ActionData action_data)
 
void ClearActionJuncture (ActionData action_data)
 
void RefreshActionJuncture (ActionData action_data)
 
bool UseAcknowledgment ()
 
void InformPlayers (PlayerBase player, ActionTarget target, int state)
 DEPRECATED delivers message ids to clients based on given context.
 
void SendMessageToClient (Object reciever, string message)
 
bool IsDamageDestroyed (ActionTarget target)
 
bool IsBuilding (ActionTarget target)
 
bool IsTransport (ActionTarget target)
 
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)
 

Дополнительные унаследованные члены

- Закрытые статические члены унаследованные от ActionBase
static int ComputeConditionMask (PlayerBase player, ActionTarget target, ItemBase item)
 
- Закрытые данные унаследованные от ActionBase
int m_RefreshReservationTimerValue = 140
 
string m_Sound
 
string m_Text
 
bool m_LockTargetOnUse
 
bool m_FullBody
 
int m_StanceMask
 
ref TStringArray m_Sounds
 
ref CCIBase m_ConditionItem
 
ref CCTBase m_ConditionTarget
 
ActionInput m_Input
 
int m_ActionID
 
int m_VariantID
 
int m_ConditionMask
 
ref ActionVariantManager m_VariantManager
 
ref Param1< stringm_MessageParam
 
float m_SpecialtyWeight
 

Подробное описание

Конструктор(ы)

◆ ActionTurnOnHelmetFlashlight()

4 {
5 }

Методы

◆ ActionCondition()

override bool ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate
34 {
37 helmet = Mich2001Helmet.Cast(target.GetObject());
38 if ( !helmet )
39 return false;
40 light = Switchable_Base.Cast(helmet.FindAttachmentBySlotName("helmetFlashlight"));
41 if ( !light )
42 return false;
43
44 if ( light.HasEnergyManager() && light.GetCompEM().CanSwitchOn() && light.GetCompEM().CanWork() ) //TODO review conditions for turning off
45 {
46 return true;
47 }
48
49 return false;
50 }
Definition EntityAI.c:95
Definition Chainsaw.c:2

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate
23 {
26 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:64
ref CCTBase m_ConditionTarget
Definition ActionBase.c:65
Definition CCINone.c:2
Definition CCTNonRuined.c:2
Definition ActionConstants.c:106
const float DEFAULT
Definition ActionConstants.c:108

Перекрестные ссылки UAMaxDistances::DEFAULT, ActionBase::m_ConditionItem и ActionBase::m_ConditionTarget.

◆ GetInputType()

override GetInputType ( )
inlineprivate
29 {
31 }
Definition ActionInput.c:747

◆ HasTarget()

override bool HasTarget ( )
inlineprivate
13 {
14 return true;
15 }

◆ IsInstant()

override bool IsInstant ( )
inlineprivate
8 {
9 return true;
10 }

◆ Start()

override void Start ( ActionData action_data)
inlineprivate
53 {
54 super.Start( action_data );
55
56 Switchable_Base light;// = Switchable_Base.Cast(action_data.m_MainItem.FindAttachmentBySlotName("helmetFlashlight"));
58 helmet = Mich2001Helmet.Cast(action_data.m_Target.GetObject());
59 light = Switchable_Base.Cast(helmet.FindAttachmentBySlotName("helmetFlashlight"));
60
61 if ( light.HasEnergyManager() )
62 {
63 if ( light.GetCompEM().CanWork() )
64 {
65 light.GetCompEM().SwitchOn();
66 }
67 }
68 }

◆ UseMainItem()

override bool UseMainItem ( )
inlineprivate
18 {
19 return false;
20 }

Объявления и описания членов класса находятся в файле: