Table of Contents

Class Trebuchet

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class Trebuchet : RangedSiegeWeapon, IFocusable, IOrderable, IDetachment, ITargetable, ISpawnable
Inheritance
Trebuchet
Implements
Derived
Inherited Members

Constructors

Trebuchet()

public Trebuchet()

Fields

AIAmmoLoadTag

public string AIAmmoLoadTag

Field Value

string

BodyFireAnimation

public string BodyFireAnimation

Field Value

string

BodySetUpAnimation

public string BodySetUpAnimation

Field Value

string

IdleEmptyAnimation

public string IdleEmptyAnimation

Field Value

string

IdleWithAmmoAnimation

public string IdleWithAmmoAnimation

Field Value

string

ProjectileSpeed

public float ProjectileSpeed

Field Value

float

RopeFireAnimation

public string RopeFireAnimation

Field Value

string

RopeSetUpAnimation

public string RopeSetUpAnimation

Field Value

string

SlingFireAnimation

public string SlingFireAnimation

Field Value

string

SlingSetUpAnimation

public string SlingSetUpAnimation

Field Value

string

TimeGapBetweenShootActionAndProjectileLeaving

public float TimeGapBetweenShootActionAndProjectileLeaving

Field Value

float

TrebuchetDirectionRestriction

public const float TrebuchetDirectionRestriction = 1.3962635

Field Value

float

VerticalAdjusterAnimation

public string VerticalAdjusterAnimation

Field Value

string

Properties

DirectionRestriction

public override float DirectionRestriction { get; }

Property Value

float

HasAmmo

protected override bool HasAmmo { get; set; }

Property Value

bool

HorizontalAimSensitivity

protected override float HorizontalAimSensitivity { get; }

Property Value

float

ShootingDirection

protected override Vec3 ShootingDirection { get; }

Property Value

Vec3

ShootingSpeed

protected override float ShootingSpeed { get; }

Property Value

float

VerticalAimSensitivity

protected override float VerticalAimSensitivity { get; }

Property Value

float

Methods

AfterMissionStart()

public override void AfterMissionStart()

CanRotate()

protected override bool CanRotate()

Returns

bool

CreateAIBehaviorObject()

public override UsableMachineAIBase CreateAIBehaviorObject()

Returns

UsableMachineAIBase

GetActionTextForStandingPoint(UsableMissionObject)

public override TextObject GetActionTextForStandingPoint(UsableMissionObject usableGameObject)

Parameters

usableGameObject UsableMissionObject

Returns

TextObject

GetDescriptionText(GameEntity)

public override string GetDescriptionText(GameEntity gameEntity = null)

Parameters

gameEntity GameEntity

Returns

string

GetDetachmentWeightAux(BattleSideEnum)

protected override float GetDetachmentWeightAux(BattleSideEnum side)

Parameters

side BattleSideEnum

Returns

float

GetSiegeEngineType()

public override SiegeEngineType GetSiegeEngineType()

Returns

SiegeEngineType

GetSoundEventIndices()

protected override void GetSoundEventIndices()

GetTargetFlags()

public override TargetFlags GetTargetFlags()

Returns

TargetFlags

GetTargetValue(List<Vec3>)

public override float GetTargetValue(List<Vec3> weaponPos)

Parameters

weaponPos List<Vec3>

Returns

float

GetTickRequirement()

public override ScriptComponentBehavior.TickRequirement GetTickRequirement()

Returns

ScriptComponentBehavior.TickRequirement

IsStandingPointNotUsedOnAccountOfBeingAmmoLoad(StandingPoint)

protected override bool IsStandingPointNotUsedOnAccountOfBeingAmmoLoad(StandingPoint standingPoint)

Parameters

standingPoint StandingPoint

Returns

bool

OnInit()

protected override void OnInit()

OnRangedSiegeWeaponStateChange()

protected override void OnRangedSiegeWeaponStateChange()

OnTick(float)

protected override void OnTick(float dt)

Parameters

dt float

OnTickParallel(float)

protected override void OnTickParallel(float dt)

Parameters

dt float

ProcessTargetValue(float, TargetFlags)

public override float ProcessTargetValue(float baseValue, TargetFlags flags)

Parameters

baseValue float
flags TargetFlags

Returns

float

RegisterAnimationParameters()

protected override void RegisterAnimationParameters()

SetActivationLoadAmmoPoint(bool)

protected override void SetActivationLoadAmmoPoint(bool activate)

Parameters

activate bool

SetSpawnedFromSpawner()

public void SetSpawnedFromSpawner()

UpdateProjectilePosition()

protected override void UpdateProjectilePosition()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).