10 ref WeaponCharging_CK
m_onCK;
11 ref WeaponChamberFromAttMag_W4T
m_chamber;
81 Magazine m_dstMagazine;
89 int mi =
m_weapon.GetCurrentMuzzle();
109 if (!super.SaveCurrentFSMState(ctx))
114 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponEjectBullet_Cartridge.SaveCurrentFSMState: cannot write m_dstMagazine for weapon=" +
m_weapon);
122 if (!super.LoadCurrentFSMState(ctx, version))
127 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponEjectBullet_Cartridge.LoadCurrentFSMState: cannot read m_dstMagazine for weapon=" +
m_weapon);
137 Magazine m_dstMagazine;
145 for(
int i = 0; i <
m_weapon.GetMuzzleCount(); i++)
169 if (!super.SaveCurrentFSMState(ctx))
174 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponEjectBullet_Cartridge.SaveCurrentFSMState: cannot write m_dstMagazine for weapon=" +
m_weapon);
182 if (!super.LoadCurrentFSMState(ctx, version))
187 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponEjectBullet_Cartridge.LoadCurrentFSMState: cannot read m_dstMagazine for weapon=" +
m_weapon);
209 ref WeaponCharging_Start
m_start;
210 ref WeaponEjectBullet_Cartridge_W4T
m_onBE;
213 ref WeaponCharging_CK
m_onCK;
284 ref WeaponCharging_Start
m_start;
285 ref WeaponEjectBullet_Cartridge_W4T m_onBE;
286 ref WeaponEjectCasing_W4T m_onBEFireOut;
287 ref BulletHide_W4T m_hideB;
288 ref WeaponCharging_CK m_onCK;
289 ref WeaponChamberFromAttMag_W4T
m_chamber;
355 ref WeaponCharging_Start
m_start;
356 ref WeaponCharging_CK m_onCK;
void WeaponGuardHasAmmo(Weapon_Base w=NULL)
enum FSMTransition WeaponTransition
ref WeaponStateBase m_start
class WeaponEndAction extends WeaponStartAction m_action
ref WeaponChambering_Base m_chamber
proto bool Write(void value_out)
proto bool Read(void value_in)
charging of weapon without ammo to be chambered
override bool IsWaitingForActionFinish()
signalize mechanism manipulation
weapon finite state machine
override bool IsWaitingForActionFinish()
simple class starting animation action specified by m_action and m_actionType
ref BulletHide_W4T m_hideB
ref WeaponEjectAndChamberFromAttMag m_ejectChamber
int m_actionType
action to be played
void WeaponStateBase(Weapon_Base w=NULL, WeaponStateBase parent=NULL)
internal state id used for load/restore
void WeaponChargingMultiple(Weapon_Base w=NULL, WeaponStateBase parent=NULL, WeaponActions action=WeaponActions.NONE, int actionType=-1)
ref WeaponEjectBullet_Cartridge_W4T m_onBE
ref WeaponFSM m_fsm
hierarchical parent state of this state (or null)
ref WeaponChambering_Cartridge m_chamber
override bool IsWaitingForActionFinish()
override void OnEntry(WeaponEventBase e)
void WeaponChargingInnerMag(Weapon_Base w=NULL, WeaponStateBase parent=NULL, WeaponActions action=WeaponActions.NONE, int actionType=-1)
ref WeaponCharging_CK m_onCK
ref WeaponStateBase m_start
source of the cartridge
override bool LoadCurrentFSMState(ParamsReadContext ctx, int version)
ref WeaponEjectCasing m_eject
ref WeaponEjectCasing_W4T m_onBEFireOut
void WeaponEjectAllMuzzles(Weapon_Base w=NULL, WeaponStateBase parent=NULL)
override void OnAbort(WeaponEventBase e)
void WeaponChargingStretch(Weapon_Base w=NULL, WeaponStateBase parent=NULL, WeaponActions action=WeaponActions.NONE, int actionType=-1)
void WeaponCharging(Weapon_Base w=NULL, WeaponStateBase parent=NULL, WeaponActions action=WeaponActions.NONE, int actionType=-1)
override void OnExit(WeaponEventBase e)
override bool SaveCurrentFSMState(ParamsWriteContext ctx)
represent weapon state base
Serializer ParamsReadContext
Serializer ParamsWriteContext
void Error(string err)
Messagebox with error message.
void ejectBulletAndStoreInMagazine(Weapon_Base weapon, int muzzleIndex, Magazine mag, DayZPlayer p)