DayZ 1.24
Loading...
Searching...
No Matches
SKS.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  Rifle_Base
 base for rifles @NOTE name copies config base class More...
 

Enumerations

enum  SKSAnimState { DEFAULT = 0 , OPENED = 1 , JAMMED = 2 }
 
enum  SKSStableStateID
 

Functions

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

 UNKNOWN = 0
 
 SKS_CLO_BU0 = 1
 
 SKS_CLO_BU1 = 2
 
 SKS_OPN_BU0 = 3
 
 SKS_JAM_BU1 = 4
 
class SKS_CLO_BU1 extends WeaponStableState OnEntry
 

Enumeration Type Documentation

◆ SKSAnimState

Enumerator
DEFAULT 

default weapon state, closed and discharged

OPENED 
JAMMED 

Definition at line 1 of file SKS.c.

2{
3 DEFAULT = 0,
4 OPENED = 1,
5 JAMMED = 2,
6};
@ OPENED
Definition SKS.c:4
@ DEFAULT
default weapon state, closed and discharged
Definition SKS.c:3
@ JAMMED
Definition SKS.c:5

◆ SKSStableStateID

Definition at line 8 of file SKS.c.

9{
10 UNKNOWN = 0,
11 SKS_CLO_BU0 = 1,
12 SKS_CLO_BU1 = 2,
13 SKS_OPN_BU0 = 3,
14 SKS_JAM_BU1 = 4
15}
UNKNOWN
Definition SKS.c:20
SKS_JAM_BU1
Definition SKS.c:24
SKS_CLO_BU0
Definition SKS.c:21
SKS_CLO_BU1
Definition SKS.c:22
SKS_OPN_BU0
Definition SKS.c:23

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 21 of file SKS.c.

21{ return SKSStableStateID.SKS_CLO_BU0; }
SKSStableStateID
Definition SKS.c:9

◆ HasBullet()

override bool HasBullet ( )

Definition at line 22 of file SKS.c.

22{ return false; }

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 23 of file SKS.c.

23{ return false; }

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 26 of file SKS.c.

MuzzleState
ref array< MuzzleState > m_muzzleHasBullet

References m_muzzleHasBullet.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 24 of file SKS.c.

24{ return false; }

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 25 of file SKS.c.

25{ return true; }

◆ OnEntry()

Definition at line 1 of file SKS.c.

19{ if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " { close nobull"); 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 20 of file SKS.c.

20{ super.OnExit(e); if (LogManager.IsWeaponLogEnable()) wpnPrint("[wpnfsm] " + Object.GetDebugName(m_weapon) + " } close nobull"); }

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

Variable Documentation

◆ OnEntry

◆ SKS_CLO_BU0

SKS_CLO_BU0 = 1

Definition at line 21 of file SKS.c.

Referenced by Rifle_Base::InitStateMachine().

◆ SKS_CLO_BU1

SKS_CLO_BU1 = 2

Definition at line 22 of file SKS.c.

Referenced by Rifle_Base::InitStateMachine().

◆ SKS_JAM_BU1

SKS_JAM_BU1 = 4

Definition at line 24 of file SKS.c.

Referenced by Rifle_Base::InitStateMachine().

◆ SKS_OPN_BU0

SKS_OPN_BU0 = 3

Definition at line 23 of file SKS.c.

Referenced by Rifle_Base::InitStateMachine().

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 20 of file SKS.c.