Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
weapon_base.c File Reference

Go to the source code of this file.

Data Structures

class  AbilityRecord
 pair ( action, actionType ) More...
 
class  Weapon
 script counterpart to engine's class Weapon More...
 

Typedefs

typedef enum FSMTransition WeaponEventBase
 
typedef enum FSMTransition WeaponActionBase
 
typedef enum FSMTransition WeaponTransition
 

Enumerations

enum  FSMTransition {
  NONE = 0, CHAMBER = 1, CHAMBER_RNG = 2, CHAMBER_RNG_SPORADIC = 4,
  QUANTITY_RNG = 8, AMMO_MAG_RNG = 16, AMMO_CHAMBER_RNG = 32, MAX_CAPACITY_MAG = 64
}
 

Variables

class AbilityRecord SmokeSimulation_Red
 

Typedef Documentation

◆ WeaponActionBase

◆ WeaponEventBase

◆ WeaponTransition

Enumeration Type Documentation

◆ FSMTransition

Enumerator
NONE 

Attached magazine will be full and no round will be chambered.

CHAMBER 

Chambers bullets.

CHAMBER_RNG 

Maybe chambers bullets (sequential rng) example: 1 1 1 0 0 0.

CHAMBER_RNG_SPORADIC 

Maybe chambers bullets (full random) example: 0 1 0 0 1 1.

QUANTITY_RNG 

Randomizes the quantity of the bullets in the spawned magazine.

AMMO_MAG_RNG 

Fully randomizes the ammo type instead of picking one random for the entire mag (needs to have type as empty string)

AMMO_CHAMBER_RNG 

Fully randomizes the ammo type instead of picking one random for all chambers (needs to have type as empty string)

MAX_CAPACITY_MAG 

Instead of randomizing when type is empty, it looks for the one which has the highest capacity.

Definition at line 11 of file weapon_base.c.

Variable Documentation

◆ SmokeSimulation_Red

class AbilityRecord SmokeSimulation_Red