12 if (!resource.IsValid())
15 BaseContainer baseContainer = resource.GetResource().ToBaseContainer();
29 if (!uiInfo || !uiInfo.Get(
"Name", result))
32 if (result.Contains(
"#"))
43 if (!resource.IsValid())
46 return GetUIInfo(resource.GetResource().ToBaseContainer());
57 componentSource =
SCR_BaseContainerTools.FindComponentSource(baseContainer, SCR_EditableCharacterComponent);
60 if (componentSource.GetObject(
"m_UIInfo"))
61 return componentSource.GetObject(
"m_UIInfo");
68 if (componentSource.GetObject(
"m_UIInfo"))
69 return componentSource.GetObject(
"m_UIInfo");
76 if (componentSource.GetObject(
"m_UIInfo"))
77 return componentSource.GetObject(
"m_UIInfo");
93 BaseContainer baseContainer2 = componentSource.GetObject(
"Attributes");
96 baseContainer2 = baseContainer2.GetObject(
"ItemDisplayName");
98 return baseContainer2;
106 if (componentSource.GetObject(
"UIInfo"))
107 return componentSource.GetObject(
"UIInfo");
121 if (entityComponentSource)
123 BaseContainer subContainer = entityComponentSource.GetObject(
"Attributes");
126 subContainer = subContainer.GetObject(
"ItemPhysAttributes");
130 if (subContainer.Get(
"Weight", result))
137 if (entityComponentSource)
139 BaseContainer subContainer = entityComponentSource.GetObject(
"Attributes");
142 subContainer = subContainer.GetObject(
"ItemPhysAttributes");
146 if (subContainer.Get(
"Weight", result))
153 if (entityComponentSource)
156 if (entityComponentSource.Get(
"Mass", result))
168 return baseContainer.GetClassName().ToType()
169 && baseContainer.GetClassName().ToType().IsInherited(SCR_ChimeraCharacter);
193 return baseContainer.GetClassName().ToType()
194 && baseContainer.GetClassName().ToType().IsInherited(
Projectile)
203 return baseContainer.GetClassName().ToType()
204 && baseContainer.GetClassName().ToType().IsInherited(
SCR_AIGroup);
212 return baseContainer.GetClassName().ToType()
213 && baseContainer.GetClassName().ToType().IsInherited(
Vehicle)
222 return baseContainer.GetClassName().ToType()
223 && baseContainer.GetClassName().ToType().IsInherited(
Vehicle)
230 static bool IsHelicopter(notnull
BaseContainer baseContainer)
232 return baseContainer.GetClassName().ToType()
233 && baseContainer.GetClassName().ToType().IsInherited(
Vehicle)
240 static bool IsStaticWeapon(notnull
BaseContainer baseContainer)
242 return baseContainer.GetClassName().ToType()
243 && baseContainer.GetClassName().ToType().IsInherited(
Turret)
250 static bool IsComposition(notnull
BaseContainer baseContainer)