DayZ 1.24
Loading...
Searching...
No Matches
Weapon_Base.c File Reference

Go to the source code of this file.

Classes

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
}
 

Typedef Documentation

◆ WeaponActionBase

typedef enum FSMTransition WeaponActionBase

◆ WeaponEventBase

typedef enum FSMTransition WeaponEventBase

◆ WeaponTransition

Enumeration Type Documentation

◆ FSMTransition

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

12{
14 NONE = 0,
16 CHAMBER = 1,
18 CHAMBER_RNG = 2,
22 QUANTITY_RNG = 8,
24 AMMO_MAG_RNG = 16,
29}
30
@ AMMO_CHAMBER_RNG
Fully randomizes the ammo type instead of picking one random for all chambers (needs to have type as ...
Definition Weapon_Base.c:26
@ CHAMBER
Chambers bullets.
Definition Weapon_Base.c:16
@ CHAMBER_RNG_SPORADIC
Maybe chambers bullets (full random) example: 0 1 0 0 1 1.
Definition Weapon_Base.c:20
@ MAX_CAPACITY_MAG
Instead of randomizing when type is empty, it looks for the one which has the highest capacity.
Definition Weapon_Base.c:28
@ QUANTITY_RNG
Randomizes the quantity of the bullets in the spawned magazine.
Definition Weapon_Base.c:22
@ CHAMBER_RNG
Maybe chambers bullets (sequential rng) example: 1 1 1 0 0 0.
Definition Weapon_Base.c:18
@ NONE
Attached magazine will be full and no round will be chambered.
Definition Weapon_Base.c:14
@ AMMO_MAG_RNG
Fully randomizes the ammo type instead of picking one random for the entire mag (needs to have type a...
Definition Weapon_Base.c:24
enum FSMTransition WeaponTransition