M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.BatteringRam Class Reference

Inherits TaleWorlds.MountAndBlade.SiegeWeapon, TaleWorlds.MountAndBlade.IPathHolder, TaleWorlds.MountAndBlade.IPrimarySiegeWeapon, TaleWorlds.MountAndBlade.IMoveableSiegeWeapon, and TaleWorlds.MountAndBlade.Objects.Siege.ISpawnable.

Public Types

enum  RamState {
  Stable ,
  Hitting ,
  AfterHit ,
  NumberOfStates
}
 
- Public Types inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
enum  SynchFlags : uint {
  SynchNone = 0x00000000 ,
  SynchTransform = 0x00000001 ,
  SynchAnimation = 0x00000002 ,
  SynchBodyFlags = 0x00000004 ,
  SyncColors = 0x00000008 ,
  SynchAll = 0xffffffff
}
 
- Public Types inherited from TaleWorlds.Engine.ScriptComponentBehavior
enum  TickRequirement : uint {
  None = 0x00000000 ,
  TickOccasionally = 0x00000001 ,
  Tick = 0x00000002 ,
  TickParallel = 0x00000004 ,
  TickParallel2 = 0x00000008
}
 

Public Member Functions

bool HasCompletedAction ()
 
override void Disable ()
 
override SiegeEngineType GetSiegeEngineType ()
 
MatrixFrame GetInitialFrame ()
 
override TickRequirement GetTickRequirement ()
 
override UsableMachineAIBase CreateAIBehaviorObject ()
 
override bool ReadFromNetwork ()
 
override void WriteToNetwork ()
 
void HighlightPath ()
 
void SwitchGhostEntityMovementMode (bool isGhostEnabled)
 
override string GetDescriptionText (GameEntity gameEntity=null)
 
override TextObject GetActionTextForStandingPoint (UsableMissionObject usableGameObject)
 
override OrderType GetOrder (BattleSideEnum side)
 
override TargetFlags GetTargetFlags ()
 
override float GetTargetValue (List< Vec3 > weaponPos)
 
void SetSpawnedFromSpawner ()
 
void AssignParametersFromSpawner (string gateTag, string sideTag, int bridgeNavMeshID_1, int bridgeNavMeshID_2, int ditchNavMeshID_1, int ditchNavMeshID_2, int groundToBridgeNavMeshID_1, int groundToBridgeNavMeshID_2, string pathEntityName)
 
bool GetNavmeshFaceIds (out List< int > navmeshFaceIds)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.SiegeWeapon
void SetForcedUse (bool value)
 
abstract SiegeEngineType GetSiegeEngineType ()
 
override TickRequirement GetTickRequirement ()
 
override bool ShouldAutoLeaveDetachmentWhenDisabled (BattleSideEnum sideEnum)
 
override bool AutoAttachUserToFormation (BattleSideEnum sideEnum)
 
override bool HasToBeDefendedByUser (BattleSideEnum sideEnum)
 
GameEntity GetTargetEntity ()
 
Vec3 GetTargetingOffset ()
 
BattleSideEnum GetSide ()
 
GameEntity Entity ()
 
abstract TargetFlags GetTargetFlags ()
 
abstract float GetTargetValue (List< Vec3 > weaponPos)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.UsableMachine
void AddComponent (UsableMissionObjectComponent component)
 
void RemoveComponent (UsableMissionObjectComponent component)
 
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)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
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 ()
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.MissionObject
 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)
 
- Public Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
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)
 
WorldFrameGetAgentFrame (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)
 
TargetFlags GetTargetFlags ()
 
float GetTargetValue (List< Vec3 > referencePositions)
 
GameEntity GetTargetEntity ()
 
Vec3 GetTargetingOffset ()
 
BattleSideEnum GetSide ()
 
GameEntity Entity ()
 
bool HasCompletedAction ()
 
bool GetNavmeshFaceIds (out List< int > navmeshFaceIds)
 
void HighlightPath ()
 
void SwitchGhostEntityMovementMode (bool isGhostEnabled)
 
MatrixFrame GetInitialFrame ()
 
void SetSpawnedFromSpawner ()
 

Public Attributes

bool GhostEntityMove = true
 
float GhostEntitySpeedMultiplier = 1.0f
 
float WheelDiameter = 1.3f
 
int GateNavMeshId = 7
 
int DisabledNavMeshID = 8
 
int NavMeshIdToDisableOnDestination = -1
 
float MinSpeed = 0.5f
 
float MaxSpeed = 1.0f
 
float DamageMultiplier = 10
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.UsableMachine
string PilotStandingPointTag = "Pilot"
 
string AmmoPickUpTag = "ammopickup"
 
string WaitStandingPointTag = "Wait"
 

Protected Member Functions

override float GetDistanceMultiplierOfWeapon (Vec3 weaponPos)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.SiegeWeapon
virtual bool CalculateIsSufficientlyManned (BattleSideEnum battleSide)
 
float GetUserMultiplierOfWeapon ()
 
virtual float GetDistanceMultiplierOfWeapon (Vec3 weaponPos)
 
virtual float GetMinimumDistanceBetweenPositions (Vec3 position)
 
float GetHitPointMultiplierOfWeapon ()
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.UsableMachine
 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)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.MissionObject
virtual void AttachDynamicNavmeshToEntity ()
 
virtual GameEntity GetEntityToAttachNavMeshFaces ()
 
override void OnRemoved (int removeReason)
 
- Protected Member Functions inherited from TaleWorlds.Engine.ScriptComponentBehavior
void InvalidateWeakPointersIfValid ()
 
 ScriptComponentBehavior ()
 
virtual void OnRemoved (int removeReason)
 

Properties

SiegeWeaponMovementComponent MovementComponent [get]
 
FormationAI.BehaviorSide WeaponSide [get]
 
string PathEntity [get]
 
bool EditorGhostEntityMove [get]
 
RamState State [get, set]
 
MissionObject TargetCastlePosition [get]
 
float SiegeWeaponPriority [get]
 
int OverTheWallNavMeshID [get]
 
bool HoldLadders [get]
 
bool SendLadders [get]
 
bool HasArrivedAtTarget [get, set]
 
override bool IsDeactivated [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.SiegeWeapon
bool ForcedUse [get]
 
bool IsUsed [get]
 
virtual BattleSideEnum Side [get]
 
override bool HasWaitFrame [get]
 
override bool IsDeactivated [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.UsableMachine
MBList< StandingPointStandingPoints [get]
 
StandingPoint PilotStandingPoint [get]
 
List< GameEntityWaitStandingPoints [get]
 
DestructableComponent DestructionComponent [get]
 
bool IsDestructible [get]
 
bool IsDestroyed [get]
 
Agent PilotAgent [get]
 
bool IsLoose [get]
 
UsableMachineAIBase Ai [get]
 
virtual FocusableObjectType FocusableObjectType [get]
 
StandingPoint CurrentlyUsedAmmoPickUpPoint [get, set]
 
bool HasAIPickingUpAmmo [get]
 
MBReadOnlyList< FormationUserFormations [get]
 
int UserCountNotInStruckAction [get]
 
int UserCountIncludingInStruckAction [get]
 
virtual int MaxUserCount [get]
 
virtual bool HasWaitFrame [get]
 
MatrixFrame WaitFrame [get]
 
GameEntity WaitEntity [get]
 
virtual bool IsDeactivated [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.SynchedMissionObject
uint Color [get]
 
uint Color2 [get]
 
bool SynchronizeCompleted [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.MissionObject
MissionObjectId Id [get, set]
 
bool IsDisabled [get]
 
bool CreatedAtRuntime [get]
 
- Properties inherited from TaleWorlds.Engine.ScriptComponentBehavior
GameEntity GameEntity [get]
 
ManagedScriptComponent ScriptComponent [get]
 
ManagedScriptHolder ManagedScriptHolder [get]
 
Scene Scene [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IFocusable
FocusableObjectType FocusableObjectType [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IDetachment
MBReadOnlyList< FormationUserFormations [get]
 
bool IsLoose [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IPathHolder
string PathEntity [get]
 
bool EditorGhostEntityMove [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IPrimarySiegeWeapon
float SiegeWeaponPriority [get]
 
int OverTheWallNavMeshID [get]
 
bool HoldLadders [get]
 
bool SendLadders [get]
 
MissionObject TargetCastlePosition [get]
 
FormationAI.BehaviorSide WeaponSide [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.IMoveableSiegeWeapon
SiegeWeaponMovementComponent MovementComponent [get]
 

Additional Inherited Members

- Static Public Attributes inherited from TaleWorlds.MountAndBlade.UsableMachine
const string UsableMachineParentTag = "machine_parent"
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.SiegeWeapon
bool _spawnedFromSpawner = false
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.UsableMachine
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
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.MissionObject
string NavMeshPrefabName = ""
 
int DynamicNavmeshIdStart = 0
 
- Static Protected Attributes inherited from TaleWorlds.MountAndBlade.MissionObject
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
 

Member Enumeration Documentation

◆ RamState

Enumerator
Stable 
Hitting 
AfterHit 
NumberOfStates 

Member Function Documentation

◆ HasCompletedAction()

bool TaleWorlds.MountAndBlade.BatteringRam.HasCompletedAction ( )

◆ Disable()

override void TaleWorlds.MountAndBlade.BatteringRam.Disable ( )
virtual

◆ GetSiegeEngineType()

override SiegeEngineType TaleWorlds.MountAndBlade.BatteringRam.GetSiegeEngineType ( )
virtual

◆ GetInitialFrame()

MatrixFrame TaleWorlds.MountAndBlade.BatteringRam.GetInitialFrame ( )

◆ GetTickRequirement()

override TickRequirement TaleWorlds.MountAndBlade.BatteringRam.GetTickRequirement ( )
virtual

◆ CreateAIBehaviorObject()

override UsableMachineAIBase TaleWorlds.MountAndBlade.BatteringRam.CreateAIBehaviorObject ( )
virtual

◆ ReadFromNetwork()

override bool TaleWorlds.MountAndBlade.BatteringRam.ReadFromNetwork ( )
virtual

◆ WriteToNetwork()

override void TaleWorlds.MountAndBlade.BatteringRam.WriteToNetwork ( )
virtual

◆ HighlightPath()

void TaleWorlds.MountAndBlade.BatteringRam.HighlightPath ( )

◆ SwitchGhostEntityMovementMode()

void TaleWorlds.MountAndBlade.BatteringRam.SwitchGhostEntityMovementMode ( bool  isGhostEnabled)

◆ GetDescriptionText()

override string TaleWorlds.MountAndBlade.BatteringRam.GetDescriptionText ( GameEntity  gameEntity = null)
virtual

◆ GetActionTextForStandingPoint()

override TextObject TaleWorlds.MountAndBlade.BatteringRam.GetActionTextForStandingPoint ( UsableMissionObject  usableGameObject)
virtual

◆ GetOrder()

override OrderType TaleWorlds.MountAndBlade.BatteringRam.GetOrder ( BattleSideEnum  side)
virtual

◆ GetTargetFlags()

override TargetFlags TaleWorlds.MountAndBlade.BatteringRam.GetTargetFlags ( )
virtual

◆ GetTargetValue()

override float TaleWorlds.MountAndBlade.BatteringRam.GetTargetValue ( List< Vec3 weaponPos)
virtual

◆ GetDistanceMultiplierOfWeapon()

override float TaleWorlds.MountAndBlade.BatteringRam.GetDistanceMultiplierOfWeapon ( Vec3  weaponPos)
protectedvirtual

◆ SetSpawnedFromSpawner()

void TaleWorlds.MountAndBlade.BatteringRam.SetSpawnedFromSpawner ( )

◆ AssignParametersFromSpawner()

void TaleWorlds.MountAndBlade.BatteringRam.AssignParametersFromSpawner ( string  gateTag,
string  sideTag,
int  bridgeNavMeshID_1,
int  bridgeNavMeshID_2,
int  ditchNavMeshID_1,
int  ditchNavMeshID_2,
int  groundToBridgeNavMeshID_1,
int  groundToBridgeNavMeshID_2,
string  pathEntityName 
)

◆ GetNavmeshFaceIds()

bool TaleWorlds.MountAndBlade.BatteringRam.GetNavmeshFaceIds ( out List< int >  navmeshFaceIds)

Member Data Documentation

◆ GhostEntityMove

bool TaleWorlds.MountAndBlade.BatteringRam.GhostEntityMove = true

◆ GhostEntitySpeedMultiplier

float TaleWorlds.MountAndBlade.BatteringRam.GhostEntitySpeedMultiplier = 1.0f

◆ WheelDiameter

float TaleWorlds.MountAndBlade.BatteringRam.WheelDiameter = 1.3f

◆ GateNavMeshId

int TaleWorlds.MountAndBlade.BatteringRam.GateNavMeshId = 7

◆ DisabledNavMeshID

int TaleWorlds.MountAndBlade.BatteringRam.DisabledNavMeshID = 8

◆ NavMeshIdToDisableOnDestination

int TaleWorlds.MountAndBlade.BatteringRam.NavMeshIdToDisableOnDestination = -1

◆ MinSpeed

float TaleWorlds.MountAndBlade.BatteringRam.MinSpeed = 0.5f

◆ MaxSpeed

float TaleWorlds.MountAndBlade.BatteringRam.MaxSpeed = 1.0f

◆ DamageMultiplier

float TaleWorlds.MountAndBlade.BatteringRam.DamageMultiplier = 10

Property Documentation

◆ MovementComponent

SiegeWeaponMovementComponent TaleWorlds.MountAndBlade.BatteringRam.MovementComponent
get

◆ WeaponSide

FormationAI.BehaviorSide TaleWorlds.MountAndBlade.BatteringRam.WeaponSide
get

◆ PathEntity

string TaleWorlds.MountAndBlade.BatteringRam.PathEntity
get

◆ EditorGhostEntityMove

bool TaleWorlds.MountAndBlade.BatteringRam.EditorGhostEntityMove
get

◆ State

RamState TaleWorlds.MountAndBlade.BatteringRam.State
getset

◆ TargetCastlePosition

MissionObject TaleWorlds.MountAndBlade.BatteringRam.TargetCastlePosition
get

◆ SiegeWeaponPriority

float TaleWorlds.MountAndBlade.BatteringRam.SiegeWeaponPriority
get

◆ OverTheWallNavMeshID

int TaleWorlds.MountAndBlade.BatteringRam.OverTheWallNavMeshID
get

◆ HoldLadders

bool TaleWorlds.MountAndBlade.BatteringRam.HoldLadders
get

◆ SendLadders

bool TaleWorlds.MountAndBlade.BatteringRam.SendLadders
get

◆ HasArrivedAtTarget

bool TaleWorlds.MountAndBlade.BatteringRam.HasArrivedAtTarget
getset

◆ IsDeactivated

override bool TaleWorlds.MountAndBlade.BatteringRam.IsDeactivated
get