Entities.def
上传用户:gmtled
上传日期:2022-07-26
资源大小:468k
文件大小:5k
源码类别:

3D图形编程

开发平台:

Visual C++

  1. ENTITY
  2. {
  3. NAME = "Test Bars";
  4. TYPE = 1;
  5. CLASS = TESTPATTERN;
  6. }
  7. ENTITY
  8. {
  9. NAME           = "F-15C";
  10. TYPE           = 103;
  11. CLASS          = FIXEDWING;
  12. ALPHA          = 255;
  13. INHERIT_ALPHA  = FALSE;
  14. CLAMP_MODE     = NONE;
  15. ANIM_DIRECTION = FORWARD;
  16. ANIM_LOOP      = FALSE;
  17. ARTPART
  18. {
  19. NAME            = "Refueling Probe";
  20. ID = 12;
  21. ENABLE = TRUE;
  22. X_OFFSET = 1;
  23. X_OFFSET_ENABLE = TRUE;
  24. Y_OFFSET = 2;
  25. Y_OFFSET_ENABLE = FALSE;
  26. Z_OFFSET = 3;
  27. Z_OFFSET_ENABLE = TRUE;
  28. ROLL = 45;
  29. ROLL_ENABLE = FALSE;
  30. PITCH = 18;
  31. PITCH_ENABLE = TRUE;
  32. YAW = 12.2;
  33. YAW_ENABLE = FALSE;
  34. }
  35. ARTPART
  36. {
  37. NAME            = "Slats";
  38. ID = 11;
  39. ENABLE = FALSE;
  40. X_OFFSET = 5;
  41. X_OFFSET_ENABLE = FALSE;
  42. Y_OFFSET = 6;
  43. Y_OFFSET_ENABLE = TRUE;
  44. Z_OFFSET = 7;
  45. Z_OFFSET_ENABLE = FALSE;
  46. ROLL = -30;
  47. ROLL_ENABLE = TRUE;
  48. PITCH = 1;
  49. PITCH_ENABLE = FALSE;
  50. YAW = 0;
  51. YAW_ENABLE = TRUE;
  52. }
  53. COMPONENT
  54. {
  55. NAME        = "Formation Lights";
  56. ID          = 1000;
  57. INSTANCE_ID = -1;
  58. DEF_STATE   = 0;
  59. STATE
  60. {
  61. NAME  = "Off";
  62. VALUE = 0;
  63. }
  64. STATE
  65. {
  66. NAME  = "On";
  67. VALUE = 1;
  68. }
  69. }
  70. COMPONENT
  71. {
  72. NAME        = "Brake";
  73. ID          = 1002;
  74. INSTANCE_ID = -1;
  75. DEF_STATE   = 0;
  76. DEF_DATA1   = 11, INT32;
  77. DEF_DATA2   = 21, UINT32;
  78. DEF_DATA3   = 31000, UINT64;
  79. // DEF_DATA4 not used
  80. DEF_DATA5   = 13.908, DOUBLE;
  81. // DEF_DATA6 not used
  82. STATE
  83. {
  84. NAME  = "Up";
  85. VALUE = 2;
  86. }
  87. STATE
  88. {
  89. NAME  = "Mid";
  90. VALUE = 1;
  91. }
  92. STATE
  93. {
  94. NAME  = "Down";
  95. VALUE = 0;
  96. }
  97. }
  98. COLLISION_SEGMENT
  99. {
  100. NAME = "Fore-to-Aft";
  101. ENABLE = TRUE;
  102. ID = 1;
  103. X1 = 10;
  104. Y1 = 0;
  105. Z1 = .2;
  106. X2 = -20;
  107. Y2 = 0;
  108. Z2 = .2;
  109. MATERIAL_MASK = 0;
  110. }
  111. COLLISION_SEGMENT
  112. {
  113. NAME = "Wing-to-Wing";
  114. ENABLE = FALSE;
  115. ID = 2;
  116. X1 = -2;
  117. Y1 = -10;
  118. Z1 = 0;
  119. X2 = -2;
  120. Y2 = 10;
  121. Z2 = 0;
  122. MATERIAL_MASK = 0;
  123. }
  124. COLLISION_VOLUME
  125. {
  126. NAME = "Cuboidal";
  127. TYPE = CUBOID;
  128. ENABLE = FALSE;
  129. ID = 0;
  130. X = 1;
  131. Y = 2;
  132. Z = 3;
  133. HEIGHT = 10;
  134. WIDTH = 20;
  135. DEPTH = 30;
  136. YAW = 4;
  137. PITCH = 5;
  138. ROLL = 6;
  139. }
  140. COLLISION_VOLUME
  141. {
  142. NAME = "Spherical";
  143. TYPE = SPHERE;
  144. ENABLE = FALSE;
  145. ID = 1;
  146. X = -1;
  147. Y = -2;
  148. Z = -3;
  149. RADIUS = 5;
  150. YAW = -4;
  151. PITCH = -5;
  152. ROLL = -6;
  153. }
  154. ATTACH_POINT
  155. {
  156. NAME = "Left Wing Pylon";
  157. ID = 0;
  158. }
  159. ATTACH_POINT
  160. {
  161. NAME = "Right Wing Pylon";
  162. ID = 1;
  163. }
  164. }
  165. ENTITY
  166. {
  167. NAME           = "F/A-18A";
  168. TYPE           = 105;
  169. CLASS          = FIXEDWING;
  170. ALPHA          = 255;
  171. INHERIT_ALPHA  = FALSE;
  172. CLAMP_MODE     = NONE;
  173. ANIM_DIRECTION = FORWARD;
  174. ANIM_LOOP      = FALSE;
  175. COMPONENT
  176. {
  177. NAME        = "Formation Lights";
  178. ID          = 1002;
  179. INSTANCE_ID = -1;
  180. DEF_STATE   = 1;
  181. STATE
  182. {
  183. NAME  = "Off";
  184. VALUE = 0;
  185. }
  186. STATE
  187. {
  188. NAME  = "On";
  189. VALUE = 1;
  190. }
  191. }
  192. }
  193. ENTITY
  194. {
  195. NAME           = "AH-64";
  196. TYPE           = 180;
  197. CLASS          = ROTORCRAFT;
  198. ALPHA          = 255;
  199. INHERIT_ALPHA  = FALSE;
  200. CLAMP_MODE     = NONE;
  201. ANIM_DIRECTION = FORWARD;
  202. ANIM_LOOP      = FALSE;
  203. }
  204. ENTITY
  205. {
  206. NAME           = "AIM-9";
  207. TYPE           = 300;
  208. CLASS          = MISSILE;
  209. ALPHA          = 255;
  210. INHERIT_ALPHA  = TRUE;
  211. CLAMP_MODE     = NONE;
  212. ANIM_DIRECTION = FORWARD;
  213. ANIM_LOOP      = FALSE;
  214. }
  215. ENTITY
  216. {
  217. NAME           = "AIM-7";
  218. TYPE           = 301;
  219. CLASS          = MISSILE;
  220. ALPHA          = 255;
  221. INHERIT_ALPHA  = TRUE;
  222. CLAMP_MODE     = NONE;
  223. ANIM_DIRECTION = FORWARD;
  224. ANIM_LOOP      = FALSE;
  225. }
  226. ENTITY
  227. {
  228. NAME           = "M1A1";
  229. TYPE           = 500;
  230. CLASS          = GROUNDMIL;
  231. ALPHA          = 255;
  232. INHERIT_ALPHA  = FALSE;
  233. CLAMP_MODE     = CONFORMAL;
  234. ANIM_DIRECTION = FORWARD;
  235. ANIM_LOOP      = FALSE;
  236. }
  237. ENTITY
  238. {
  239. NAME           = "Cloud";
  240. TYPE           = 1000;
  241. CLASS          = WEATHER;
  242. ALPHA          = 100;
  243. INHERIT_ALPHA  = FALSE;
  244. CLAMP_MODE     = CONFORMAL;
  245. ANIM_DIRECTION = FORWARD;
  246. ANIM_LOOP      = FALSE;
  247. WEATHER_ATTRIBUTES
  248. {
  249. ENABLE = TRUE;
  250. SCUD_ENABLE = FALSE;
  251. RANDOM_WIND_ENABLE = TRUE;
  252. RANDOM_LIGHTNING_ENABLE = TRUE;
  253. CLOUD_TYPE = 1; // See ICD for assignments
  254. SEVERITY = 3; // 1 - 5
  255. SCUD_FREQUENCY = 20; // percent
  256. COVERAGE = 65; // percent
  257. BASE_ELEVATION = 5000; // meters
  258. THICKNESS = 2000; // meters
  259. TRANSITION_BAND = 150; // meters
  260. BAROMETRIC_PRESSURE = 10;
  261. HUMIDITY = 80;
  262. TEMPERATURE = 32;
  263. VISIBILITY = 50;
  264. HORIZONTAL_WINDSPEED = 50;
  265. VERTICAL_WINDSPEED = -20;
  266. WIND_DIRECTION = 45;
  267. AEROSOL_CONCENTRATION = 90;
  268. }
  269. }
  270. ENTITY
  271. {
  272. NAME = "Explosion";
  273. TYPE = 1500;
  274. CLASS = ANIMATION;
  275. }
  276. ENTITY
  277. {
  278. NAME = "Missile Trail";
  279. TYPE = 1501;
  280. CLASS = ANIMATION;
  281. }