DayZ 1.24
Loading...
Searching...
No Matches
DoubleBarrel_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  DoubleBarrel_Base
 

Enumerations

enum  DoubleBarrelAnimState { DEFAULT = 0 }
 
enum  DoubleBarrelStableStateID
 

Functions

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

enum DoubleBarrelStableStateID First = 0
 
enum DoubleBarrelStableStateID Second = 1
 
 UNKNOWN = 0
 
 LoadedLoaded = 1
 
 LoadedEmpty = 2
 
 FireoutLoaded = 3
 
 FireoutFireout = 4
 
 FireoutEmpty = 5
 
 EmptyEmpty = 6
 
 EmptyLoaded = 7
 
 EmptyFireout = 8
 
class DoubleBarrelLoadedEmpty extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ DoubleBarrelAnimState

Enumerator
DEFAULT 

default weapon state, closed and discharged

Definition at line 1 of file DoubleBarrel_Base.c.

2{
3 DEFAULT = 0,
4};
@ DEFAULT
default weapon state, closed and discharged

◆ DoubleBarrelStableStateID

Definition at line 6 of file DoubleBarrel_Base.c.

7{
8 UNKNOWN = 0,
9 LoadedLoaded = 1,
10 LoadedEmpty = 2,
11 FireoutLoaded = 3,
13 FireoutEmpty = 5,
14 EmptyEmpty = 6,
15 EmptyLoaded = 7,
16 EmptyFireout = 8,
17}
EmptyFireout
LoadedEmpty
FireoutFireout
LoadedLoaded
EmptyLoaded
FireoutEmpty
FireoutLoaded

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 29 of file DoubleBarrel_Base.c.

29{ return DoubleBarrelStableStateID.LoadedLoaded; }
DoubleBarrelStableStateID

◆ HasBullet()

override bool HasBullet ( )

Definition at line 30 of file DoubleBarrel_Base.c.

30{ return true; }

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 31 of file DoubleBarrel_Base.c.

31{ return false; }

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 34 of file DoubleBarrel_Base.c.

MuzzleState
ref array< MuzzleState > m_muzzleHasBullet

◆ IsJammed()

override bool IsJammed ( )

Definition at line 32 of file DoubleBarrel_Base.c.

32{ return false; }

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 33 of file DoubleBarrel_Base.c.

33{ return true; }

◆ OnEntry()

Definition at line 1 of file DoubleBarrel_Base.c.

27{ if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " { LoadedLoaded L_L"); super.OnEntry(e); m_weapon.SetCurrentMuzzle(MuzzleIndex.First); }
void wpnPrint(string s)
Definition Debug.c:1
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
Definition Guards.c:602
static bool IsWeaponLogEnable()
Definition Debug.c:799

◆ OnExit()

Definition at line 28 of file DoubleBarrel_Base.c.

28{ super.OnExit(e); if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " } LoadedLoaded L_L"); }

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

Variable Documentation

◆ EmptyEmpty

EmptyEmpty = 6

Definition at line 34 of file DoubleBarrel_Base.c.

◆ EmptyFireout

EmptyFireout = 8

Definition at line 36 of file DoubleBarrel_Base.c.

◆ EmptyLoaded

EmptyLoaded = 7

Definition at line 35 of file DoubleBarrel_Base.c.

◆ FireoutEmpty

FireoutEmpty = 5

Definition at line 33 of file DoubleBarrel_Base.c.

◆ FireoutFireout

FireoutFireout = 4

Definition at line 32 of file DoubleBarrel_Base.c.

◆ FireoutLoaded

FireoutLoaded = 3

Definition at line 31 of file DoubleBarrel_Base.c.

◆ First

◆ LoadedEmpty

LoadedEmpty = 2

Definition at line 30 of file DoubleBarrel_Base.c.

◆ LoadedLoaded

LoadedLoaded = 1

Definition at line 29 of file DoubleBarrel_Base.c.

◆ OnEntry

◆ Second

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 28 of file DoubleBarrel_Base.c.