|
Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
42 m_weapon.ProcessWeaponEvent(
new WeaponEventUnjammingTimeout(p));
47 if (hic.IsReloadOrMechanismContinuousUse())
51 #ifndef PLATFORM_CONSOLE
52 #ifndef SERVER_FOR_CONSOLE
57 m_weapon.ProcessWeaponEvent(
new WeaponEventUnjammingFailedTimeout(p));
82 m_type =
string.Empty;
89 int mi =
m_weapon.GetCurrentMuzzle();
112 m_type =
string.Empty;
118 if (!super.SaveCurrentFSMState(ctx))
121 if (!ctx.Write(m_damage))
123 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponUnjamming_Cartridge.SaveCurrentFSMState: cannot write m_damage for weapon=" +
m_weapon);
126 if (!ctx.Write(m_type))
128 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponUnjamming_Cartridge.SaveCurrentFSMState: cannot write m_type for weapon=" +
m_weapon);
136 if (!super.LoadCurrentFSMState(ctx, version))
139 if (!ctx.Read(m_damage))
141 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponUnjamming_Cartridge.LoadCurrentFSMState: cannot read m_damage for weapon=" +
m_weapon);
144 if (!ctx.Read(m_type))
146 Error(
"[wpnfsm] " +
Object.GetDebugName(
m_weapon) +
" WeaponUnjamming_Cartridge.LoadCurrentFSMState: cannot read m_type for weapon=" +
m_weapon);
175 ref WeaponUnjamming_Start
m_start;
176 ref WeaponUnjamming_Cartridge_W4T
m_eject;
177 ref WeaponUnjamming_W4T m_w4t;
178 ref WeaponChamberFromAttMag_W4T
m_chamber;
183 m_actionType = actionType;
189 m_w4t =
new WeaponUnjamming_W4T(
m_weapon,
this);
209 m_fsm.SetInitialState(
m_start);
override bool LoadCurrentFSMState(ParamsReadContext ctx, int version)
void Error(string err)
Messagebox with error message.
void ejectBulletAndStoreInMagazine(Weapon_Base weapon, int muzzleIndex, Magazine mag, DayZPlayer p)
override void OnExit(HandEventBase e)
void wpnDebugPrint(string s)
WeaponActionUnjammingTypes
ref WeaponEjectCasingMultiMuzzle m_eject
ref WeaponChambering_Base m_chamber
class WeaponFireWithEject extends WeaponFire m_dtAccumulator
class WeaponEndAction extends WeaponStartAction m_action
simple class starting animation action specified by m_action and m_actionType
Serialization general interface. Serializer API works with:
class WeaponChambering_Cartridge_InnerMag extends WeaponChambering_Base IsWaitingForActionFinish
ref WeaponStateBase m_start
override bool SaveCurrentFSMState(ParamsWriteContext ctx)
enum FSMTransition WeaponTransition
void WeaponGuardHasAmmo(Weapon_Base w=NULL)
signalize mechanism manipulation
represent weapon state base
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
weapon finite state machine
Super root of all classes in Enforce script.
HandStateEquipped OnEntry