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

Inherits TaleWorlds.MountAndBlade.RangedSiegeWeapon, and TaleWorlds.MountAndBlade.Objects.Siege.ISpawnable.

Inherited by TaleWorlds.MountAndBlade.Objects.Siege.FireTrebuchet.

Public Member Functions

override TextObject GetActionTextForStandingPoint (UsableMissionObject usableGameObject)
 
override string GetDescriptionText (GameEntity gameEntity=null)
 
override SiegeEngineType GetSiegeEngineType ()
 
override UsableMachineAIBase CreateAIBehaviorObject ()
 
override void AfterMissionStart ()
 
override float ProcessTargetValue (float baseValue, TargetFlags flags)
 
override TargetFlags GetTargetFlags ()
 
override float GetTargetValue (List< Vec3 > weaponPos)
 
override TickRequirement GetTickRequirement ()
 
void SetSpawnedFromSpawner ()
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
delegate void OnSiegeWeaponReloadDone ()
 
virtual void SetAmmo (int ammoLeft)
 
void ChangeProjectileEntityClient (int index)
 
override bool ReadFromNetwork ()
 
override void WriteToNetwork ()
 
override bool IsInRangeToCheckAlternativePoints (Agent agent)
 
override StandingPoint GetBestPointAlternativeTo (StandingPoint standingPoint, Agent agent)
 
override TickRequirement GetTickRequirement ()
 
void ToggleTrajectoryVisibility (bool isVisible)
 
void GiveInput (float inputX, float inputY)
 
void GiveExactInput (float targetX, float targetY)
 
virtual float GetTargetDirection (Vec3 target)
 Calculates the required direction of this ranged siege weapon to hit the param target.
 
virtual float GetTargetReleaseAngle (Vec3 target)
 Calculates the required release angle of this ranged siege weapon to hit the param target.
 
virtual bool AimAtThreat (Threat threat)
 Rotates the param current direction angle towards the param target direction angle.
 
virtual void AimAtRotation (float horizontalRotation, float verticalRotation)
 
bool Shoot ()
 Shoots if it is ready to shoot.
 
void ManualReload ()
 
void AiRequestsShoot ()
 
void AiRequestsManualReload ()
 
abstract override SiegeEngineType GetSiegeEngineType ()
 
bool CanShootAtBox (Vec3 boxMin, Vec3 boxMax, uint attempts=5)
 
bool CanShootAtBoxSimplified (Vec3 boxMin, Vec3 boxMax)
 
bool CanShootAtThreat (Threat threat)
 
Vec3 GetEstimatedTargetMovementVector (Vec3 targetCurrentPosition, Vec3 targetVelocity)
 
bool CanShootAtAgent (Agent agent)
 
bool CanShootAtPoint (Vec3 target)
 
override OrderType GetOrder (BattleSideEnum side)
 
abstract float ProcessTargetValue (float baseValue, TargetFlags flags)
 
- 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 ()
 
void SetSpawnedFromSpawner ()
 

Public Attributes

float ProjectileSpeed = 45f
 
string AIAmmoLoadTag = "ammoload_ai"
 
string IdleWithAmmoAnimation
 
string IdleEmptyAnimation
 
string BodyFireAnimation
 
string BodySetUpAnimation
 
string SlingFireAnimation
 
string SlingSetUpAnimation
 
string RopeFireAnimation
 
string RopeSetUpAnimation
 
string VerticalAdjusterAnimation
 
float TimeGapBetweenShootActionAndProjectileLeaving = 1.6f
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
string MissileItemID
 
FiringFocus Focus
 
int startingAmmoCount = 20
 
float TopReleaseAngleRestriction = MBMath.PI / 2.0f
 ///
 
float BottomReleaseAngleRestriction = -MBMath.PI / 2.0f
 
float VisualizeReleaseTrajectoryAngle
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.UsableMachine
string PilotStandingPointTag = "Pilot"
 
string AmmoPickUpTag = "ammopickup"
 
string WaitStandingPointTag = "Wait"
 

Static Public Attributes

const float TrebuchetDirectionRestriction = DefaultDirectionRestriction / 1.5f
 
- Static Public Attributes inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
const float DefaultDirectionRestriction = MBMath.PI / 1.5f
 
const string MultipleProjectileId = "grapeshot_fire_stack"
 
const string MultipleProjectileFlyingId = "grapeshot_fire_projectile"
 
const int MultipleProjectileCount = 5
 
const string CanGoAmmoPickupTag = "can_pick_up_ammo"
 
const string DontApplySidePenaltyTag = "no_ammo_pick_up_penalty"
 
const string ReloadTag = "reload"
 
const string AmmoLoadTag = "ammoload"
 
const string CameraHolderTag = "cameraHolder"
 
const string ProjectileTag = "projectile"
 
- Static Public Attributes inherited from TaleWorlds.MountAndBlade.UsableMachine
const string UsableMachineParentTag = "machine_parent"
 

Protected Member Functions

override void RegisterAnimationParameters ()
 
override void GetSoundEventIndices ()
 
override void OnRangedSiegeWeaponStateChange ()
 
override bool CanRotate ()
 
override void SetActivationLoadAmmoPoint (bool activate)
 
override void UpdateProjectilePosition ()
 
override float GetDetachmentWeightAux (BattleSideEnum side)
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
virtual void ConsumeAmmo ()
 
virtual void CheckAmmo ()
 
abstract void RegisterAnimationParameters ()
 
abstract void GetSoundEventIndices ()
 
void ChangeProjectileEntityServer (Agent loadingAgent, string missileItemID)
 
virtual void UpdateProjectilePosition ()
 
virtual void OnRangedSiegeWeaponStateChange ()
 
virtual void SetActivationLoadAmmoPoint (bool activate)
 
float GetDetachmentWeightAuxForExternalAmmoWeapons (BattleSideEnum side)
 
override void OnRemoved (int removeReason)
 
virtual float CalculateShootingRange (float heightDifference)
 
virtual void HandleUserAiming (float dt)
 
virtual bool CanRotate ()
 
virtual void ApplyAimChange ()
 
virtual void ApplyCurrentDirectionToEntity ()
 
void OnLoadingAmmoPointUsingCancelled (Agent agent, bool isCanceledBecauseOfAnimation)
 
void OnAmmoPickupUsingCancelled (Agent agent, bool isCanceledBecauseOfAnimation)
 
void SendAgentToAmmoPickup (Agent agent)
 
void SendReloaderAgentToOriginalPoint ()
 
void OnRotationStarted ()
 
void OnRotationStopped ()
 
override GameEntity GetEntityToAttachNavMeshFaces ()
 
virtual void UpdateAmmoMesh ()
 
- 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

override float DirectionRestriction [get]
 
override float ShootingSpeed [get]
 
override float HorizontalAimSensitivity [get]
 
override float VerticalAimSensitivity [get]
 
override Vec3 ShootingDirection [get]
 
override Vec3 VisualizationShootingDirection [get]
 
override bool HasAmmo [get, set]
 
- Properties inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
WeaponState State [get, set]
 
virtual float MaximumBallisticError [get]
 
abstract float ShootingSpeed [get]
 
virtual Vec3 CanShootAtPointCheckingOffset [get]
 
GameEntity cameraHolder [get]
 
SynchedMissionObject Projectile [get]
 
Vec3 MissleStartingPositionForSimulation [get]
 
string SkeletonName [set]
 
string FireAnimation [set]
 
string SetUpAnimation [set]
 
int FireAnimationIndex [set]
 
int SetUpAnimationIndex [set]
 
int AmmoCount [get, protected set]
 
virtual bool HasAmmo [get, set]
 
virtual float DirectionRestriction [get]
 Central angle of restriction circular sector of weapon's direction, θ, measured in radians, such that 0<θ≤π/2.
 
Vec3 OriginalDirection [get]
 
virtual float HorizontalAimSensitivity [get]
 
virtual float VerticalAimSensitivity [get]
 
virtual Vec3 ShootingDirection [get]
 
virtual Vec3 VisualizationShootingDirection [get]
 
virtual Vec3 ProjectileEntityCurrentGlobalPosition [get]
 
override BattleSideEnum Side [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]
 

Additional Inherited Members

- Public Types inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
enum  WeaponState {
  Invalid = -1 ,
  Idle = 0 ,
  WaitingBeforeProjectileLeaving ,
  Shooting ,
  WaitingAfterShooting ,
  WaitingBeforeReloading ,
  LoadingAmmo ,
  WaitingBeforeIdle ,
  Reloading ,
  ReloadingPaused ,
  NumberOfStates
}
 The cycle of states is as follows: Idle => WaitingBeforeProjectileLeaving => Shooting => WaitingBeforeReloading => Reloading => Idle. Shoot method should be called for moving from Idle state to WaitingBeforeProjectileLeaving state. All other state changes are done in StateUpdate method. Default value is Idle state. More...
 
enum  FiringFocus {
  Troops ,
  Walls ,
  RangedSiegeWeapons ,
  PrimarySiegeWeapons
}
 
enum  CameraState {
  StickToWeapon ,
  DontMove ,
  MoveDownToReload ,
  RememberLastShotDirection ,
  FreeMove ,
  ApproachToCamera
}
 
- 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
}
 
- Static Protected Member Functions inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
static bool ApproachToAngle (ref float angle, float angleToApproach, bool isMouse, float speed_limit, float dt, float sensitivity)
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
bool UsesMouseForAiming
 
GameEntity MissileStartingPositionEntityForSimulation
 
Skeleton[] Skeletons
 
SynchedMissionObject[] SkeletonOwnerObjects
 
string[] SkeletonNames
 
string[] FireAnimations
 
string[] SetUpAnimations
 
int[] FireAnimationIndices
 
int[] SetUpAnimationIndices
 
SynchedMissionObject RotationObject
 
SoundEvent MoveSound = null
 
SoundEvent ReloadSound = null
 
int MoveSoundIndex = -1
 
int ReloadSoundIndex = -1
 
int ReloadEndSoundIndex = -1
 
ItemObject OriginalMissileItem
 
ItemObject LoadedMissileItem
 
List< StandingPointCanPickUpAmmoStandingPoints
 
List< StandingPointReloadStandingPoints
 
List< StandingPointWithWeaponRequirementAmmoPickUpStandingPoints
 
StandingPointWithWeaponRequirement LoadAmmoStandingPoint
 
Dictionary< StandingPoint, float > PilotReservePriorityValues = new Dictionary<StandingPoint, float>()
 
Agent ReloaderAgent
 
StandingPoint ReloaderAgentOriginalPoint
 
bool AttackClickWillReload = false
 
bool WeaponNeedsClickToReload = false
 
int CurrentAmmo = 1
 
float targetDirection
 
float targetReleaseAngle
 
float cameraDirection
 
float cameraReleaseAngle
 
float reloadTargetReleaseAngle
 
float maxRotateSpeed
 
float dontMoveTimer = 0.0f
 
float currentDirection
 The angle of current direction, θ, measured in radians, such that -π≤θ≤π.
 
float currentReleaseAngle
 The angle of launch, θ, measured in radians.
 
float ReleaseAngleRestrictionCenter
 
float ReleaseAngleRestrictionAngle
 
float timeGapBetweenShootingEndAndReloadingStart = 0.6f
 
float timeGapBetweenShootActionAndProjectileLeaving = 0.0f
 
BattleSideEnum _defaultSide
 
SiegeMachineStonePile _stonePile
 
- 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
 
- Events inherited from TaleWorlds.MountAndBlade.RangedSiegeWeapon
OnSiegeWeaponReloadDone OnReloadDone
 
Action< RangedSiegeWeapon, AgentOnAgentLoadsMachine
 

Member Function Documentation

◆ GetActionTextForStandingPoint()

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

◆ GetDescriptionText()

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

◆ RegisterAnimationParameters()

override void TaleWorlds.MountAndBlade.Trebuchet.RegisterAnimationParameters ( )
protectedvirtual

◆ GetSiegeEngineType()

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

◆ GetSoundEventIndices()

override void TaleWorlds.MountAndBlade.Trebuchet.GetSoundEventIndices ( )
protectedvirtual

◆ CreateAIBehaviorObject()

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

◆ AfterMissionStart()

override void TaleWorlds.MountAndBlade.Trebuchet.AfterMissionStart ( )
virtual

◆ OnRangedSiegeWeaponStateChange()

override void TaleWorlds.MountAndBlade.Trebuchet.OnRangedSiegeWeaponStateChange ( )
protectedvirtual

◆ ProcessTargetValue()

override float TaleWorlds.MountAndBlade.Trebuchet.ProcessTargetValue ( float  baseValue,
TargetFlags  flags 
)
virtual

◆ GetTargetFlags()

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

◆ GetTargetValue()

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

◆ CanRotate()

override bool TaleWorlds.MountAndBlade.Trebuchet.CanRotate ( )
protectedvirtual

◆ GetTickRequirement()

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

◆ SetActivationLoadAmmoPoint()

override void TaleWorlds.MountAndBlade.Trebuchet.SetActivationLoadAmmoPoint ( bool  activate)
protectedvirtual

◆ UpdateProjectilePosition()

override void TaleWorlds.MountAndBlade.Trebuchet.UpdateProjectilePosition ( )
protectedvirtual

◆ GetDetachmentWeightAux()

override float TaleWorlds.MountAndBlade.Trebuchet.GetDetachmentWeightAux ( BattleSideEnum  side)
protectedvirtual

◆ SetSpawnedFromSpawner()

void TaleWorlds.MountAndBlade.Trebuchet.SetSpawnedFromSpawner ( )

Member Data Documentation

◆ TrebuchetDirectionRestriction

const float TaleWorlds.MountAndBlade.Trebuchet.TrebuchetDirectionRestriction = DefaultDirectionRestriction / 1.5f
static

◆ ProjectileSpeed

float TaleWorlds.MountAndBlade.Trebuchet.ProjectileSpeed = 45f

◆ AIAmmoLoadTag

string TaleWorlds.MountAndBlade.Trebuchet.AIAmmoLoadTag = "ammoload_ai"

◆ IdleWithAmmoAnimation

string TaleWorlds.MountAndBlade.Trebuchet.IdleWithAmmoAnimation

◆ IdleEmptyAnimation

string TaleWorlds.MountAndBlade.Trebuchet.IdleEmptyAnimation

◆ BodyFireAnimation

string TaleWorlds.MountAndBlade.Trebuchet.BodyFireAnimation

◆ BodySetUpAnimation

string TaleWorlds.MountAndBlade.Trebuchet.BodySetUpAnimation

◆ SlingFireAnimation

string TaleWorlds.MountAndBlade.Trebuchet.SlingFireAnimation

◆ SlingSetUpAnimation

string TaleWorlds.MountAndBlade.Trebuchet.SlingSetUpAnimation

◆ RopeFireAnimation

string TaleWorlds.MountAndBlade.Trebuchet.RopeFireAnimation

◆ RopeSetUpAnimation

string TaleWorlds.MountAndBlade.Trebuchet.RopeSetUpAnimation

◆ VerticalAdjusterAnimation

string TaleWorlds.MountAndBlade.Trebuchet.VerticalAdjusterAnimation

◆ TimeGapBetweenShootActionAndProjectileLeaving

float TaleWorlds.MountAndBlade.Trebuchet.TimeGapBetweenShootActionAndProjectileLeaving = 1.6f

Property Documentation

◆ DirectionRestriction

override float TaleWorlds.MountAndBlade.Trebuchet.DirectionRestriction
get

◆ ShootingSpeed

override float TaleWorlds.MountAndBlade.Trebuchet.ShootingSpeed
getprotected

◆ HorizontalAimSensitivity

override float TaleWorlds.MountAndBlade.Trebuchet.HorizontalAimSensitivity
getprotected

◆ VerticalAimSensitivity

override float TaleWorlds.MountAndBlade.Trebuchet.VerticalAimSensitivity
getprotected

◆ ShootingDirection

override Vec3 TaleWorlds.MountAndBlade.Trebuchet.ShootingDirection
getprotected

◆ VisualizationShootingDirection

override Vec3 TaleWorlds.MountAndBlade.Trebuchet.VisualizationShootingDirection
getprotected

◆ HasAmmo

override bool TaleWorlds.MountAndBlade.Trebuchet.HasAmmo
getsetprotected