3 [
Attribute(defvalue:
"1",
desc:
"Factor that will multiply number of suggested required players to better indicate difficulty of flipping this vehicle\nDue to the fact that some vehicles are very boxy they are inherently harder to flip back on wheels",
params:
"0.01 inf")]
6 protected ref array<IEntity>
m_aUsers = {};
17 if (!super.CanBeShownScript(user))
21 if (
float.AlmostEqual(0,
angles[0], 45) &&
float.AlmostEqual(0,
angles[2], 45))
36 vector forceLeverage =
vector.Up * (maxs[1] - mins[1]) * 0.3;
37 ApplyForce(rootEntity, pUserEntity, timeSlice, forceLeverage);
45 super.OnActionStart(pUserEntity);
56 super.OnActionCanceled(pOwnerEntity, pUserEntity);
74 float mass = physics.GetMass();
75 float forcePerUser =
Math.Min(m_fMassToForce * mass, m_fForceLimit);
76 if (forcePerUser == 0)
88 if (assistedForce > 0)
89 outName =
WidgetManager.Translate(info.GetDescription(), outName);
102 float mass = physics.GetMass();
103 float forcePerUser =
Math.Min(m_fMassToForce * mass, m_fForceLimit);
104 if (forcePerUser == 0)
113 return m_aUsers.Count() / suggestedUsers;
143 float forcePerUser =
Math.Min(m_fMassToForce * mass, m_fForceLimit);
194 SCR_RepairSupportStationComponent foundStation = SCR_RepairSupportStationComponent.Cast(ent.
FindComponent(SCR_RepairSupportStationComponent));
198 float flippingPower = foundStation.GetUnflippingPower();
199 if (flippingPower <= 0)
ref array< string > angles
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
proto external vector GetAngles()
Same as GetYawPitchRoll(), but returns rotation vector around X, Y and Z axis.
proto external vector GetOrigin()
proto external Physics GetPhysics()
proto external BaseWorld GetWorld()
proto external void GetWorldBounds(out vector mins, out vector maxs)
proto external EntityPrefabData GetPrefabData()
proto external IEntity GetParent()
proto external IEntity GetRootParent()
void ApplyForce(IEntity rootEntity, IEntity pUserEntity, float timeSlice, vector forceOffset=vector.Zero)
override void OnActionCanceled(IEntity pOwnerEntity, IEntity pUserEntity)
bool EvaluateFoundEntity(IEntity ent)
SCR_RepairSupportStationComponent m_HelpingStation
override void PerformContinuousAction(IEntity pOwnerEntity, IEntity pUserEntity, float timeSlice)
Called when someone tries to perform the continuous action, user entity is typically character.
event void OnActionDeselected()
float m_fSuggestedUsersMultiplier
override float GetActionProgressScript(float fProgress, float timeSlice)
Returns the progress of this action in seconds.
override bool CanBeShownScript(IEntity user)
Can this action be shown in the UI to the provided user entity?
float GetAdditionalForce()
override void OnActionStart(IEntity pUserEntity)
event void OnActionSelected()
override bool CanBroadcastScript()
If HasLocalEffectOnly() is false this method tells if the server is supposed to broadcast this action...
bool QueryFilter(IEntity ent)
const float SUPPORT_STATION_SEARCH_RADIUS_SQ
squared radius in meters
ref array< IEntity > m_aUsers
void FindNearbySupportStation()
Queries the area around the owner of this action, in order to search for support station,...
float GetMaxForceToMassFactor()
override bool GetActionNameScript(out string outName)
UIInfo - allows to define UI elements.
IEntity GetOwner()
Owner entity of the fuel tank.
SCR_FieldOfViewSettings Attribute