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

◆ OnUnconsciousStart()

void ManBase::OnUnconsciousStart ( )
inlineprotected

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

3503 {
3505
3507
3508 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3509 {
3510 g_Game.GetMission().GetHud().ShowHudUI(false);
3512 if (m_LastCommandBeforeUnconscious != DayZPlayerConstants.COMMANDID_VEHICLE)
3513 {
3514 EntityAI entity_in_hands = GetEntityInHands();
3515 if (entity_in_hands && CanDropEntity(entity_in_hands) && !IsRestrained() && !IsSurrendered())
3516 {
3517 DropItem(ItemBase.Cast(entity_in_hands));
3518 }
3519 }
3520 g_Game.GetSoundScene().SetSoundVolume(0,2);
3521 m_EffectWidgets.AddSuspendRequest(EffectWidgetSuspends.UNCON);
3522 }
3523
3524 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER || (!g_Game.IsMultiplayer() && GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT))
3525 {
3526 SetSynchDirty();
3527
3528 if (m_LastCommandBeforeUnconscious == DayZPlayerConstants.COMMANDID_VEHICLE)
3529 {
3530 if (m_TransportCache)
3531 m_TransportCache.MarkCrewMemberUnconscious(m_TransportCache.CrewMemberIndex(this));
3532 }
3533
3534 // disable voice communication
3535 g_Game.EnableVoN(this, false);
3536
3537 if (m_AdminLog)
3538 {
3539 m_AdminLog.UnconStart(this);
3540 }
3541
3542 // When we fall uncon we force out of block
3543 if (GetMeleeFightLogic())
3544 {
3545 GetMeleeFightLogic().SetBlock(false);
3546 }
3547 }
3548
3549 SetMasterAttenuation("UnconsciousAttenuation");
3550
3552 m_OnUnconsciousStart.Invoke(this);
3553 }
class LogManager EntityAI
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
override bool IsRestrained()
Определения PlayerBase.c:2040
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:338
override bool CanDropEntity(notnull EntityAI item)
Определения PlayerBase.c:979
bool IsSurrendered()
Определения PlayerBase.c:8607
override void RequestSoundEventStop(EPlayerSoundEventID id, bool from_server_and_client=false, int param=EPlayerSoundEventParam.STOP_PLAYBACK)
Определения PlayerBase.c:7439
void CloseInventoryMenu()
Определения PlayerBase.c:6626
ref ScriptInvoker m_OnUnconsciousStart
invokers
Определения PlayerBase.c:349
PluginAdminLog m_AdminLog
Определения PlayerBase.c:319
bool DropItem(ItemBase item)
Определения PlayerBase.c:6497
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8330
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1071
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602

Перекрестные ссылки CanDropEntity(), CloseInventoryMenu(), DropItem(), g_Game, GetInstanceType(), IsRestrained(), IsSurrendered(), m_AdminLog, m_EffectWidgets, m_OnUnconsciousStart, RequestSoundEventStop() и SetInventorySoftLock().

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