32 super.OnPostInit(owner);
34 SCR_RespawnSystemComponent rsc = SCR_RespawnSystemComponent.GetInstance();
35 if (!
GetGame().InPlayMode() || (rsc && !rsc.CanOpenDeployMenu()))
45 Print(
string.Format(
"%1 could not find %2!",
53 Print(
string.Format(
"%1 is not attached in %2 hierarchy! (%1 should be a child of %3!)",
64 SCR_ReconnectSynchronizationComponent reconnectComp = SCR_ReconnectSynchronizationComponent.Cast(owner.FindComponent(SCR_ReconnectSynchronizationComponent));
68 SCR_WelcomeScreenComponent welcomeScreenComp = SCR_WelcomeScreenComponent.Cast(
GetGame().
GetGameMode().FindComponent(SCR_WelcomeScreenComponent));
69 if (!welcomeScreenComp)
100 if (!SCR_DeployMenuMain.GetDeployMenu())
103 SCR_DeployMenuMain.OpenDeployMenu();
110 SCR_DeployMenuMain.CloseDeployMenu();
152 s_OnMenuClose.Invoke();
163 return (faction && faction.IsPlayable());
173 bool hasDeadEntity =
false;
174 ChimeraCharacter character = ChimeraCharacter.Cast(
m_PlayerController.GetControlledEntity());
176 hasDeadEntity = character.GetCharacterController().IsDead();
180 (!hasEntity || hasDeadEntity) &&
195 bool hasDeadEntity =
false;
196 ChimeraCharacter character = ChimeraCharacter.Cast(
m_PlayerController.GetControlledEntity());
198 hasDeadEntity = character.GetCharacterController().IsDead();
202 (!hasEntity || hasDeadEntity) &&
226 if (!controlledEntity || controlledEntity.IsDeleted())
232 float delay = SCR_RespawnSystemComponent.GetInstance().GetDeployMenuOpenDelay_ms();
264 SCR_DeployMenuMain.CloseDeployMenu();
290 return s_OnMenuClose;
297 delete s_OnMenuClose;
302 super.OnDelete(owner);