20 SCR_TutorialFakeBaseComponent fakeBaseComponent;
27 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
28 if (fakeBaseComponent)
30 fakeBaseComponent.m_bVisible =
true;
31 fakeBaseComponent.CreateLinks();
38 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
39 if (fakeBaseComponent)
41 fakeBaseComponent.m_bVisible =
true;
42 fakeBaseComponent.CreateLinks();
49 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
50 if (fakeBaseComponent)
52 fakeBaseComponent.m_bVisible =
true;
53 fakeBaseComponent.CreateLinks();
60 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
61 if (fakeBaseComponent)
63 fakeBaseComponent.m_bVisible =
true;
64 fakeBaseComponent.CreateLinks();
71 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
72 if (fakeBaseComponent)
74 fakeBaseComponent.m_bVisible =
true;
75 fakeBaseComponent.CreateLinks();
79 fakeBase =
GetGame().
GetWorld().FindEntityByName(
"FakeBaseLighthouseNorth");
82 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
83 if (fakeBaseComponent)
85 fakeBaseComponent.m_bVisible =
true;
86 fakeBaseComponent.m_BaseColor =
Color.FromRGBA(249, 210, 103, 255);
88 fakeBaseComponent.m_sHighlight =
"Unknown_Installation_Focus_Land";
93 factionComp.SetAffiliatedFactionByKey(
"USSR");
95 SCR_TutorialSeizingComponent seizingComp = SCR_TutorialSeizingComponent.Cast(fakeBase.
FindComponent(SCR_TutorialSeizingComponent));
98 seizingComp.UpdateFlagsInHierarchyPublic();
102 BaseGameTriggerEntity trigger;
106 if (child.IsInherited(BaseGameTriggerEntity))
108 trigger = BaseGameTriggerEntity.Cast(child);
116 trigger.SetSphereRadius(0.1);
120 SCR_TutorialGamemodeComponent tutorial = SCR_TutorialGamemodeComponent.GetInstance();
123 tutorial.SetupTargets(
"base_target1", null,
ETargetState.TARGET_DOWN,
false);
132 SlotManagerComponent slotMan = SlotManagerComponent.Cast(mobilehq.
FindComponent(SlotManagerComponent));
140 IEntity box = slotInfo.GetAttachedEntity();
150 array <BaseUserAction> userActions = {};
152 actionMan.GetActionsList(userActions);
174 SCR_TutorialGamemodeComponent tutorial = SCR_TutorialGamemodeComponent.GetInstance();
178 IEntity radio = tutorial.FindPrefabInPlayerInventory(
"{73950FBA2D7DB5C5}Prefabs/Items/Equipment/Radios/Radio_ANPRC68.et");
182 BaseRadioComponent radioComp = BaseRadioComponent.Cast(radio.
FindComponent(BaseRadioComponent));
188 transceiver.SetFrequency(32000);
192 transceiver.SetFrequency(32000);
215 SCR_TutorialGamemodeComponent tutorial = SCR_TutorialGamemodeComponent.GetInstance();
223 BaseWeaponManagerComponent weaponManager = BaseWeaponManagerComponent.Cast(player.FindComponent(BaseWeaponManagerComponent));
227 array<IEntity> weapons = {};
228 weaponManager.GetWeaponsList(weapons);
231 foreach (
IEntity weapon : weapons)
237 if (weaponComp.GetWeaponType() ==
EWeaponType.WT_FRAGGRENADE || weaponComp.GetWeaponType() ==
EWeaponType.WT_SMOKEGRENADE || weaponComp.GetWeaponType() ==
EWeaponType.WT_NONE || weaponComp.GetWeaponType() ==
EWeaponType.WT_ROCKETLAUNCHER)
249 SCR_TutorialGamemodeComponent tutorial = SCR_TutorialGamemodeComponent.GetInstance();
253 SCR_TutorialFakeBaseComponent fakeBaseComponent;
260 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
261 if (fakeBaseComponent)
263 fakeBaseComponent.m_bVisible =
false;
264 fakeBaseComponent.ClearLinks();
265 fakeBaseComponent.RemoveLinkName(
"Tutorial_MobileHQ");
272 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
273 if (fakeBaseComponent)
275 fakeBaseComponent.m_bVisible =
false;
276 fakeBaseComponent.ClearLinks();
280 fakeBase =
GetGame().
GetWorld().FindEntityByName(
"FakeBaseSignalHill");
283 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
284 if (fakeBaseComponent)
286 fakeBaseComponent.m_bVisible =
false;
287 fakeBaseComponent.ClearLinks();
294 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
295 if (fakeBaseComponent)
297 fakeBaseComponent.m_bVisible =
false;
298 fakeBaseComponent.ClearLinks();
305 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
306 if (fakeBaseComponent)
308 fakeBaseComponent.m_bVisible =
false;
309 fakeBaseComponent.ClearLinks();
316 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
317 if (fakeBaseComponent)
319 fakeBaseComponent.m_bVisible =
false;
320 fakeBaseComponent.ClearLinks();
327 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
328 if (fakeBaseComponent)
330 fakeBaseComponent.m_bVisible =
false;
331 fakeBaseComponent.ClearLinks();
335 fakeBase =
GetGame().
GetWorld().FindEntityByName(
"FakeBaseLighthouseNorth");
338 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
339 if (fakeBaseComponent)
341 fakeBaseComponent.m_bVisible =
false;
342 fakeBaseComponent.m_bAllowServices =
false;
343 fakeBaseComponent.m_bAllowServicesSizeOverlay =
false;
345 fakeBaseComponent.ClearLinks();
352 fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent(SCR_TutorialFakeBaseComponent));
353 if (fakeBaseComponent)
355 fakeBaseComponent.m_bVisible =
false;
356 fakeBaseComponent.ClearLinks();