![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| void | WeaponManager (PlayerBase player) |
| bool | AttachMagazine (Magazine mag, ActionBase control_action=NULL) |
| bool | CanAttachMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true) |
| bool | CanDetachMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true) |
| bool | CanEjectBullet (Weapon_Base wpn, bool reservationCheck=true) |
| bool | CanEjectBulletVerified () |
| bool | CanFire (Weapon_Base wpn) |
| bool | CanLoadBullet (Weapon_Base wpn, Magazine mag, bool reservationCheck=true) |
| bool | CanLoadMultipleBullet (Weapon_Base wpn, Magazine mag, bool reservationCheck=true) |
| bool | CanSwapMagazine (Weapon_Base wpn, Magazine mag, bool reservationCheck=true) |
| bool | CanUnjam (Weapon_Base wpn, bool reservationCheck=true) |
| bool | DetachMagazine (InventoryLocation invLoc, ActionBase control_action=NULL) |
| bool | EjectBullet (ActionBase control_action=NULL) |
| bool | EjectBulletVerified (ActionBase control_action=NULL) |
| void | Fire (Weapon_Base wpn) |
| bool | InventoryReservation (Magazine mag, InventoryLocation invLoc) |
| bool | LoadBullet (Magazine mag, ActionBase control_action=NULL) |
| bool | LoadMultiBullet (Magazine mag, ActionBase control_action=NULL) |
| void | LoadMultiBulletStop () |
| void | SetEjectBulletTryTimestamp () |
| bool | SetNextMuzzleMode () |
| bool | SwapMagazine (Magazine mag, ActionBase control_action=NULL) |
| bool | SwapMagazineEx (Magazine mag, InventoryLocation invLoc, ActionBase control_action=NULL) |
| bool | Unjam (ActionBase control_action=NULL) |
Protected Attributes | |
| const int | FORCE_EJECT_BULLET_TIMEOUT = 2000 |
| int | m_AnimationRefreshCooldown |
| bool | m_canEnd |
| ActionBase | m_ControlAction |
| int | m_ForceEjectBulletTimestamp |
| bool | m_InIronSight |
| bool | m_InOptic |
| bool | m_InProgress |
| bool | m_IsEventSended |
| bool | m_justStart |
| int | m_LastAcknowledgmentID |
| MagazineStorage | m_MagazineInHand |
| ref array< Magazine > | m_MagazinePilesInInventory |
| ref array< MagazineStorage > | m_MagazineStorageInInventory |
| float | m_NewJamChance |
| ref InventoryLocation | m_PendingInventoryLocation |
| Magazine | m_PendingTargetMagazine |
| int | m_PendingWeaponAction |
| int | m_PendingWeaponActionAcknowledgmentID |
| PlayerBase | m_player |
| Magazine | m_PreparedMagazine |
| bool | m_readyToStart |
| ref array< Magazine > | m_SuitableMagazines |
| ref InventoryLocation | m_TargetInventoryLocation |
| bool | m_WaitToSyncJamChance |
| bool | m_WantContinue |
| Weapon_Base | m_WeaponInHand |
Private Attributes | |
| const float | MAX_DROP_MAGAZINE_DISTANCE_SQ = 4 |
Definition at line 1 of file weaponmanager.c.
|
inlineprotected |
Definition at line 45 of file weaponmanager.c.
References m_AnimationRefreshCooldown, m_canEnd, m_ControlAction, m_ForceEjectBulletTimestamp, m_InProgress, m_IsEventSended, m_LastAcknowledgmentID, m_MagazineInHand, m_MagazinePilesInInventory, m_MagazineStorageInInventory, m_NewJamChance, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, m_player, m_PreparedMagazine, m_readyToStart, m_SuitableMagazines, m_WaitToSyncJamChance, m_WantContinue, and m_WeaponInHand.
|
inlineprotected |
Definition at line 398 of file weaponmanager.c.
References AT_WPN_ATTACH_MAGAZINE, and StartAction().
|
inlineprotected |
Definition at line 91 of file weaponmanager.c.
References Class::CastTo(), InventoryLocation::GetParent(), and m_player.
Referenced by ManBase::GetMagazineToReload().
|
inlineprotected |
Definition at line 180 of file weaponmanager.c.
References m_player.
|
inlineprotected |
Definition at line 310 of file weaponmanager.c.
References Weapon_Base::CanEjectBullet(), and m_player.
|
inlineprotected |
Definition at line 448 of file weaponmanager.c.
References FORCE_EJECT_BULLET_TIMEOUT, g_Game, m_ForceEjectBulletTimestamp, and m_WeaponInHand.
|
inlineprotected |
Definition at line 79 of file weaponmanager.c.
References m_player.
|
inlineprotected |
Definition at line 200 of file weaponmanager.c.
References Weapon_Base::CanChamberBullet(), and m_player.
Referenced by ManBase::GetMagazineToReload().
|
inlineprotected |
Definition at line 231 of file weaponmanager.c.
References Weapon_Base::CanChamberBullet(), and m_player.
|
inlineprotected |
Definition at line 132 of file weaponmanager.c.
References GameInventory::CanForceSwapEntitiesEx(), GameInventory::CanSwapEntitiesEx(), Class::CastTo(), InventoryLocation::GetParent(), and m_player.
Referenced by ManBase::GetMagazineToReload().
|
inlineprotected |
Definition at line 286 of file weaponmanager.c.
References m_player.
|
inlineprivate |
Definition at line 1202 of file weaponmanager.c.
Referenced by OnMagazineInventoryEnter().
|
inlineprivate |
Definition at line 1044 of file weaponmanager.c.
References m_AnimationRefreshCooldown, m_WeaponInHand, and RefreshAnimationState().
|
inlineprotected |
Definition at line 403 of file weaponmanager.c.
References AT_WPN_DETACH_MAGAZINE, and StartAction().
|
inlineprotected |
Definition at line 443 of file weaponmanager.c.
References AT_WPN_EJECT_BULLET, and StartAction().
|
inlineprotected |
Definition at line 462 of file weaponmanager.c.
References AT_WPN_EJECT_BULLET, g_Game, m_ForceEjectBulletTimestamp, m_WeaponInHand, and StartAction().
|
inlineprotected |
Definition at line 485 of file weaponmanager.c.
References m_player.
|
inlineprivate |
Definition at line 1335 of file weaponmanager.c.
References m_WeaponInHand.
|
inlineprivate |
Definition at line 1101 of file weaponmanager.c.
References m_SuitableMagazines.
Referenced by FirearmActionLoadMultiBulletQuick::Start().
|
inlineprivate |
Definition at line 1078 of file weaponmanager.c.
References m_SuitableMagazines.
|
inlineprotected |
Definition at line 338 of file weaponmanager.c.
References GameInventory::AddInventoryReservationEx(), GameInventory::c_InventoryReservationTimeoutMS, GameInventory::ClearInventoryReservationEx(), InventoryLocation::GetItem(), GameInventory::HasInventoryReservation(), m_PendingInventoryLocation, m_PendingTargetMagazine, m_player, m_TargetInventoryLocation, and m_WeaponInHand.
Referenced by StartAction().
|
inlineprivate |
Definition at line 874 of file weaponmanager.c.
References m_InProgress.
|
inlineprotected |
Definition at line 423 of file weaponmanager.c.
References AT_WPN_LOAD_BULLET, and StartAction().
|
inlineprotected |
Definition at line 428 of file weaponmanager.c.
References AT_WPN_LOAD_MULTI_BULLETS_START, and StartAction().
|
inlineprotected |
Definition at line 433 of file weaponmanager.c.
References m_InProgress, and m_WantContinue.
|
inlineprivate |
Definition at line 630 of file weaponmanager.c.
References AT_WPN_ATTACH_MAGAZINE, AT_WPN_DETACH_MAGAZINE, AT_WPN_EJECT_BULLET, AT_WPN_LOAD_BULLET, AT_WPN_LOAD_MULTI_BULLETS_START, AT_WPN_SET_NEXT_MUZZLE_MODE, AT_WPN_SWAP_MAGAZINE, AT_WPN_UNJAM, Error(), g_Game, InventoryLocation::GetItem(), INPUT_UDT_WEAPON_ACTION, InventoryLocation::IsValid(), m_InProgress, m_IsEventSended, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, m_player, Serializer::Read(), InventoryLocation::ReadFromContext(), DayZPlayerSyncJunctures::SendWeaponActionAcknowledgment(), and InventoryLocation::SetAttachment().
|
inlineprivate |
Definition at line 1329 of file weaponmanager.c.
References m_WeaponInHand.
|
inlineprivate |
Definition at line 1192 of file weaponmanager.c.
References OnMagazineInventoryExit().
|
inlineprivate |
Definition at line 1197 of file weaponmanager.c.
References OnMagazineInventoryEnter().
|
inlineprivate |
Definition at line 1117 of file weaponmanager.c.
References CompareMagazinesSuitability(), m_MagazinePilesInInventory, m_MagazineStorageInInventory, and SetSutableMagazines().
Referenced by OnMagazineDetach().
|
inlineprivate |
Definition at line 1175 of file weaponmanager.c.
References m_MagazinePilesInInventory, m_MagazineStorageInInventory, and m_SuitableMagazines.
Referenced by OnMagazineAttach().
|
inlineprivate |
Definition at line 579 of file weaponmanager.c.
References GameInventory::ClearInventoryReservationEx(), g_Game, m_InProgress, m_NewJamChance, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, m_player, m_readyToStart, m_TargetInventoryLocation, Serializer::Read(), DayZPlayerSyncJunctures::SJ_WEAPON_ACTION_ACK_ACCEPT, DayZPlayerSyncJunctures::SJ_WEAPON_ACTION_ACK_REJECT, and DayZPlayerSyncJunctures::SJ_WEAPON_SET_JAMMING_CHANCE.
|
inlineprivate |
Definition at line 997 of file weaponmanager.c.
References GameInventory::ClearInventoryReservationEx(), g_Game, m_ControlAction, m_InProgress, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, m_player, m_readyToStart, m_TargetInventoryLocation, m_WantContinue, and InventoryLocation::SetHands().
Referenced by Refresh(), StartPendingAction(), and Update().
|
inlineprivate |
Definition at line 1345 of file weaponmanager.c.
References GameInventory::CanForceSwapEntitiesEx(), GameInventory::CanSwapEntitiesEx(), and m_player.
Referenced by SwapMagazine().
|
inlineprivate |
Definition at line 884 of file weaponmanager.c.
References OnWeaponActionEnd().
|
inlineprivate |
Definition at line 1056 of file weaponmanager.c.
References m_player, m_WeaponInHand, and HumanCommandWeapons::SetInitState().
Referenced by DelayedRefreshAnimationState(), and Update().
|
inlineprotected |
Definition at line 333 of file weaponmanager.c.
References g_Game, and m_ForceEjectBulletTimestamp.
|
inlineprotected |
Definition at line 480 of file weaponmanager.c.
References AT_WPN_SET_NEXT_MUZZLE_MODE, and StartAction().
|
inlineprivate |
Definition at line 879 of file weaponmanager.c.
References m_InProgress.
|
inlineprivate |
Definition at line 1268 of file weaponmanager.c.
References m_MagazineInHand, m_MagazinePilesInInventory, m_MagazineStorageInInventory, m_PreparedMagazine, m_SuitableMagazines, and m_WeaponInHand.
Referenced by OnMagazineInventoryEnter(), SortMagazineAfterLoad(), and Update().
|
inlineprivate |
Definition at line 1207 of file weaponmanager.c.
References m_MagazinePilesInInventory, m_MagazineStorageInInventory, and SetSutableMagazines().
|
inlineprivate |
Definition at line 772 of file weaponmanager.c.
References ScriptInputUserData::CanStoreInputUserData(), g_Game, InventoryReservation(), m_ControlAction, m_InProgress, m_IsEventSended, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_readyToStart, StartPendingAction(), and Synchronize().
Referenced by AttachMagazine(), DetachMagazine(), EjectBullet(), EjectBulletVerified(), LoadBullet(), LoadMultiBullet(), SetNextMuzzleMode(), SwapMagazine(), SwapMagazineEx(), and Unjam().
|
inlineprivate |
Definition at line 809 of file weaponmanager.c.
References AT_WPN_ATTACH_MAGAZINE, AT_WPN_DETACH_MAGAZINE, AT_WPN_EJECT_BULLET, AT_WPN_LOAD_BULLET, AT_WPN_LOAD_MULTI_BULLETS_END, AT_WPN_LOAD_MULTI_BULLETS_START, AT_WPN_SET_NEXT_MUZZLE_MODE, AT_WPN_SWAP_MAGAZINE, AT_WPN_UNJAM, Error(), m_canEnd, m_InProgress, m_IsEventSended, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_player, m_WantContinue, m_WeaponInHand, and OnWeaponActionEnd().
Referenced by StartAction(), and Update().
|
inlineprotected |
Definition at line 408 of file weaponmanager.c.
References AT_WPN_SWAP_MAGAZINE, m_WeaponInHand, PrepareInventoryLocationForMagazineSwap(), and StartAction().
|
inlineprotected |
Definition at line 418 of file weaponmanager.c.
References AT_WPN_SWAP_MAGAZINE, and StartAction().
|
inlineprivate |
Definition at line 520 of file weaponmanager.c.
References AT_WPN_ATTACH_MAGAZINE, AT_WPN_DETACH_MAGAZINE, AT_WPN_EJECT_BULLET, AT_WPN_LOAD_BULLET, AT_WPN_LOAD_MULTI_BULLETS_START, AT_WPN_SWAP_MAGAZINE, AT_WPN_UNJAM, g_Game, INPUT_UDT_WEAPON_ACTION, m_LastAcknowledgmentID, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, ScriptInputUserData::Send(), and Serializer::Write().
Referenced by StartAction().
|
inlineprotected |
Definition at line 438 of file weaponmanager.c.
References AT_WPN_UNJAM, and StartAction().
|
inlineprivate |
Definition at line 889 of file weaponmanager.c.
References Math::AbsFloat(), g_Game, m_AnimationRefreshCooldown, m_canEnd, m_InIronSight, m_InOptic, m_InProgress, m_IsEventSended, m_justStart, m_MagazineInHand, m_NewJamChance, m_player, m_readyToStart, m_SuitableMagazines, m_WaitToSyncJamChance, m_WeaponInHand, OnWeaponActionEnd(), RefreshAnimationState(), DayZPlayerSyncJunctures::SendWeaponJamChance(), SetSutableMagazines(), and StartPendingAction().
|
inlineprivate |
Definition at line 1073 of file weaponmanager.c.
References m_WantContinue.
|
protected |
Definition at line 28 of file weaponmanager.c.
Referenced by CanEjectBulletVerified().
|
protected |
Definition at line 43 of file weaponmanager.c.
Referenced by WeaponManager(), DelayedRefreshAnimationState(), and Update().
|
protected |
Definition at line 15 of file weaponmanager.c.
Referenced by WeaponManager(), StartPendingAction(), and Update().
|
protected |
Definition at line 25 of file weaponmanager.c.
Referenced by WeaponManager(), OnWeaponActionEnd(), and StartAction().
|
protected |
Definition at line 26 of file weaponmanager.c.
Referenced by WeaponManager(), CanEjectBulletVerified(), EjectBulletVerified(), and SetEjectBulletTryTimestamp().
|
protected |
Definition at line 20 of file weaponmanager.c.
Referenced by Update().
|
protected |
Definition at line 21 of file weaponmanager.c.
Referenced by Update().
|
protected |
Definition at line 17 of file weaponmanager.c.
Referenced by WeaponManager(), IsRunning(), LoadMultiBulletStop(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), SetRunning(), StartAction(), StartPendingAction(), and Update().
|
protected |
Definition at line 18 of file weaponmanager.c.
Referenced by WeaponManager(), OnInputUserDataProcess(), StartAction(), StartPendingAction(), and Update().
|
protected |
Definition at line 16 of file weaponmanager.c.
Referenced by Update().
|
protected |
Definition at line 7 of file weaponmanager.c.
Referenced by WeaponManager(), and Synchronize().
|
protected |
Definition at line 24 of file weaponmanager.c.
Referenced by WeaponManager(), SetSutableMagazines(), and Update().
|
protected |
Definition at line 33 of file weaponmanager.c.
Referenced by WeaponManager(), OnMagazineInventoryEnter(), OnMagazineInventoryExit(), SetSutableMagazines(), and SortMagazineAfterLoad().
|
protected |
Definition at line 34 of file weaponmanager.c.
Referenced by WeaponManager(), OnMagazineInventoryEnter(), OnMagazineInventoryExit(), SetSutableMagazines(), and SortMagazineAfterLoad().
|
protected |
Definition at line 39 of file weaponmanager.c.
Referenced by WeaponManager(), OnSyncJuncture(), and Update().
|
protected |
Definition at line 13 of file weaponmanager.c.
Referenced by WeaponManager(), InventoryReservation(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), StartAction(), StartPendingAction(), and Synchronize().
|
protected |
Definition at line 10 of file weaponmanager.c.
Referenced by WeaponManager(), InventoryReservation(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), StartAction(), StartPendingAction(), and Synchronize().
|
protected |
Definition at line 12 of file weaponmanager.c.
Referenced by WeaponManager(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), StartAction(), StartPendingAction(), and Synchronize().
|
protected |
Definition at line 9 of file weaponmanager.c.
Referenced by WeaponManager(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), and Synchronize().
|
protected |
Definition at line 5 of file weaponmanager.c.
Referenced by WeaponManager(), CanAttachMagazine(), CanDetachMagazine(), CanEjectBullet(), CanFire(), CanLoadBullet(), CanLoadMultipleBullet(), CanSwapMagazine(), CanUnjam(), Fire(), InventoryReservation(), OnInputUserDataProcess(), OnSyncJuncture(), OnWeaponActionEnd(), PrepareInventoryLocationForMagazineSwap(), RefreshAnimationState(), StartPendingAction(), and Update().
|
protected |
Definition at line 36 of file weaponmanager.c.
Referenced by WeaponManager(), and SetSutableMagazines().
|
protected |
Definition at line 22 of file weaponmanager.c.
Referenced by WeaponManager(), OnSyncJuncture(), OnWeaponActionEnd(), StartAction(), and Update().
|
protected |
Definition at line 35 of file weaponmanager.c.
Referenced by WeaponManager(), GetNextPreparedMagazine(), GetPreparedMagazine(), OnMagazineInventoryExit(), SetSutableMagazines(), and Update().
|
protected |
Definition at line 11 of file weaponmanager.c.
Referenced by InventoryReservation(), OnSyncJuncture(), and OnWeaponActionEnd().
|
protected |
Definition at line 40 of file weaponmanager.c.
Referenced by WeaponManager(), and Update().
|
protected |
Definition at line 19 of file weaponmanager.c.
Referenced by WeaponManager(), LoadMultiBulletStop(), OnWeaponActionEnd(), StartPendingAction(), and WantContinue().
|
protected |
Definition at line 23 of file weaponmanager.c.
Referenced by WeaponManager(), CanEjectBulletVerified(), DelayedRefreshAnimationState(), EjectBulletVerified(), GetCurrentModeName(), InventoryReservation(), OnLiftWeapon(), RefreshAnimationState(), SetSutableMagazines(), StartPendingAction(), SwapMagazine(), and Update().
|
private |
Definition at line 3 of file weaponmanager.c.
Referenced by WeaponStateBase::OnAbort(), and WeaponStateBase::OnExit().