Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
WeaponManager Class Reference

Protected Member Functions

void WeaponManager (PlayerBase player)
 
bool CanFire (Weapon_Base wpn)
 
bool CanAttachMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
 
bool CanSwapMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
 
bool CanDetachMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
 
bool CanLoadBullet (Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
 
bool CanLoadMultipleBullet (Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
 
bool CanUnjam (Weapon_Base wpn, bool reservationCheck=true)
 
bool CanEjectBullet (Weapon_Base wpn, bool reservationCheck=true)
 
void SetEjectBulletTryTimestamp ()
 
bool InventoryReservation (Magazine mag, InventoryLocation invLoc)
 
bool AttachMagazine (Magazine mag, ActionBase control_action=NULL)
 
bool DetachMagazine (InventoryLocation invLoc, ActionBase control_action=NULL)
 
bool SwapMagazine (Magazine mag, ActionBase control_action=NULL)
 
bool SwapMagazineEx (Magazine mag, InventoryLocation invLoc, ActionBase control_action=NULL)
 
bool LoadBullet (Magazine mag, ActionBase control_action=NULL)
 
bool LoadMultiBullet (Magazine mag, ActionBase control_action=NULL)
 
void LoadMultiBulletStop ()
 
bool Unjam (ActionBase control_action=NULL)
 
bool EjectBullet (ActionBase control_action=NULL)
 
bool CanEjectBulletVerified ()
 
bool EjectBulletVerified (ActionBase control_action=NULL)
 
bool SetNextMuzzleMode ()
 
void Fire (Weapon_Base wpn)
 

Protected Attributes

PlayerBase m_player
 
int m_LastAcknowledgmentID
 
int m_PendingWeaponActionAcknowledgmentID
 
Magazine m_PendingTargetMagazine
 
ref InventoryLocation m_TargetInventoryLocation
 
int m_PendingWeaponAction
 
ref InventoryLocation m_PendingInventoryLocation
 
bool m_canEnd
 
bool m_justStart
 
bool m_InProgress
 
bool m_IsEventSended
 
bool m_WantContinue
 
bool m_InIronSight
 
bool m_InOptic
 
bool m_readyToStart
 
Weapon_Base m_WeaponInHand
 
MagazineStorage m_MagazineInHand
 
ActionBase m_ControlAction
 
int m_ForceEjectBulletTimestamp
 
const int FORCE_EJECT_BULLET_TIMEOUT = 2000
 
ref array< Magazine > m_MagazinePilesInInventory
 
ref array< MagazineStorage > m_MagazineStorageInInventory
 
ref array< Magazine > m_SuitableMagazines
 
Magazine m_PreparedMagazine
 
float m_NewJamChance
 
bool m_WaitToSyncJamChance
 
int m_AnimationRefreshCooldown
 

Detailed Description

Definition at line 1 of file weaponmanager.c.

Constructor & Destructor Documentation

◆ WeaponManager()

void WeaponManager::WeaponManager ( PlayerBase player)
protected

Definition at line 45 of file weaponmanager.c.

Member Function Documentation

◆ AttachMagazine()

bool WeaponManager::AttachMagazine ( Magazine mag,
ActionBase control_action = NULL )
protected

Definition at line 397 of file weaponmanager.c.

◆ CanAttachMagazine()

bool WeaponManager::CanAttachMagazine ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
protected

Definition at line 91 of file weaponmanager.c.

◆ CanDetachMagazine()

bool WeaponManager::CanDetachMagazine ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
protected

Definition at line 180 of file weaponmanager.c.

◆ CanEjectBullet()

bool WeaponManager::CanEjectBullet ( Weapon_Base wpn,
bool reservationCheck = true )
protected

Definition at line 310 of file weaponmanager.c.

◆ CanEjectBulletVerified()

bool WeaponManager::CanEjectBulletVerified ( )
protected

Definition at line 447 of file weaponmanager.c.

◆ CanFire()

bool WeaponManager::CanFire ( Weapon_Base wpn)
protected

Definition at line 79 of file weaponmanager.c.

◆ CanLoadBullet()

bool WeaponManager::CanLoadBullet ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
protected

Definition at line 200 of file weaponmanager.c.

◆ CanLoadMultipleBullet()

bool WeaponManager::CanLoadMultipleBullet ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
protected

Definition at line 231 of file weaponmanager.c.

◆ CanSwapMagazine()

bool WeaponManager::CanSwapMagazine ( Weapon_Base wpn,
Magazine mag,
bool reservationCheck = true )
protected

Definition at line 132 of file weaponmanager.c.

◆ CanUnjam()

bool WeaponManager::CanUnjam ( Weapon_Base wpn,
bool reservationCheck = true )
protected

Definition at line 286 of file weaponmanager.c.

◆ DetachMagazine()

bool WeaponManager::DetachMagazine ( InventoryLocation invLoc,
ActionBase control_action = NULL )
protected

Definition at line 402 of file weaponmanager.c.

◆ EjectBullet()

bool WeaponManager::EjectBullet ( ActionBase control_action = NULL)
protected

Definition at line 442 of file weaponmanager.c.

◆ EjectBulletVerified()

bool WeaponManager::EjectBulletVerified ( ActionBase control_action = NULL)
protected

Definition at line 461 of file weaponmanager.c.

◆ Fire()

void WeaponManager::Fire ( Weapon_Base wpn)
protected

Definition at line 484 of file weaponmanager.c.

◆ InventoryReservation()

bool WeaponManager::InventoryReservation ( Magazine mag,
InventoryLocation invLoc )
protected

Definition at line 338 of file weaponmanager.c.

◆ LoadBullet()

bool WeaponManager::LoadBullet ( Magazine mag,
ActionBase control_action = NULL )
protected

Definition at line 422 of file weaponmanager.c.

◆ LoadMultiBullet()

bool WeaponManager::LoadMultiBullet ( Magazine mag,
ActionBase control_action = NULL )
protected

Definition at line 427 of file weaponmanager.c.

◆ LoadMultiBulletStop()

void WeaponManager::LoadMultiBulletStop ( )
protected

Definition at line 432 of file weaponmanager.c.

◆ SetEjectBulletTryTimestamp()

void WeaponManager::SetEjectBulletTryTimestamp ( )
protected

Definition at line 333 of file weaponmanager.c.

◆ SetNextMuzzleMode()

bool WeaponManager::SetNextMuzzleMode ( )
protected

Definition at line 479 of file weaponmanager.c.

◆ SwapMagazine()

bool WeaponManager::SwapMagazine ( Magazine mag,
ActionBase control_action = NULL )
protected

Definition at line 407 of file weaponmanager.c.

◆ SwapMagazineEx()

bool WeaponManager::SwapMagazineEx ( Magazine mag,
InventoryLocation invLoc,
ActionBase control_action = NULL )
protected

Definition at line 417 of file weaponmanager.c.

◆ Unjam()

bool WeaponManager::Unjam ( ActionBase control_action = NULL)
protected

Definition at line 437 of file weaponmanager.c.

Member Data Documentation

◆ FORCE_EJECT_BULLET_TIMEOUT

const int WeaponManager::FORCE_EJECT_BULLET_TIMEOUT = 2000
protected

Definition at line 28 of file weaponmanager.c.

◆ m_AnimationRefreshCooldown

int WeaponManager::m_AnimationRefreshCooldown
protected

Definition at line 43 of file weaponmanager.c.

◆ m_canEnd

bool WeaponManager::m_canEnd
protected

Definition at line 15 of file weaponmanager.c.

◆ m_ControlAction

ActionBase WeaponManager::m_ControlAction
protected

Definition at line 25 of file weaponmanager.c.

◆ m_ForceEjectBulletTimestamp

int WeaponManager::m_ForceEjectBulletTimestamp
protected

Definition at line 26 of file weaponmanager.c.

◆ m_InIronSight

bool WeaponManager::m_InIronSight
protected

Definition at line 20 of file weaponmanager.c.

◆ m_InOptic

bool WeaponManager::m_InOptic
protected

Definition at line 21 of file weaponmanager.c.

◆ m_InProgress

bool WeaponManager::m_InProgress
protected

Definition at line 17 of file weaponmanager.c.

◆ m_IsEventSended

bool WeaponManager::m_IsEventSended
protected

Definition at line 18 of file weaponmanager.c.

◆ m_justStart

bool WeaponManager::m_justStart
protected

Definition at line 16 of file weaponmanager.c.

◆ m_LastAcknowledgmentID

int WeaponManager::m_LastAcknowledgmentID
protected

Definition at line 7 of file weaponmanager.c.

◆ m_MagazineInHand

MagazineStorage WeaponManager::m_MagazineInHand
protected

Definition at line 24 of file weaponmanager.c.

◆ m_MagazinePilesInInventory

ref array<Magazine> WeaponManager::m_MagazinePilesInInventory
protected

Definition at line 33 of file weaponmanager.c.

◆ m_MagazineStorageInInventory

ref array<MagazineStorage> WeaponManager::m_MagazineStorageInInventory
protected

Definition at line 34 of file weaponmanager.c.

◆ m_NewJamChance

float WeaponManager::m_NewJamChance
protected

Definition at line 39 of file weaponmanager.c.

◆ m_PendingInventoryLocation

ref InventoryLocation WeaponManager::m_PendingInventoryLocation
protected

Definition at line 13 of file weaponmanager.c.

◆ m_PendingTargetMagazine

Magazine WeaponManager::m_PendingTargetMagazine
protected

Definition at line 10 of file weaponmanager.c.

◆ m_PendingWeaponAction

int WeaponManager::m_PendingWeaponAction
protected

Definition at line 12 of file weaponmanager.c.

◆ m_PendingWeaponActionAcknowledgmentID

int WeaponManager::m_PendingWeaponActionAcknowledgmentID
protected

Definition at line 9 of file weaponmanager.c.

◆ m_player

PlayerBase WeaponManager::m_player
protected

Definition at line 5 of file weaponmanager.c.

◆ m_PreparedMagazine

Magazine WeaponManager::m_PreparedMagazine
protected

Definition at line 36 of file weaponmanager.c.

◆ m_readyToStart

bool WeaponManager::m_readyToStart
protected

Definition at line 22 of file weaponmanager.c.

◆ m_SuitableMagazines

ref array<Magazine> WeaponManager::m_SuitableMagazines
protected

Definition at line 35 of file weaponmanager.c.

◆ m_TargetInventoryLocation

ref InventoryLocation WeaponManager::m_TargetInventoryLocation
protected

Definition at line 11 of file weaponmanager.c.

◆ m_WaitToSyncJamChance

bool WeaponManager::m_WaitToSyncJamChance
protected

Definition at line 40 of file weaponmanager.c.

◆ m_WantContinue

bool WeaponManager::m_WantContinue
protected

Definition at line 19 of file weaponmanager.c.

◆ m_WeaponInHand

Weapon_Base WeaponManager::m_WeaponInHand
protected

Definition at line 23 of file weaponmanager.c.


The documentation for this class was generated from the following file: