Class MBAgentVisuals
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
[EngineClass("Agent_visuals")]
public sealed class MBAgentVisuals : NativeObject
- Inheritance
-
MBAgentVisuals
- Inherited Members
Methods
AddChildEntity(GameEntity)
public void AddChildEntity(GameEntity entity)
Parameters
entityGameEntity
AddHorseReinsClothMesh(MetaMesh, MetaMesh)
public void AddHorseReinsClothMesh(MetaMesh reinMesh, MetaMesh ropeMesh)
Parameters
AddMultiMesh(MetaMesh, BodyMeshTypes)
public void AddMultiMesh(MetaMesh metaMesh, BodyMeshTypes bodyMeshIndex)
Parameters
metaMeshMetaMeshbodyMeshIndexBodyMeshTypes
AddPrefabToAgentVisualBoneByBoneType(string, HumanBone)
public CompositeComponent AddPrefabToAgentVisualBoneByBoneType(string prefabName, HumanBone boneType)
Parameters
Returns
AddPrefabToAgentVisualBoneByRealBoneIndex(string, sbyte)
public CompositeComponent AddPrefabToAgentVisualBoneByRealBoneIndex(string prefabName, sbyte realBoneIndex)
Parameters
Returns
AddSkinMeshes(SkinGenerationParams, BodyProperties, bool, bool)
public void AddSkinMeshes(SkinGenerationParams skinParams, BodyProperties bodyProperties, bool useGPUMorph, bool useFaceCache)
Parameters
skinParamsSkinGenerationParamsbodyPropertiesBodyPropertiesuseGPUMorphbooluseFaceCachebool
AddWeaponToAgentEntity(int, in WeaponData, WeaponStatsData[], in WeaponData, WeaponStatsData[], GameEntity)
public void AddWeaponToAgentEntity(int slotIndex, in WeaponData weaponData, WeaponStatsData[] weaponStatsData, in WeaponData ammoWeaponData, WeaponStatsData[] ammoWeaponStatsData, GameEntity cachedEntity)
Parameters
slotIndexintweaponDataWeaponDataweaponStatsDataWeaponStatsData[]ammoWeaponDataWeaponDataammoWeaponStatsDataWeaponStatsData[]cachedEntityGameEntity
ApplySkeletonScale(Vec3, float, sbyte[], Vec3[])
public void ApplySkeletonScale(Vec3 mountSitBoneScale, float mountRadiusAdder, sbyte[] boneIndices, Vec3[] boneScales)
Parameters
BatchLastLodMeshes()
public void BatchLastLodMeshes()
CheckResources(bool)
public bool CheckResources(bool addToQueue)
Parameters
addToQueuebool
Returns
ClearAllWeaponMeshes()
public void ClearAllWeaponMeshes()
ClearVisualComponents(bool)
public void ClearVisualComponents(bool removeSkeleton)
Parameters
removeSkeletonbool
ClearWeaponMeshes(EquipmentIndex)
public void ClearWeaponMeshes(EquipmentIndex index)
Parameters
indexEquipmentIndex
CreateAgentVisuals(Scene, string, Vec3)
public static MBAgentVisuals CreateAgentVisuals(Scene scene, string ownerName, Vec3 eyeOffset)
Parameters
Returns
CreateParticleSystemAttachedToBone(int, sbyte, ref MatrixFrame)
public void CreateParticleSystemAttachedToBone(int runtimeParticleindex, sbyte boneIndex, ref MatrixFrame boneLocalParticleFrame)
Parameters
runtimeParticleindexintboneIndexsbyteboneLocalParticleFrameMatrixFrame
CreateParticleSystemAttachedToBone(string, sbyte, ref MatrixFrame)
public void CreateParticleSystemAttachedToBone(string particleName, sbyte boneIndex, ref MatrixFrame boneLocalParticleFrame)
Parameters
particleNamestringboneIndexsbyteboneLocalParticleFrameMatrixFrame
FillEntityWithBodyMeshesWithoutAgentVisuals(GameEntity, SkinGenerationParams, BodyProperties, MetaMesh)
public static void FillEntityWithBodyMeshesWithoutAgentVisuals(GameEntity entity, SkinGenerationParams skinParams, BodyProperties bodyProperties, MetaMesh glovesMesh)
Parameters
entityGameEntityskinParamsSkinGenerationParamsbodyPropertiesBodyPropertiesglovesMeshMetaMesh
GetAttachedWeaponEntity(int)
public GameEntity GetAttachedWeaponEntity(int attachedWeaponIndex)
Parameters
attachedWeaponIndexint
Returns
GetBodyMeshIndex(EquipmentIndex)
public static BodyMeshTypes GetBodyMeshIndex(EquipmentIndex equipmentIndex)
Parameters
equipmentIndexEquipmentIndex
Returns
GetBoneEntitialFrame(sbyte, bool)
public MatrixFrame GetBoneEntitialFrame(sbyte bone, bool useBoneMapping)
Parameters
Returns
GetBoneTypeData(sbyte)
public BoneBodyTypeData GetBoneTypeData(sbyte boneIndex)
Parameters
boneIndexsbyte
Returns
GetCurrentRagdollState()
public RagdollState GetCurrentRagdollState()
Returns
GetEntity()
public GameEntity GetEntity()
Returns
GetFacegenScalingMatrix()
public MatrixFrame GetFacegenScalingMatrix()
Returns
GetFrame()
public MatrixFrame GetFrame()
Returns
GetGlobalFrame()
public MatrixFrame GetGlobalFrame()
Returns
GetGlobalStableEyePoint(bool)
public Vec3 GetGlobalStableEyePoint(bool isHumanoid)
Parameters
isHumanoidbool
Returns
GetGlobalStableNeckPoint(bool)
public Vec3 GetGlobalStableNeckPoint(bool isHumanoid)
Parameters
isHumanoidbool
Returns
GetRealBoneIndex(HumanBone)
public sbyte GetRealBoneIndex(HumanBone boneType)
Parameters
boneTypeHumanBone
Returns
GetSkeleton()
public Skeleton GetSkeleton()
Returns
GetVisible()
public bool GetVisible()
Returns
IsValid()
public bool IsValid()
Returns
LazyUpdateAgentRendererData()
public void LazyUpdateAgentRendererData()
MakeVoice(int, Vec3)
public void MakeVoice(int voiceId, Vec3 position)
Parameters
RemoveChildEntity(GameEntity, int)
public void RemoveChildEntity(GameEntity entity, int removeReason)
Parameters
entityGameEntityremoveReasonint
ReplaceMeshWithMesh(MetaMesh, MetaMesh, BodyMeshTypes)
public void ReplaceMeshWithMesh(MetaMesh oldMetaMesh, MetaMesh newMetaMesh, BodyMeshTypes bodyMeshIndex)
Parameters
oldMetaMeshMetaMeshnewMetaMeshMetaMeshbodyMeshIndexBodyMeshTypes
Reset()
public void Reset()
ResetNextFrame()
public void ResetNextFrame()
SetAgentActionChannel(int, int, float, float, bool)
public void SetAgentActionChannel(int actionChannelNo, int actionIndex, float channelParameter = 0, float blendPeriodOverride = -0.2, bool forceFaceMorphRestart = true)
Parameters
actionChannelNointactionIndexintchannelParameterfloatblendPeriodOverridefloatforceFaceMorphRestartbool
SetAgentLocalSpeed(Vec2)
public void SetAgentLocalSpeed(Vec2 speed)
Parameters
speedVec2
SetAgentLodZeroOrMax(bool)
public void SetAgentLodZeroOrMax(bool makeZero)
Parameters
makeZerobool
SetClothComponentKeepStateOfAllMeshes(bool)
public void SetClothComponentKeepStateOfAllMeshes(bool keepState)
Parameters
keepStatebool
SetClothWindToWeaponAtIndex(Vec3, bool, EquipmentIndex)
public void SetClothWindToWeaponAtIndex(Vec3 windDirection, bool isLocal, EquipmentIndex weaponIndex)
Parameters
windDirectionVec3isLocalboolweaponIndexEquipmentIndex
SetContourColor(uint?, bool)
public void SetContourColor(uint? color, bool alwaysVisible = true)
Parameters
SetEnableOcclusionCulling(bool)
public void SetEnableOcclusionCulling(bool enable)
Parameters
enablebool
SetEntity(GameEntity)
public void SetEntity(GameEntity value)
Parameters
valueGameEntity
SetFaceGenerationParams(FaceGenerationParams)
public void SetFaceGenerationParams(FaceGenerationParams faceGenerationParams)
Parameters
faceGenerationParamsFaceGenerationParams
SetFrame(ref MatrixFrame)
public void SetFrame(ref MatrixFrame frame)
Parameters
frameMatrixFrame
SetLodAtlasShadingIndex(int, bool, uint, uint)
public void SetLodAtlasShadingIndex(int index, bool useTeamColor, uint teamColor1, uint teamColor2)
Parameters
SetLookDirection(Vec3)
public void SetLookDirection(Vec3 direction)
Parameters
directionVec3
SetSetupMorphNode(bool)
public void SetSetupMorphNode(bool value)
Parameters
valuebool
SetSkeleton(Skeleton)
public void SetSkeleton(Skeleton newSkeleton)
Parameters
newSkeletonSkeleton
SetVisible(bool)
public void SetVisible(bool value)
Parameters
valuebool
SetVoiceDefinitionIndex(int, float)
public void SetVoiceDefinitionIndex(int voiceDefinitionIndex, float voicePitch)
Parameters
SetWieldedWeaponIndices(int, int)
public void SetWieldedWeaponIndices(int slotIndexRightHand, int slotIndexLeftHand)
Parameters
StartRhubarbRecord(string, int)
public void StartRhubarbRecord(string path, int soundId)
Parameters
Tick(MBAgentVisuals, float, bool, float)
public void Tick(MBAgentVisuals parentAgentVisuals, float dt, bool entityMoving, float speed)
Parameters
parentAgentVisualsMBAgentVisualsdtfloatentityMovingboolspeedfloat
UpdateQuiverMeshesWithoutAgent(int, int)
public void UpdateQuiverMeshesWithoutAgent(int weaponIndex, int ammoCount)
Parameters
UpdateSkeletonScale(int)
public void UpdateSkeletonScale(int bodyDeformType)
Parameters
bodyDeformTypeint
UseScaledWeapons(bool)
public void UseScaledWeapons(bool value)
Parameters
valuebool
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).