Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
pistol_base.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  WeaponStateJammed
 handle jamming state set jam/unjam state for weapon More...
 
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  WeaponStableState
 represents weapon's stable state (i.e. the basic states that the weapon will spend the most time in) More...
 
class  WeaponStateJammed
 handle jamming state set jam/unjam state for weapon More...
 
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  Weapon_Base
 shorthand More...
 

Enumerations

enum  PistolAnimState { DEFAULT = 0, OPENED_DISCHARGED = 1, CLOSED_CHARGED = 2, JAMMED = 3 }
 
enum  PistolStableStateID
 

Functions

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

Variables

 UNKNOWN = 0
 
 CLO_DIS_BU0_MA0 = 1
 
 CLO_CHG_BU0_MA0 = 2
 
 CLO_CHG_BU1_MA0 = 3
 
 CLO_JAM_BU1_MA0 = 4
 
 OPE_DIS_BU0_MA0 = 5
 
 CLO_CHG_BU0_MA1 = 6
 
 CLO_DIS_BU0_MA1 = 7
 
 CLO_JAM_BU1_MA1 = 8
 
 CLO_CHG_BU1_MA1 = 9
 
 OPE_DIS_BU0_MA1 = 10
 
class Pistol_CLO_CHG_BU0_MA0 extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ PistolAnimState

Enumerator
DEFAULT 

default weapon state, closed and discharged

OPENED_DISCHARGED 

opened and discharged

CLOSED_CHARGED 

closed and charged

JAMMED 

jammed weapon

Definition at line 2 of file pistol_base.c.

◆ PistolStableStateID

Definition at line 12 of file pistol_base.c.

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 31 of file pistol_base.c.

◆ HasBullet()

override bool HasBullet ( )

Definition at line 32 of file pistol_base.c.

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 33 of file pistol_base.c.

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 37 of file pistol_base.c.

◆ IsDischarged()

override bool IsDischarged ( )

Definition at line 35 of file pistol_base.c.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 34 of file pistol_base.c.

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 36 of file pistol_base.c.

◆ OnEntry()

enum PistolStableStateID OnEntry ( WeaponEventBase  e)

Definition at line 29 of file pistol_base.c.

◆ OnExit()

override void OnExit ( WeaponEventBase  e)

Definition at line 30 of file pistol_base.c.

Variable Documentation

◆ CLO_CHG_BU0_MA0

CLO_CHG_BU0_MA0 = 2

Definition at line 4 of file pistol_base.c.

◆ CLO_CHG_BU0_MA1

CLO_CHG_BU0_MA1 = 6

Definition at line 8 of file pistol_base.c.

◆ CLO_CHG_BU1_MA0

CLO_CHG_BU1_MA0 = 3

Definition at line 5 of file pistol_base.c.

◆ CLO_CHG_BU1_MA1

CLO_CHG_BU1_MA1 = 9

Definition at line 11 of file pistol_base.c.

◆ CLO_DIS_BU0_MA0

CLO_DIS_BU0_MA0 = 1

Definition at line 3 of file pistol_base.c.

◆ CLO_DIS_BU0_MA1

CLO_DIS_BU0_MA1 = 7

Definition at line 9 of file pistol_base.c.

◆ CLO_JAM_BU1_MA0

CLO_JAM_BU1_MA0 = 4

Definition at line 6 of file pistol_base.c.

◆ CLO_JAM_BU1_MA1

CLO_JAM_BU1_MA1 = 8

Definition at line 10 of file pistol_base.c.

◆ OnEntry

class Pistol_CLO_CHG_BU0_MA0 extends WeaponStableState OnEntry

◆ OPE_DIS_BU0_MA0

OPE_DIS_BU0_MA0 = 5

Definition at line 7 of file pistol_base.c.

◆ OPE_DIS_BU0_MA1

OPE_DIS_BU0_MA1 = 10

Definition at line 12 of file pistol_base.c.

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 2 of file pistol_base.c.