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

◆ OnUnconsciousStart()

void ManBase::OnUnconsciousStart ( )
inlineprotected

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

3370 {
3372
3373 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT)
3374 {
3375 GetGame().GetMission().GetHud().ShowHudUI(false);
3377 if (m_LastCommandBeforeUnconscious != DayZPlayerConstants.COMMANDID_VEHICLE)
3378 {
3379 EntityAI entity_in_hands = GetHumanInventory().GetEntityInHands();
3380 if (entity_in_hands && CanDropEntity(entity_in_hands) && !IsRestrained() && !IsSurrendered())
3381 {
3382 DropItem(ItemBase.Cast(entity_in_hands));
3383 }
3384 }
3386 m_EffectWidgets.AddSuspendRequest(EffectWidgetSuspends.UNCON);
3387 }
3388
3389 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_SERVER || (!GetGame().IsMultiplayer() && GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_CLIENT))
3390 {
3391 SetSynchDirty();
3392
3393 if (m_LastCommandBeforeUnconscious == DayZPlayerConstants.COMMANDID_VEHICLE)
3394 {
3395 if (m_TransportCache)
3396 m_TransportCache.MarkCrewMemberUnconscious(m_TransportCache.CrewMemberIndex(this));
3397 }
3398
3399 // disable voice communication
3400 GetGame().EnableVoN(this, false);
3401
3402 if (m_AdminLog)
3403 {
3404 m_AdminLog.UnconStart(this);
3405 }
3406
3407 // When we fall uncon we force out of block
3408 if (GetMeleeFightLogic())
3409 {
3410 GetMeleeFightLogic().SetBlock(false);
3411 }
3412 }
3413
3414 SetMasterAttenuation("UnconsciousAttenuation");
3415
3417 m_OnUnconsciousStart.Invoke(this);
3418 }
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:8357
void CloseInventoryMenu()
Определения PlayerBase.c:6394
ref ScriptInvoker m_OnUnconsciousStart
invokers
Определения PlayerBase.c:302
PluginAdminLog m_AdminLog
Определения PlayerBase.c:272
bool DropItem(ItemBase item)
Определения PlayerBase.c:6266
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
Определения PlayerBase.c:8080
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().