41 int curr =
m_weapon.GetWeaponAnimState();
58 Human wpnOwner = Human.Cast(
m_weapon.GetHierarchyRootPlayer());
91 override bool IsIdle() {
return true; }
184 if (DayZGame.m_IsPreviewSpawn)
191 ErrorEx(
"Muzzle array validation has failed. Please set up the correct muzzle states by overriding InitMuzzleArray.", severity);
class WeaponGuardIsDestroyed extends WeaponGuardBase m_weapon
void fsmDebugSpam(string s)
class SSPFireout extends WeaponStableState OnEntry
int GetMuzzleStateCount()
bool IsChamberValid(int idx)
enum MuzzleState m_animState
void ValidateMuzzleArray()
Safety check and error message in case not set up correctly.
ref array< MuzzleState > m_muzzleHasBullet
bool IsSingleState()
Special one for when the weapon only has one singular state (like Magnum)
void WeaponStableState(Weapon_Base w=NULL, WeaponStateBase parent=NULL, int anim_state=-1)
bool IsChamberFiredOut(int idx)
bool IsWeaponOpen()
Whether the gun is open.
MuzzleState GetMuzzleState(int idx)
Get chamber state of the muzzle at index.
bool IsChamberFull(int idx)
Super root of all classes in Enforce script.
proto static native void StaticSetInitState(Human pHuman, int pFrameIdx)
just static version of SetInitState
proto native void SetInitState(int pFrameIndex)
static bool IsWeaponLogEnable()
signalize mechanism manipulation
override bool IsDischarged()
override void OnExit(WeaponEventBase e)
override void InitMuzzleArray()
override void OnEntry(WeaponEventBase e)
override bool HasBullet()
override int GetCurrentStateID()
override bool IsRepairEnabled()
override bool HasMagazine()
represents weapon's stable state (i.e. the basic states that the weapon will spend the most time in)
represent weapon state base
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.