DayZ 1.24
Loading...
Searching...
No Matches
Pistol_Base.c File Reference

Go to the source code of this file.

Classes

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

3{
4 DEFAULT = 0,
7 JAMMED = 3
8};
@ CLOSED_CHARGED
closed and charged
Definition Pistol_Base.c:6
@ DEFAULT
default weapon state, closed and discharged
Definition Pistol_Base.c:4
@ OPENED_DISCHARGED
opened and discharged
Definition Pistol_Base.c:5
@ JAMMED
jammed weapon
Definition Pistol_Base.c:7

◆ PistolStableStateID

Definition at line 12 of file Pistol_Base.c.

13{
14 UNKNOWN = 0,
24 OPE_DIS_BU0_MA1 = 10,
25}
CLO_DIS_BU0_MA0
Definition Pistol_Base.c:31
CLO_CHG_BU0_MA0
Definition Pistol_Base.c:32
UNKNOWN
Definition Pistol_Base.c:30
CLO_JAM_BU1_MA0
Definition Pistol_Base.c:34
OPE_DIS_BU0_MA1
Definition Pistol_Base.c:40
CLO_CHG_BU1_MA1
Definition Pistol_Base.c:39
OPE_DIS_BU0_MA0
Definition Pistol_Base.c:35
CLO_CHG_BU1_MA0
Definition Pistol_Base.c:33
CLO_DIS_BU0_MA1
Definition Pistol_Base.c:37
CLO_JAM_BU1_MA1
Definition Pistol_Base.c:38
CLO_CHG_BU0_MA1
Definition Pistol_Base.c:36

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 31 of file Pistol_Base.c.

31{ return PistolStableStateID.CLO_DIS_BU0_MA0; }
PistolStableStateID
Definition Pistol_Base.c:13

◆ HasBullet()

override bool HasBullet ( )

Definition at line 32 of file Pistol_Base.c.

32{ return false; }

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 33 of file Pistol_Base.c.

33{ return false; }

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 37 of file Pistol_Base.c.

MuzzleState
ref array< MuzzleState > m_muzzleHasBullet

◆ IsDischarged()

override bool IsDischarged ( )

Definition at line 35 of file Pistol_Base.c.

35{ return true; }

◆ IsJammed()

override bool IsJammed ( )

Definition at line 34 of file Pistol_Base.c.

34{ return false; }

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 36 of file Pistol_Base.c.

36{ return true; }

◆ OnEntry()

Definition at line 1 of file Pistol_Base.c.

29{ if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnstate] { CD00 closed dischgd nobull nomag"); super.OnEntry(e); }
void wpnPrint(string s)
Definition Debug.c:1
static bool IsWeaponLogEnable()
Definition Debug.c:799

◆ OnExit()

Definition at line 30 of file Pistol_Base.c.

30{ super.OnExit(e); if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnstate] } CD00 closed dischgd nobull nomag"); }

References LogManager::IsWeaponLogEnable(), and wpnPrint().

Variable Documentation

◆ CLO_CHG_BU0_MA0

CLO_CHG_BU0_MA0 = 2

Definition at line 32 of file Pistol_Base.c.

◆ CLO_CHG_BU0_MA1

CLO_CHG_BU0_MA1 = 6

Definition at line 36 of file Pistol_Base.c.

◆ CLO_CHG_BU1_MA0

CLO_CHG_BU1_MA0 = 3

Definition at line 33 of file Pistol_Base.c.

◆ CLO_CHG_BU1_MA1

CLO_CHG_BU1_MA1 = 9

Definition at line 39 of file Pistol_Base.c.

◆ CLO_DIS_BU0_MA0

CLO_DIS_BU0_MA0 = 1

Definition at line 31 of file Pistol_Base.c.

◆ CLO_DIS_BU0_MA1

CLO_DIS_BU0_MA1 = 7

Definition at line 37 of file Pistol_Base.c.

◆ CLO_JAM_BU1_MA0

CLO_JAM_BU1_MA0 = 4

Definition at line 34 of file Pistol_Base.c.

◆ CLO_JAM_BU1_MA1

CLO_JAM_BU1_MA1 = 8

Definition at line 38 of file Pistol_Base.c.

◆ OnEntry

◆ OPE_DIS_BU0_MA0

OPE_DIS_BU0_MA0 = 5

Definition at line 35 of file Pistol_Base.c.

◆ OPE_DIS_BU0_MA1

OPE_DIS_BU0_MA1 = 10

Definition at line 40 of file Pistol_Base.c.

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 30 of file Pistol_Base.c.