ScriptedModelDraw.xsd 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="uri:ea.com:eala:asset" xmlns:at="uri:ea.com:eala:asset:type" xmlns:xas="uri:ea.com:eala:asset:schema" targetNamespace="uri:ea.com:eala:asset" elementFormDefault="qualified" xmlns:XmlEdit="http://tempuri.org/XmlEdit.xsd">
  3. <xs:complexType name="Animation">
  4. <xs:attribute name="Flags" type="xs:string" />
  5. <xs:attribute name="AnimationName" type="AssetReference" xas:refType="W3DAnimation"/>
  6. <xs:attribute name="AnimationMode" type="AnimationMode" />
  7. <xs:attribute name="AnimNickName" type="xs:string" />
  8. <xs:attribute name="Distance" type="SageReal" default="0.0" />
  9. <xs:attribute name="AnimationBlendTime" type="SageReal" default="5.0" />
  10. <xs:attribute name="AnimationMustCompleteBlend" type="SageBool" default="false" />
  11. <xs:attribute name="AnimationSpeedFactorMin" type="SageReal" default="1.0" />
  12. <xs:attribute name="AnimationSpeedFactorMax" type="SageReal" default="1.0" />
  13. <xs:attribute name="AnimationAbsoluteTime" type="Time" default="0.0s" />
  14. <xs:attribute name="UseWeaponTiming" type="SageBool" default="false" />
  15. <xs:attribute name="WeaponTimingOrdering" type="WeaponSlotType" />
  16. <xs:attribute name="WeaponTimingSlotID" type="SageInt" default="1" />
  17. <xs:attribute name="AnimationPriority" type="SageInt" default="1" />
  18. </xs:complexType>
  19. <xs:simpleType name="AnimationStateFlag">
  20. <xs:restriction base="xs:string">
  21. <xs:enumeration value="NONE" />
  22. <xs:enumeration value="RANDOMSTART" />
  23. <xs:enumeration value="START_FRAME_FIRST" />
  24. <xs:enumeration value="START_FRAME_LAST" />
  25. <xs:enumeration value="RESTART_ANIM_WHEN_COMPLETE" />
  26. <xs:enumeration value="MAINTAIN_FRAME_ACROSS_STATES" />
  27. <xs:enumeration value="MAINTAIN_FRAME_ACROSS_STATES2" />
  28. <xs:enumeration value="MAINTAIN_FRAME_ACROSS_STATES3" />
  29. <xs:enumeration value="MAINTAIN_FRAME_ACROSS_STATES4" />
  30. <xs:enumeration value="DO_NOT_PLAY_WHEN_UNPOWERED" />
  31. <xs:enumeration value="ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT" />
  32. <xs:enumeration value="IGNORE_MOVEMENT_SPEED" />
  33. </xs:restriction>
  34. </xs:simpleType>
  35. <xs:simpleType name="AnimationStateBitFlag">
  36. <xs:list itemType="AnimationStateFlag"/>
  37. </xs:simpleType>
  38. <xs:complexType name="AnimationState">
  39. <xs:sequence>
  40. <xs:element name="Animation" type="Animation" minOccurs="0" maxOccurs="unbounded" />
  41. <xs:element name="Script" type="Script" maxOccurs="1" minOccurs="0" />
  42. <xs:element name="FXEvent" type="FXEvent" minOccurs="0" maxOccurs="unbounded" />
  43. <xs:element name="LuaEvent" type="LuaEvent" minOccurs="0" maxOccurs="unbounded" />
  44. <xs:element name="ParticleSysBone" type="ParticleSysBone" minOccurs="0" maxOccurs="unbounded" />
  45. </xs:sequence>
  46. <xs:attribute name="ParseCondStateType" type="ParseCondStateType" use="required" />
  47. <xs:attribute name="AnimNickName" type="xs:string" />
  48. <xs:attribute name="ConditionsYes" type="ModelConditionBitFlags" />
  49. <xs:attribute name="Name" type="xs:string" />
  50. <xs:attribute name="StateName" type="xs:string" />
  51. <xs:attribute name="Flags" type="AnimationStateBitFlag" default="NONE" />
  52. <xs:attribute name="ShareAnimation" type="SageBool" default="false" />
  53. <xs:attribute name="EnteringStateFX" type="FXListRef" />
  54. <xs:attribute name="FrameForPristineBonePositions" type="SageInt" default="0" />
  55. <xs:attribute name="AllowRepeatInRandomPick" type="SageBool" default="false" />
  56. <xs:attribute name="SimilarRestart" type="SageBool" default="false" />
  57. </xs:complexType>
  58. <xs:complexType name="W3DScriptedModelDrawModuleData">
  59. <xs:complexContent>
  60. <xs:extension base="DrawModuleData">
  61. <xs:sequence>
  62. <xs:element name="ModelConditionState" type="ModelConditionState" minOccurs="0" maxOccurs="unbounded" />
  63. <xs:element name="AnimationState" type="AnimationState" minOccurs="0" maxOccurs="unbounded" />
  64. <xs:element name="AttachModel" type="ScriptedModelDrawAttachModel" minOccurs="0" maxOccurs="unbounded" />
  65. <xs:element name="EmbedPortal" type="ScriptedModelDrawEmbedPortal" minOccurs="0" maxOccurs="unbounded" />
  66. </xs:sequence>
  67. <xs:attribute name="Name" type="xs:string" />
  68. <xs:attribute name="InitialRecoilSpeed" type="Velocity" default="2.0" />
  69. <xs:attribute name="MaxRecoilDistance" type="SageReal" default="3.0" />
  70. <xs:attribute name="RecoilDamping" type="SageReal" default="0.4" />
  71. <xs:attribute name="RecoilSettleSpeed" type="Velocity" default="0.065" />
  72. <xs:attribute name="OkToChangeModelColor" type="SageBool" default="false" />
  73. <xs:attribute name="AnimationsRequirePower" type="SageBool" default="true" />
  74. <xs:attribute name="UseYAxisForTurretRotation" type="SageBool" default="false" />
  75. <xs:attribute name="MinLODRequired" type="ModelLODType" />
  76. <xs:attribute name="ProjectileBoneFeedbackEnabledSlots" type="WeaponSlotBitFlags" />
  77. <xs:attribute name="TrackMarks" type="TextureRef" />
  78. <xs:attribute name="TrackMarksOnlyWhenCorneringQuickly" type="SageBool" default="false" />
  79. <xs:attribute name="ExtraPublicBone" type="StringList" />
  80. <xs:attribute name="AttachToBoneInAnotherModule" type="xs:string" />
  81. <xs:attribute name="DependencySharedModelFlags" type="ModelConditionBitFlags" />
  82. <xs:attribute name="UseProducerTexture" type="SageBool" default="false" />
  83. <xs:attribute name="NoRotate" type="SageBool" default="false" />
  84. <xs:attribute name="UseFiringArcRotation" type="SageBool" default="false" />
  85. <xs:attribute name="Selectable" type="SageBool" default="true" />
  86. <xs:attribute name="RandomTextureFixedRandomIndex" type="SageBool" default="false" />
  87. <xs:attribute name="TrackMarksLeftBone" type="xs:string" />
  88. <xs:attribute name="TrackMarksRightBone" type="xs:string" />
  89. <xs:attribute name="ParticleBonesCheckDrawable" type="SageBool" default="false" />
  90. <xs:attribute name="ShadowForceDisable" type="SageBool" default="false" />
  91. <xs:attribute name="HighDetailLODThreshold" type="SageReal" default="0.0" />
  92. <xs:attribute name="LowDetailLODThreshold" type="SageReal" default="0.0" />
  93. <xs:attribute name="SwitchModelLODMode" type="SageBool" default="false" />
  94. <xs:attribute name="StaticModelLODMode" type="SageBool" default="false" />
  95. <xs:attribute name="ShowShadowWhileContained" type="SageBool" default="false" />
  96. <xs:attribute name="WadingParticleSys" type="FXParticleSystemRef" />
  97. <xs:attribute name="AlphaCameraFadeOuterRadius" type="SageReal" default="0.0" />
  98. <xs:attribute name="AlphaCameraFadeInnerRadius" type="SageReal" default="0.0" />
  99. <xs:attribute name="AlphaCameraAtInnerRadius" type="Percentage" default="100" />
  100. <xs:attribute name="BirthFadeTime" type="SageInt" default="0" />
  101. <xs:attribute name="MultiPlayerOnly" type="SageBool" default="false" />
  102. <xs:attribute name="AffectedByStealth" type="SageBool" default="true" />
  103. <xs:attribute name="InvertStealthOpacity" type="SageBool" default="false" />
  104. <xs:attribute name="HighDetailOnly" type="SageBool" default="false" />
  105. </xs:extension>
  106. </xs:complexContent>
  107. </xs:complexType>
  108. </xs:schema>