M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Inherits TaleWorlds.MountAndBlade.SynchedMissionObject, TaleWorlds.MountAndBlade.IFocusable, TaleWorlds.MountAndBlade.IOrderable, and TaleWorlds.MountAndBlade.IDetachment.
Inherited by SandBox.Objects.Usables.Chair, SandBox.Objects.Usables.MusicianGroup, SandBox.Objects.Usables.Passage, SandBox.Objects.Usables.PatrolArea, SandBox.Objects.Usables.SmithingMachine, SandBox.Objects.Usables.UsablePlace, TaleWorlds.MountAndBlade.ArrowBarrel, TaleWorlds.MountAndBlade.CastleGate, TaleWorlds.MountAndBlade.ExitDoor, TaleWorlds.MountAndBlade.Objects.Usables.SiegeMachineStonePile, TaleWorlds.MountAndBlade.SiegeWeapon, TaleWorlds.MountAndBlade.StonePile, and TaleWorlds.MountAndBlade.TrainingIcon.
Public Member Functions | |
void | AddComponent (UsableMissionObjectComponent component) |
void | RemoveComponent (UsableMissionObjectComponent component) |
T | GetComponent< T > () |
virtual OrderType | GetOrder (BattleSideEnum side) |
virtual UsableMachineAIBase | CreateAIBehaviorObject () |
GameEntity | GetValidStandingPointForAgent (Agent agent) |
GameEntity | GetValidStandingPointForAgentWithoutDistanceCheck (Agent agent) |
StandingPoint | GetVacantStandingPointForAI (Agent agent) |
StandingPoint | GetTargetStandingPointOfAIAgent (Agent agent) |
override void | SetVisibleSynched (bool value, bool forceChildrenVisible=false) |
The user agent who controls this object. | |
override void | SetPhysicsStateSynched (bool value, bool setChildren=true) |
override TickRequirement | GetTickRequirement () |
virtual void | OnFocusGain (Agent userAgent) |
virtual void | OnFocusLose (Agent userAgent) |
virtual TextObject | GetInfoTextForBeingNotInteractable (Agent userAgent) |
void | Deactivate () |
void | Activate () |
virtual bool | IsDisabledForBattleSide (BattleSideEnum sideEnum) |
virtual bool | IsDisabledForBattleSideAI (BattleSideEnum sideEnum) |
virtual bool | ShouldAutoLeaveDetachmentWhenDisabled (BattleSideEnum sideEnum) |
virtual bool | AutoAttachUserToFormation (BattleSideEnum sideEnum) |
virtual bool | HasToBeDefendedByUser (BattleSideEnum sideEnum) |
virtual void | Disable () |
override bool | ReadFromNetwork () |
override void | WriteToNetwork () |
override string | ToString () |
abstract TextObject | GetActionTextForStandingPoint (UsableMissionObject usableGameObject) |
virtual StandingPoint | GetBestPointAlternativeTo (StandingPoint standingPoint, Agent agent) |
virtual bool | IsInRangeToCheckAlternativePoints (Agent agent) |
void | AddAgentAtSlotIndex (Agent agent, int slotIndex) |
bool | IsStandingPointAvailableForAgent (Agent agent) |
bool | IsUsedByFormation (Formation formation) |
abstract string | GetDescriptionText (GameEntity gameEntity=null) |
![]() | |
override TickRequirement | GetTickRequirement () |
void | SetLocalPositionSmoothStep (ref Vec3 targetPosition) |
virtual void | SetVisibleSynched (bool value, bool forceChildrenVisible=false) |
virtual void | SetPhysicsStateSynched (bool value, bool setChildren=true) |
virtual void | SetDisabledSynched () |
void | SetFrameSynched (ref MatrixFrame frame, bool isClient=false) |
void | SetGlobalFrameSynched (ref MatrixFrame frame, bool isClient=false) |
void | SetFrameSynchedOverTime (ref MatrixFrame frame, float duration, bool isClient=false) |
void | SetGlobalFrameSynchedOverTime (ref MatrixFrame frame, float duration, bool isClient=false) |
void | SetAnimationAtChannelSynched (string animationName, int channelNo, float animationSpeed=1.0f) |
void | SetAnimationAtChannelSynched (int animationIndex, int channelNo, float animationSpeed=1.0f) |
void | SetAnimationChannelParameterSynched (int channelNo, float parameter) |
void | PauseSkeletonAnimationSynched () |
void | ResumeSkeletonAnimationSynched () |
void | BurstParticlesSynched (bool doChildren=true) |
void | ApplyImpulseSynched (Vec3 localPosition, Vec3 impulse) |
void | AddBodyFlagsSynched (BodyFlags flags, bool applyToChildren=true) |
void | RemoveBodyFlagsSynched (BodyFlags flags, bool applyToChildren=true) |
void | SetTeamColors (uint color, uint color2) |
virtual void | SetTeamColorsSynched (uint color, uint color2) |
virtual bool | ReadFromNetwork () |
virtual void | WriteToNetwork () |
![]() | |
MissionObject () | |
virtual void | SetAbilityOfFaces (bool enabled) |
override int | GetHashCode () |
virtual void | AfterMissionStart () |
void | SetDisabled (bool isParentObject=false) |
Only disables the mission object script and removes it from active mission objects list but the object entity remains visible with active physics. | |
void | SetDisabledAndMakeInvisible (bool isParentObject=false) |
Mission object is disabled and removed from active mission objects list, its entity is made invisible and therefore its physics is turned off. | |
virtual void | OnEndMission () |
virtual void | AddStuckMissile (GameEntity missileEntity) |
![]() | |
void | SetScriptComponentToTick (TickRequirement value) |
void | SetScriptComponentToTickMT (TickRequirement value) |
virtual TickRequirement | GetTickRequirement () |
void | OnFocusGain (Agent userAgent) |
void | OnFocusLose (Agent userAgent) |
TextObject | GetInfoTextForBeingNotInteractable (Agent userAgent) |
string | GetDescriptionText (GameEntity gameEntity=null) |
OrderType | GetOrder (BattleSideEnum side) |
bool | IsAgentUsingOrInterested (Agent agent) |
float? | GetWeightOfNextSlot (BattleSideEnum side) |
Null if there is no vacancy left. Otherwise it is a positive number. | |
float | GetDetachmentWeight (BattleSideEnum side) |
float | ComputeAndCacheDetachmentWeight (BattleSideEnum side) |
float | GetDetachmentWeightFromCache () |
void | GetSlotIndexWeightTuples (List< ValueTuple< int, float > > slotIndexWeightTuples) |
bool | IsSlotAtIndexAvailableForAgent (int slotIndex, Agent agent) |
bool | IsAgentEligible (Agent agent) |
void | AddAgentAtSlotIndex (Agent agent, int slotIndex) |
Agent | GetMovingAgentAtSlotIndex (int slotIndex) |
void | MarkSlotAtIndex (int slotIndex) |
bool | IsDetachmentRecentlyEvaluated () |
void | UnmarkDetachment () |
float? | GetWeightOfAgentAtNextSlot (List< Agent > candidates, out Agent match) |
float? | GetWeightOfAgentAtNextSlot (List< ValueTuple< Agent, float > > agentTemplateScores, out Agent match) |
float | GetTemplateWeightOfAgent (Agent candidate) |
List< float > | GetTemplateCostsOfAgent (Agent candidate, List< float > oldValue) |
float | GetExactCostOfAgentAtSlot (Agent candidate, int slotIndex) |
float | GetWeightOfOccupiedSlot (Agent detachedAgent) |
float? | GetWeightOfAgentAtOccupiedSlot (Agent detachedAgent, List< Agent > candidates, out Agent match) |
bool | IsStandingPointAvailableForAgent (Agent agent) |
void | AddAgent (Agent agent, int slotIndex=-1) |
void | RemoveAgent (Agent detachedAgent) |
void | FormationStartUsing (Formation formation) |
void | FormationStopUsing (Formation formation) |
bool | IsUsedByFormation (Formation formation) |
WorldFrame? | GetAgentFrame (Agent detachedAgent) |
Returns null for siege weapons and other detachments that sets scripted frame for the agent. Returns a frame otherwise. | |
void | ResetEvaluation () |
bool | IsEvaluated () |
void | SetAsEvaluated () |
void | OnFormationLeave (Formation formation) |
Public Attributes | |
string | PilotStandingPointTag = "Pilot" |
string | AmmoPickUpTag = "ammopickup" |
string | WaitStandingPointTag = "Wait" |
Static Public Attributes | |
const string | UsableMachineParentTag = "machine_parent" |
Protected Member Functions | |
UsableMachine () | |
virtual void | DebugTick (float dt) |
bool | IsDisabledDueToEnemyInRange (BattleSideEnum sideEnum) |
override void | OnRemoved (int removeReason) |
virtual float | GetWeightOfStandingPoint (StandingPoint sp) |
virtual float | GetDetachmentWeightAux (BattleSideEnum side) |
virtual bool | IsAgentOnInconvenientNavmesh (Agent agent, StandingPoint standingPoint) |
virtual StandingPoint | GetSuitableStandingPointFor (BattleSideEnum side, Agent agent=null, List< Agent > agents=null, List< ValueTuple< Agent, float > > agentValuePairs=null) |
![]() | |
virtual void | AttachDynamicNavmeshToEntity () |
virtual GameEntity | GetEntityToAttachNavMeshFaces () |
override void | OnRemoved (int removeReason) |
![]() | |
void | InvalidateWeakPointersIfValid () |
ScriptComponentBehavior () | |
virtual void | OnRemoved (int removeReason) |
Protected Attributes | |
GameEntity | ActiveWaitStandingPoint |
bool | _areUsableStandingPointsVacant = true |
List< ValueTuple< int, StandingPoint > > | _usableStandingPoints |
bool | _isDetachmentRecentlyEvaluated = false |
float | EnemyRangeToStopUsing = 0.0f |
Vec2 | MachinePositionOffsetToStopUsing = Vec2.Zero |
bool | MakeVisibilityCheck = true |
bool | _isDisabledForAI = false |
MBList< Formation > | _userFormations |
![]() | |
string | NavMeshPrefabName = "" |
int | DynamicNavmeshIdStart = 0 |
Additional Inherited Members | |
![]() | |
enum | SynchFlags : uint { SynchNone = 0x00000000 , SynchTransform = 0x00000001 , SynchAnimation = 0x00000002 , SynchBodyFlags = 0x00000004 , SyncColors = 0x00000008 , SynchAll = 0xffffffff } |
![]() | |
enum | TickRequirement : uint { None = 0x00000000 , TickOccasionally = 0x00000001 , Tick = 0x00000002 , TickParallel = 0x00000004 , TickParallel2 = 0x00000008 } |
![]() | |
const int | InsideNavMeshIdLocal = 1 |
const int | EnterNavMeshIdLocal = 2 |
const int | ExitNavMeshIdLocal = 3 |
const int | BlockerNavMeshIdLocal = 4 |
const int | ExtraNavMesh1IdLocal = 5 |
const int | ExtraNavMesh2IdLocal = 6 |
const int | ExtraNavMesh3IdLocal = 7 |
|
protected |
void TaleWorlds.MountAndBlade.UsableMachine.AddComponent | ( | UsableMissionObjectComponent | component | ) |
void TaleWorlds.MountAndBlade.UsableMachine.RemoveComponent | ( | UsableMissionObjectComponent | component | ) |
T TaleWorlds.MountAndBlade.UsableMachine.GetComponent< T > | ( | ) |
T | : | UsableMissionObjectComponent |
|
virtual |
Implements TaleWorlds.MountAndBlade.IOrderable.
Reimplemented in SandBox.Objects.Usables.Chair, TaleWorlds.MountAndBlade.BatteringRam, TaleWorlds.MountAndBlade.CastleGate, TaleWorlds.MountAndBlade.RangedSiegeWeapon, TaleWorlds.MountAndBlade.SiegeLadder, TaleWorlds.MountAndBlade.SiegeTower, TaleWorlds.MountAndBlade.ArrowBarrel, and TaleWorlds.MountAndBlade.Objects.Usables.SiegeMachineStonePile.
|
virtual |
Reimplemented in SandBox.Objects.Usables.Chair, SandBox.Objects.Usables.MusicianGroup, SandBox.Objects.Usables.Passage, SandBox.Objects.Usables.PatrolArea, SandBox.Objects.Usables.SmithingMachine, SandBox.Objects.Usables.UsablePlace, TaleWorlds.MountAndBlade.Ballista, TaleWorlds.MountAndBlade.BatteringRam, TaleWorlds.MountAndBlade.CastleGate, TaleWorlds.MountAndBlade.Mangonel, TaleWorlds.MountAndBlade.SiegeLadder, TaleWorlds.MountAndBlade.SiegeTower, TaleWorlds.MountAndBlade.Trebuchet, and TaleWorlds.MountAndBlade.StonePile.
GameEntity TaleWorlds.MountAndBlade.UsableMachine.GetValidStandingPointForAgent | ( | Agent | agent | ) |
GameEntity TaleWorlds.MountAndBlade.UsableMachine.GetValidStandingPointForAgentWithoutDistanceCheck | ( | Agent | agent | ) |
StandingPoint TaleWorlds.MountAndBlade.UsableMachine.GetVacantStandingPointForAI | ( | Agent | agent | ) |
StandingPoint TaleWorlds.MountAndBlade.UsableMachine.GetTargetStandingPointOfAIAgent | ( | Agent | agent | ) |
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
protectedvirtual |
|
virtual |
Implements TaleWorlds.MountAndBlade.IFocusable.
Reimplemented in TaleWorlds.MountAndBlade.TrainingIcon.
|
virtual |
Implements TaleWorlds.MountAndBlade.IFocusable.
Reimplemented in TaleWorlds.MountAndBlade.TrainingIcon.
|
virtual |
Implements TaleWorlds.MountAndBlade.IFocusable.
void TaleWorlds.MountAndBlade.UsableMachine.Deactivate | ( | ) |
void TaleWorlds.MountAndBlade.UsableMachine.Activate | ( | ) |
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.SiegeLadder.
|
virtual |
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.SiegeWeapon.
|
protected |
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.SiegeWeapon.
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.SiegeWeapon.
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.BatteringRam, and TaleWorlds.MountAndBlade.SiegeTower.
|
protectedvirtual |
Reimplemented from TaleWorlds.MountAndBlade.MissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
|
virtual |
Reimplemented from TaleWorlds.MountAndBlade.SynchedMissionObject.
override string TaleWorlds.MountAndBlade.UsableMachine.ToString | ( | ) |
|
pure virtual |
Implemented in SandBox.Objects.Usables.Chair, SandBox.Objects.Usables.MusicianGroup, SandBox.Objects.Usables.Passage, SandBox.Objects.Usables.PatrolArea, SandBox.Objects.Usables.SmithingMachine, SandBox.Objects.Usables.UsablePlace, TaleWorlds.MountAndBlade.ExitDoor, TaleWorlds.MountAndBlade.Ballista, TaleWorlds.MountAndBlade.BatteringRam, TaleWorlds.MountAndBlade.CastleGate, TaleWorlds.MountAndBlade.Mangonel, TaleWorlds.MountAndBlade.SiegeLadder, TaleWorlds.MountAndBlade.SiegeTower, TaleWorlds.MountAndBlade.Trebuchet, TaleWorlds.MountAndBlade.ArrowBarrel, TaleWorlds.MountAndBlade.Objects.Usables.SiegeMachineStonePile, TaleWorlds.MountAndBlade.StonePile, and TaleWorlds.MountAndBlade.TrainingIcon.
|
virtual |
|
virtual |
Reimplemented in TaleWorlds.MountAndBlade.RangedSiegeWeapon, and TaleWorlds.MountAndBlade.StonePile.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in TaleWorlds.MountAndBlade.CastleGate, and TaleWorlds.MountAndBlade.SiegeTower.
void TaleWorlds.MountAndBlade.UsableMachine.AddAgentAtSlotIndex | ( | Agent | agent, |
int | slotIndex | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
bool TaleWorlds.MountAndBlade.UsableMachine.IsStandingPointAvailableForAgent | ( | Agent | agent | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
bool TaleWorlds.MountAndBlade.UsableMachine.IsUsedByFormation | ( | Formation | formation | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
protectedvirtual |
Reimplemented in TaleWorlds.MountAndBlade.SiegeLadder, and TaleWorlds.MountAndBlade.StonePile.
|
pure virtual |
Implements TaleWorlds.MountAndBlade.IFocusable.
Implemented in TaleWorlds.MountAndBlade.SiegeLadder, SandBox.Objects.Usables.Chair, SandBox.Objects.Usables.MusicianGroup, SandBox.Objects.Usables.Passage, SandBox.Objects.Usables.PatrolArea, SandBox.Objects.Usables.SmithingMachine, SandBox.Objects.Usables.UsablePlace, TaleWorlds.MountAndBlade.ExitDoor, TaleWorlds.MountAndBlade.Ballista, TaleWorlds.MountAndBlade.BatteringRam, TaleWorlds.MountAndBlade.CastleGate, TaleWorlds.MountAndBlade.Mangonel, TaleWorlds.MountAndBlade.SiegeTower, TaleWorlds.MountAndBlade.Trebuchet, TaleWorlds.MountAndBlade.TrainingIcon, TaleWorlds.MountAndBlade.ArrowBarrel, TaleWorlds.MountAndBlade.Objects.Usables.SiegeMachineStonePile, and TaleWorlds.MountAndBlade.StonePile.
|
static |
string TaleWorlds.MountAndBlade.UsableMachine.PilotStandingPointTag = "Pilot" |
string TaleWorlds.MountAndBlade.UsableMachine.AmmoPickUpTag = "ammopickup" |
string TaleWorlds.MountAndBlade.UsableMachine.WaitStandingPointTag = "Wait" |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
get |
|
get |
|
getprotected |
|
get |
|
get |
|
get |
|
get |
|
get |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |
|
get |
Implements TaleWorlds.MountAndBlade.IFocusable.
|
getset |
|
get |
|
get |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |