Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
crossbow.c File Reference

Go to the source code of this file.

Data Structures

class  Crossbow_Base
 base for Crossbow @NOTE name copies config base class More...
class  WeaponStableState
 represents weapon's stable state (i.e. More...

Enumerations

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

Functions

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

Variables

 CockedEmpty = 2
 Loaded = 3
class XBCockedEmpty extends WeaponStableState OnEntry
 UncockedEmpty = 1
 UNKNOWN = 0

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.

References m_muzzleHasBullet.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 22 of file crossbow.c.

Referenced by Weapon::CanFire(), and Weapon::RandomizeFSMState().

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 23 of file crossbow.c.

◆ OnEntry()

enum XBStableStateID OnEntry ( WeaponEventBase e)

Definition at line 1 of file crossbow.c.

◆ OnExit()

override void OnExit ( WeaponEventBase e)

Variable Documentation

◆ CockedEmpty

CockedEmpty = 2

Definition at line 20 of file crossbow.c.

◆ Loaded

Loaded = 3

Definition at line 21 of file crossbow.c.

◆ OnEntry

class XBCockedEmpty extends WeaponStableState OnEntry

◆ UncockedEmpty

UncockedEmpty = 1

Definition at line 19 of file crossbow.c.

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 18 of file crossbow.c.