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

◆ OnUnconsciousStart()

void ManBase::OnUnconsciousStart ( )
inlineprotected

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

3389 {
3391
3392 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3393 {
3394 GetGame().GetMission().GetHud().ShowHudUI(false);
3396 if (m_LastCommandBeforeUnconscious != DayZPlayerConstants.COMMANDID_VEHICLE)
3397 {
3398 EntityAI entity_in_hands = GetHumanInventory().GetEntityInHands();
3399 if (entity_in_hands && CanDropEntity(entity_in_hands) && !IsRestrained() && !IsSurrendered())
3400 {
3401 DropItem(ItemBase.Cast(entity_in_hands));
3402 }
3403 }
3405 m_EffectWidgets.AddSuspendRequest(EffectWidgetSuspends.UNCON);
3406 }
3407
3408 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER || (!GetGame().IsMultiplayer() && GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT))
3409 {
3410 SetSynchDirty();
3411
3412 if (m_LastCommandBeforeUnconscious == DayZPlayerConstants.COMMANDID_VEHICLE)
3413 {
3414 if (m_TransportCache)
3415 m_TransportCache.MarkCrewMemberUnconscious(m_TransportCache.CrewMemberIndex(this));
3416 }
3417
3418 // disable voice communication
3419 GetGame().EnableVoN(this, false);
3420
3421 if (m_AdminLog)
3422 {
3423 m_AdminLog.UnconStart(this);
3424 }
3425
3426 // When we fall uncon we force out of block
3427 if (GetMeleeFightLogic())
3428 {
3429 GetMeleeFightLogic().SetBlock(false);
3430 }
3431 }
3432
3433 SetMasterAttenuation("UnconsciousAttenuation");
3434
3436 m_OnUnconsciousStart.Invoke(this);
3437 }
class LogManager EntityAI
class GP5GasMask extends MaskBase ItemBase
proto native void EnableVoN(Object player, bool enable)
Enable/disable VoN for target player.
proto native AbstractSoundScene GetSoundScene()
proto native Mission GetMission()
void ShowHudUI(bool show)
override bool IsRestrained()
Определения PlayerBase.c:1910
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:291
override bool CanDropEntity(notnull EntityAI item)
Определения PlayerBase.c:841
bool IsSurrendered()
Определения PlayerBase.c:8259
void CloseInventoryMenu()
Определения PlayerBase.c:6402
ref ScriptInvoker m_OnUnconsciousStart
invokers
Определения PlayerBase.c:302
PluginAdminLog m_AdminLog
Определения PlayerBase.c:272
bool DropItem(ItemBase item)
Определения PlayerBase.c:6274
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8045
Hud GetHud()
Определения gameplay.c:721
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
proto native CGame GetGame()
proto native void SetSoundVolume(float vol, float time)

Перекрестные ссылки CanDropEntity(), CloseInventoryMenu(), DropItem(), CGame::EnableVoN(), GetGame(), Mission::GetHud(), GetInstanceType(), CGame::GetMission(), CGame::GetSoundScene(), IsRestrained(), IsSurrendered(), m_AdminLog, m_EffectWidgets, m_OnUnconsciousStart, SetInventorySoftLock(), AbstractSoundScene::SetSoundVolume() и Hud::ShowHudUI().

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