Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
actions.c
Go to the documentation of this file.
1 
5 {
9  void Action (WeaponEventBase e) { }
10 };
11 
12 // FSM Actions /////////////////////////////////////////////////////////////////////////////////////////////////////////
13 // fire
14 class WeaponActionDryFire extends WeaponActionBase
15 {
16  protected Weapon_Base m_weapon;
17  void WeaponActionDryFire (Weapon_Base w = NULL) { m_weapon = w; }
18 
19  override void Action (WeaponEventBase e)
20  {
21  Print("[wpnfsm] " + Object.GetDebugName(m_weapon) + " action=dry fire");
22  int mi = m_weapon.GetCurrentMuzzle();
23  m_weapon.DryFire(mi);
24  }
25 };
26 class WeaponActionDryDryFire extends WeaponActionBase
27 {
28  protected Weapon_Base m_weapon;
29  void WeaponActionDryDryFire (Weapon_Base w = NULL) { m_weapon = w; }
30 
31  override void Action (WeaponEventBase e)
32  {
33  Print("[wpnfsm] " + Object.GetDebugName(m_weapon) + " action=dry dry fire");
34  int mi = m_weapon.GetCurrentMuzzle();
35  m_weapon.DryDryFire(mi);
36  }
37 };
38 
Print
proto void Print(void var)
Prints content of variable to console/log.
WeaponActionBase
represents action executed on transition just between OnExit from old state and OnEntry to new state
Definition: actions.c:4
Object
Definition: objecttyped.c:1
WeaponEventBase
signalize mechanism manipulation
Definition: events.c:34
m_weapon
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition: guards.c:583
Weapon_Base
shorthand
Definition: boltactionrifle_base.c:5