Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
openbolt_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  Rifle_Base
 base for rifles @NOTE name copies config base class More...
 

Enumerations

enum  OBAnimState { CLOSED = 0 , OPENED = 1 , JAMMED = 2 }
 
enum  OBStableStateID
 

Functions

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

Variables

 UNKNOWN = 0
 
 OB_CLO_MA0 = 1
 
 OB_OPN_MA0 = 2
 
 OB_CLO_MA1 = 3
 
 OB_OPN_MA1 = 4
 
 OB_OPN_MA1_EMPTY = 5
 
 OB_JAM_MA0 = 6
 
 OB_JAM_MA1 = 7
 
class OB_OPN_MA0 extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ OBAnimState

Enumerator
CLOSED 

default weapon state, closed and discharged

OPENED 
JAMMED 

Definition at line 1 of file openbolt_base.c.

◆ OBStableStateID

Definition at line 8 of file openbolt_base.c.

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 24 of file openbolt_base.c.

◆ HasBullet()

override bool HasBullet ( )

Definition at line 25 of file openbolt_base.c.

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 26 of file openbolt_base.c.

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 31 of file openbolt_base.c.

◆ IsBoltOpen()

override bool IsBoltOpen ( )

Definition at line 28 of file openbolt_base.c.

◆ IsDischarged()

override bool IsDischarged ( )

Definition at line 30 of file openbolt_base.c.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 27 of file openbolt_base.c.

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 29 of file openbolt_base.c.

◆ OnEntry()

enum OBStableStateID OnEntry ( WeaponEventBase e)

Definition at line 1 of file openbolt_base.c.

◆ OnExit()

override void OnExit ( WeaponEventBase e)

Definition at line 23 of file openbolt_base.c.

Variable Documentation

◆ OB_CLO_MA0

OB_CLO_MA0 = 1

Definition at line 24 of file openbolt_base.c.

◆ OB_CLO_MA1

OB_CLO_MA1 = 3

Definition at line 26 of file openbolt_base.c.

◆ OB_JAM_MA0

OB_JAM_MA0 = 6

Definition at line 29 of file openbolt_base.c.

◆ OB_JAM_MA1

OB_JAM_MA1 = 7

Definition at line 30 of file openbolt_base.c.

◆ OB_OPN_MA0

OB_OPN_MA0 = 2

Definition at line 25 of file openbolt_base.c.

◆ OB_OPN_MA1

OB_OPN_MA1 = 4

Definition at line 27 of file openbolt_base.c.

◆ OB_OPN_MA1_EMPTY

OB_OPN_MA1_EMPTY = 5

Definition at line 28 of file openbolt_base.c.

◆ OnEntry

class OB_OPN_MA0 extends WeaponStableState OnEntry

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 23 of file openbolt_base.c.