Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
crossbow.c File Reference

Go to the source code of this file.

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  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 

Definition at line 1 of file crossbow.c.

◆ XBStableStateID

Definition at line 7 of file crossbow.c.

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 19 of file crossbow.c.

◆ HasBullet()

override bool HasBullet ( )

Definition at line 20 of file crossbow.c.

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 21 of file crossbow.c.

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 24 of file crossbow.c.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 22 of file crossbow.c.

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 23 of file crossbow.c.

◆ OnEntry()

enum XBStableStateID OnEntry ( WeaponEventBase  e)

Definition at line 17 of file crossbow.c.

◆ OnExit()

override void OnExit ( WeaponEventBase  e)

Definition at line 18 of file crossbow.c.

Variable Documentation

◆ CockedEmpty

CockedEmpty = 2

Definition at line 4 of file crossbow.c.

◆ Loaded

Loaded = 3

Definition at line 5 of file crossbow.c.

◆ OnEntry

class XBCockedEmpty extends WeaponStableState OnEntry

◆ UncockedEmpty

UncockedEmpty = 1

Definition at line 3 of file crossbow.c.

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 2 of file crossbow.c.