DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Synchronize()

void WeaponManager::Synchronize ( )
inlineprivate

См. определение в файле WeaponManager.c строка 519

520 {
521 if ( GetGame().IsClient() )
522 {
524 ScriptInputUserData ctx = new ScriptInputUserData;
525
529
530
531 switch (m_PendingWeaponAction)
532 {
534 {
536 break;
537 }
539 {
541 m_PendingInventoryLocation.WriteToContext(ctx);
542 break;
543 }
545 {
546 m_PendingInventoryLocation.WriteToContext(ctx);
547 break;
548 }
550 {
552 break;
553 }
555 {
557 break;
558 }
559 case AT_WPN_UNJAM:
560 {
561 break;
562 }
564 {
565 break;
566 }
567 default:
568 break;
569 }
570 ctx.Send();
571 //if( !m_player.GetDayZPlayerInventory().HasLockedHands() )
572 // m_player.GetDayZPlayerInventory().LockHands();
573 }
574 }
const int INPUT_UDT_WEAPON_ACTION
Определения _constants.c:7
const int AT_WPN_DETACH_MAGAZINE
Определения _constants.c:12
const int AT_WPN_ATTACH_MAGAZINE
Определения _constants.c:10
const int AT_WPN_LOAD_BULLET
Определения _constants.c:13
const int AT_WPN_UNJAM
Определения _constants.c:14
const int AT_WPN_SWAP_MAGAZINE
Определения _constants.c:11
const int AT_WPN_LOAD_MULTI_BULLETS_START
Определения _constants.c:16
const int AT_WPN_EJECT_BULLET
Определения _constants.c:15
proto native void Send()
proto bool Write(void value_out)
int m_PendingWeaponActionAcknowledgmentID
Определения WeaponManager.c:9
Magazine m_PendingTargetMagazine
Определения WeaponManager.c:10
int m_LastAcknowledgmentID
Определения WeaponManager.c:7
ref InventoryLocation m_PendingInventoryLocation
Определения WeaponManager.c:13
int m_PendingWeaponAction
Определения WeaponManager.c:12
proto native CGame GetGame()

Перекрестные ссылки 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, GetGame(), INPUT_UDT_WEAPON_ACTION, m_LastAcknowledgmentID, m_PendingInventoryLocation, m_PendingTargetMagazine, m_PendingWeaponAction, m_PendingWeaponActionAcknowledgmentID, ScriptInputUserData::Send() и Serializer::Write().

Используется в StartAction().