PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
OpenBolt_Base.c File Reference

Data Structures

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 

◆ OBStableStateID

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

◆ HasBullet()

override bool HasBullet ( )

◆ HasMagazine()

override bool HasMagazine ( )

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

References m_muzzleHasBullet.

◆ IsBoltOpen()

override bool IsBoltOpen ( )

◆ IsDischarged()

override bool IsDischarged ( )

◆ IsJammed()

override bool IsJammed ( )

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

◆ OnEntry()

enum OBStableStateID OnEntry ( WeaponEventBase  e)

◆ OnExit()

Variable Documentation

◆ OB_CLO_MA0

OB_CLO_MA0 = 1

◆ OB_CLO_MA1

OB_CLO_MA1 = 3

◆ OB_JAM_MA0

OB_JAM_MA0 = 6

◆ OB_JAM_MA1

OB_JAM_MA1 = 7

◆ OB_OPN_MA0

OB_OPN_MA0 = 2

◆ OB_OPN_MA1

OB_OPN_MA1 = 4

◆ OB_OPN_MA1_EMPTY

OB_OPN_MA1_EMPTY = 5

◆ OnEntry

class OB_OPN_MA0 extends WeaponStableState OnEntry

◆ UNKNOWN

@ UNKNOWN = 0