Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
sks.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  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.

◆ SKSStableStateID

Definition at line 8 of file sks.c.

Function Documentation

◆ GetCurrentStateID()

override int GetCurrentStateID ( )

Definition at line 21 of file sks.c.

◆ HasBullet()

override bool HasBullet ( )

Definition at line 22 of file sks.c.

◆ HasMagazine()

override bool HasMagazine ( )

Definition at line 23 of file sks.c.

◆ InitMuzzleArray()

override void InitMuzzleArray ( )

Definition at line 26 of file sks.c.

◆ IsJammed()

override bool IsJammed ( )

Definition at line 24 of file sks.c.

◆ IsRepairEnabled()

override bool IsRepairEnabled ( )

Definition at line 25 of file sks.c.

◆ OnEntry()

enum SKSStableStateID OnEntry ( WeaponEventBase  e)

Definition at line 19 of file sks.c.

◆ OnExit()

override void OnExit ( WeaponEventBase  e)

Definition at line 20 of file sks.c.

Variable Documentation

◆ OnEntry

class SKS_CLO_BU1 extends WeaponStableState OnEntry

◆ SKS_CLO_BU0

SKS_CLO_BU0 = 1

Definition at line 3 of file sks.c.

◆ SKS_CLO_BU1

SKS_CLO_BU1 = 2

Definition at line 4 of file sks.c.

◆ SKS_JAM_BU1

SKS_JAM_BU1 = 4

Definition at line 6 of file sks.c.

◆ SKS_OPN_BU0

SKS_OPN_BU0 = 3

Definition at line 5 of file sks.c.

◆ UNKNOWN

@ UNKNOWN = 0

Definition at line 2 of file sks.c.