PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Crossbow.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  Crossbow_Base
 base for Crossbow @NOTE name copies config base class More...
 

Enumerations

enum  XBAnimState { uncocked = 0 , cocked = 1 }
 
enum  XBStableStateID
 

Functions

enum XBStableStateID 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
 
 UncockedEmpty = 1
 
 CockedEmpty = 2
 
 Loaded = 3
 
class XBCockedEmpty extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ XBAnimState

Enumerator
uncocked 

default weapon state, closed and discharged

cocked 

◆ XBStableStateID

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

◆ HasBullet()

override bool HasBullet ( )

◆ HasMagazine()

override bool HasMagazine ( )

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

References m_muzzleHasBullet.

◆ IsJammed()

override bool IsJammed ( )

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

◆ OnEntry()

enum XBStableStateID OnEntry ( WeaponEventBase  e)

◆ OnExit()

Variable Documentation

◆ CockedEmpty

CockedEmpty = 2

◆ Loaded

Loaded = 3

◆ OnEntry

class XBCockedEmpty extends WeaponStableState OnEntry

◆ UncockedEmpty

UncockedEmpty = 1

◆ UNKNOWN

@ UNKNOWN = 0