DayZ 1.24
Loading...
Searching...
No Matches
FirearmActionMechanicManipulate Class Reference
Inheritance diagram for FirearmActionMechanicManipulate:
[legend]
Collaboration diagram for FirearmActionMechanicManipulate:
[legend]

Private Member Functions

void FirearmActionLoadBulletQuick ()
 
override bool HasTarget ()
 
override GetInputType ()
 
override void CreateConditionComponents ()
 
override bool HasProgress ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void Start (ActionData action_data)
 

Detailed Description

Definition at line 1 of file FirearmActionMechanicManipulate.c.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 29 of file FirearmActionMechanicManipulate.c.

30 {
31 if (!super.ActionCondition(player, target, item))
32 return false;
33
34 bool result = false;
36 if (player.GetWeaponManager().CanEjectBullet(wpn))
37 {
38 if (GetGame().IsServer() && GetGame().IsMultiplayer())
39 result = true;
40 else
41 {
42 if (player.GetWeaponManager().CanEjectBulletVerified())
43 result = true;
44 player.GetWeaponManager().SetEjectBulletTryTimestamp();
45 }
46 }
47 return result;
48 }
proto native CGame GetGame()

References GetGame().

◆ CreateConditionComponents()

override void FirearmActionMechanicManipulate::CreateConditionComponents ( )
inlineprivate

Definition at line 17 of file FirearmActionMechanicManipulate.c.

18 {
21 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ FirearmActionLoadBulletQuick()

void FirearmActionMechanicManipulate::FirearmActionLoadBulletQuick ( )
inlineprivate

Definition at line 3 of file FirearmActionMechanicManipulate.c.

4 {
5 }

◆ GetInputType()

override FirearmActionMechanicManipulate::GetInputType ( )
inlineprivate

◆ HasProgress()

override bool FirearmActionMechanicManipulate::HasProgress ( )
inlineprivate

Definition at line 23 of file FirearmActionMechanicManipulate.c.

24 {
25 return false;
26 }

◆ HasTarget()

override bool FirearmActionMechanicManipulate::HasTarget ( )
inlineprivate

Definition at line 7 of file FirearmActionMechanicManipulate.c.

8 {
9 return false;
10 }

◆ Start()

override void FirearmActionMechanicManipulate::Start ( ActionData action_data)
inlineprivate

Definition at line 50 of file FirearmActionMechanicManipulate.c.

51 {
52 super.Start(action_data);
53
54 action_data.m_Player.GetWeaponManager().EjectBulletVerified(this);
55 }

The documentation for this class was generated from the following file: