DayZ 1.24
Loading...
Searching...
No Matches
RifleBoltLock_Base.c File Reference

Go to the source code of this file.

Classes

class  WeaponStableState
 represents weapon's stable state (i.e. the basic states that the weapon will spend the most time in) More...
 
class  WeaponStateJammed
 handle jamming state set jam/unjam state for weapon More...
 
class  Rifle_Base
 base for rifles @NOTE name copies config base class More...
 

Enumerations

enum  RBLAnimState { DEFAULT = 0 , OPENED = 1 , JAMMED = 2 }
 
enum  RBLStableStateID
 

Functions

enum RBLStableStateID OnEntry (WeaponEventBase e)
 
override void OnExit (WeaponEventBase e)
 
override int GetCurrentStateID ()
 
override bool HasBullet ()
 
override bool HasMagazine ()
 
override bool IsJammed ()
 
override bool IsRepairEnabled ()
 
override void InitMuzzleArray ()
 

Variables

 UNKNOWN = 0
 
 RBL_CLO_BU0_MA0 = 1
 
 RBL_CLO_BU1_MA0 = 2
 
 RBL_CLO_BU1_MA1 = 3
 
 RBL_CLO_BU0_MA1 = 4
 
 RBL_OPN_BU0_MA1 = 5
 
 RBL_OPN_BU0_MA0 = 6
 
 RBL_JAM_BU1_MA0 = 7
 
 RBL_JAM_BU1_MA1 = 8
 
class RBL_CLO_BU1_MA0 extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ RBLAnimState

Enumerator
DEFAULT 

default weapon state, closed and discharged

OPENED 
JAMMED 

Definition at line 1 of file RifleBoltLock_Base.c.

2{
3 DEFAULT = 0,
4 OPENED = 1,
5 JAMMED = 2,
6};
@ OPENED
@ DEFAULT
default weapon state, closed and discharged
@ JAMMED

◆ RBLStableStateID

Definition at line 8 of file RifleBoltLock_Base.c.

9{
10 UNKNOWN = 0,
19}
RBL_CLO_BU0_MA0
RBL_OPN_BU0_MA1
RBL_CLO_BU0_MA1
RBL_JAM_BU1_MA0
RBL_CLO_BU1_MA0
RBL_CLO_BU1_MA1
RBL_OPN_BU0_MA0
RBL_JAM_BU1_MA1

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 25 of file RifleBoltLock_Base.c.

25{ return RBLStableStateID.RBL_CLO_BU0_MA0; }
RBLStableStateID

◆ HasBullet()

override bool HasBullet ( )

Definition at line 26 of file RifleBoltLock_Base.c.

26{ return false; }

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 27 of file RifleBoltLock_Base.c.

27{ return false; }

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 30 of file RifleBoltLock_Base.c.

MuzzleState
ref array< MuzzleState > m_muzzleHasBullet

References m_muzzleHasBullet.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 28 of file RifleBoltLock_Base.c.

28{ return false; }

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 29 of file RifleBoltLock_Base.c.

29{ return true; }

◆ OnEntry()

Definition at line 1 of file RifleBoltLock_Base.c.

23{ if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " { close nobull nomag"); super.OnEntry(e); }
void wpnPrint(string s)
Definition Debug.c:1
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition Guards.c:602
static bool IsWeaponLogEnable()
Definition Debug.c:799

◆ OnExit()

Definition at line 24 of file RifleBoltLock_Base.c.

24{ super.OnExit(e); if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " } close nobull nomag"); }

References LogManager::IsWeaponLogEnable(), m_weapon, and wpnPrint().

Variable Documentation

◆ OnEntry

◆ RBL_CLO_BU0_MA0

RBL_CLO_BU0_MA0 = 1

Definition at line 25 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_CLO_BU0_MA1

RBL_CLO_BU0_MA1 = 4

Definition at line 28 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_CLO_BU1_MA0

RBL_CLO_BU1_MA0 = 2

Definition at line 26 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_CLO_BU1_MA1

RBL_CLO_BU1_MA1 = 3

Definition at line 27 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_JAM_BU1_MA0

RBL_JAM_BU1_MA0 = 7

Definition at line 31 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_JAM_BU1_MA1

RBL_JAM_BU1_MA1 = 8

Definition at line 32 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_OPN_BU0_MA0

RBL_OPN_BU0_MA0 = 6

Definition at line 30 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ RBL_OPN_BU0_MA1

RBL_OPN_BU0_MA1 = 5

Definition at line 29 of file RifleBoltLock_Base.c.

Referenced by Rifle_Base::InitStateMachine().

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 24 of file RifleBoltLock_Base.c.