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

Enumerations

enum  FLAREAnimState { COCKED = 0 , UNCOCKED = 1 }
 
enum  FLAREStableStateID
 

Functions

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

Variables

 UNKNOWN = 0
 
 Empty = 1
 
 Fireout = 2
 
 Loaded = 3
 
class FLAREFireout extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ FLAREAnimState

Enumerator
COCKED 

default weapon state, closed and discharged

UNCOCKED 

default weapon state, closed and discharged

Definition at line 1 of file Flaregun.c.

2{
3 COCKED = 0,
4 UNCOCKED = 1,
5};
@ UNCOCKED
default weapon state, closed and discharged
Definition Flaregun.c:4
@ COCKED
default weapon state, closed and discharged
Definition Flaregun.c:3

◆ FLAREStableStateID

Definition at line 7 of file Flaregun.c.

8{
9 UNKNOWN = 0,
10 Empty = 1,
11 Fireout = 2,
12 Loaded = 3,
13}
UNKNOWN
Definition Flaregun.c:18
Empty
Definition Flaregun.c:19
Fireout
Definition Flaregun.c:20
Loaded
Definition Flaregun.c:21

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 19 of file Flaregun.c.

19{ return FLAREStableStateID.Empty; }
FLAREStableStateID
Definition Flaregun.c:8

◆ HasBullet()

override bool HasBullet ( )

Definition at line 20 of file Flaregun.c.

20{ return false; }

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 21 of file Flaregun.c.

21{ return false; }

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 25 of file Flaregun.c.

MuzzleState
ref array< MuzzleState > m_muzzleHasBullet

References m_muzzleHasBullet.

◆ IsBoltOpen()

override bool IsBoltOpen ( )

Definition at line 23 of file Flaregun.c.

23{ return false; }

◆ IsJammed()

override bool IsJammed ( )

Definition at line 22 of file Flaregun.c.

22{ return false; }

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 24 of file Flaregun.c.

24{ return true; }

◆ OnEntry()

Definition at line 1 of file Flaregun.c.

17{ if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " { Empty E"); super.OnEntry(e); }
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 18 of file Flaregun.c.

18{ super.OnExit(e); if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " } Empty E"); }

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

Variable Documentation

◆ Empty

@ Empty = 1

Definition at line 19 of file Flaregun.c.

◆ Fireout

Fireout = 2

Definition at line 20 of file Flaregun.c.

◆ Loaded

@ Loaded = 3

Definition at line 21 of file Flaregun.c.

◆ OnEntry

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 18 of file Flaregun.c.