home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 10 / 1996-11_-_Disc_2.10.bin / ddrome / data.z / RUNNER_X.GW < prev    next >
Text File  |  1996-08-05  |  6KB  |  268 lines

  1. # Load runner X where X = %runNo%
  2.  
  3. # Load the runner
  4. source run_dir.gw
  5. LoadGameGen %runFile% runner_%runNo%
  6. SetAltitudeSurface off
  7. SetProximity on
  8.  
  9. # Set dynamics parameters per runner
  10. RunSetMaxSpeed %runNo% %runMaxSpeed%
  11. RunSetTurnMax  %runNo% %runTurnMax%
  12.  
  13. Object3DTranslate %runPosX% %runPosY% %runPosZ%
  14. #Object3DRotate 0 %runRotY% 0
  15.  
  16. FindNode yaw
  17. Object3DRotate 0 %runYaw% 0
  18.  
  19. FindNode runner_%runNo%
  20.  
  21. # Load animation data for jumping.
  22. SetAnimationDirectory ..\data\runners\anims\jump
  23.  
  24. set JumpSpeed 35
  25.  
  26. #LoadAnimation yaw.zan jump_yaw_anim_data_%runNo%
  27. #NewAnimate yaw_anim_node
  28. #AnimateSetAnimation jump_yaw_anim_data_%runNo%
  29. #AnimateSetActive off
  30. #AnimateSetFrameRate %JumpSpeed%
  31. #AnimateAddChild yaw
  32.  
  33. #LoadAnimation chassis.zan jump_chassis_anim_data_%runNo%
  34. #NewAnimate chassis_anim_node
  35. #AnimateSetAnimation jump_chassis_anim_data_%runNo%
  36. #AnimateSetActive off
  37. #AnimateSetFrameRate %JumpSpeed%
  38. #AnimateAddChild chassis
  39.  
  40. #LoadAnimation cockpit.zan jump_cockpit_anim_data_%runNo%
  41. #NewAnimate cockpit_anim_node
  42. #AnimateSetAnimation jump_cockpit_anim_data_%runNo%
  43. #AnimateSetActive off
  44. #AnimateSetFrameRate %JumpSpeed%
  45. #AnimateAddChild cockpit
  46.  
  47. #FindNode yaw
  48. #FindNode t_yaw
  49. #Object3DInsertAnimationChild yaw_anim_node
  50.  
  51. FindNode chassis
  52.  
  53. # Intersect with runner bounding box
  54. SetIntersectBBOX on
  55.  
  56. #FindNode t_chass
  57. #Object3DInsertAnimationChild chassis_anim_node
  58.  
  59. #FindNode cockpit
  60. #FindNode t_cockp
  61. #Object3DInsertAnimationChild cockpit_anim_node
  62.  
  63. #Set up ionsword
  64. source ionswrdx.gw
  65.  
  66. #Set up disrupter
  67. source eff_dir.gw
  68. LoadGameGen disruptr.gam disruptor%runNo%
  69. Object3DTranslate  32.0 0 -32.0
  70. #SetAltitudeSurface off
  71. Object3DSetActive off
  72. FindNode world1 
  73. AddChild disruptor%runNo%
  74. source run_dir.gw
  75. # End set up disruptor
  76.  
  77.  
  78. #Add rear nanoshield
  79. LoadGameGen nano.gam ShieldR%runNo%
  80. SetAltitudeSurface off
  81. SetIntersectSurface off
  82. Object3DSetActive off
  83. FindNode runner_%runNo%
  84. FindNode cockpit
  85. Object3DAddChild ShieldR%runNo%
  86.  
  87. #Add front nanoshield
  88. LoadGameGen nano.gam ShieldF%runNo%
  89. SetAltitudeSurface off
  90. SetIntersectSurface off
  91. Object3DSetActive off
  92. FindNode runner_%runNo%
  93. FindNode cockpit
  94. Object3DAddChild ShieldF%runNo%
  95.  
  96.  
  97. #Add shroud
  98. FindNode runner_%runNo%
  99. #FindNode yaw
  100. #FindNode chassis
  101. FindNode cockpit
  102. Object3DAddChild shroud%runNo%
  103.  
  104.  
  105. #echo PrintTree runner_%runNo%
  106. #PrintTree runner_%runNo%
  107.  
  108. #FindNode flash
  109. #Object3DSetActive off
  110.  
  111. #Set up runner floor polygon to scroll with runner motion.
  112. FindNode lt
  113. #Cause the textures to be remapped base upon
  114. # the object's position in the world.
  115. Object3DRegisterTexturesToWorld on
  116. Object3DSetPriority -4 
  117.  
  118. #Define the world coordinates where texel 0,0
  119. #should be mapped to.
  120. Object3DSetTextureWorldBaseCoordinates 0.0 0.0
  121.  
  122. #Define the relationship between texture space
  123. #and world space.
  124. Object3DSetTextureWorldTexturesPerMeter 0.03125 0.03125
  125. Object3DSetTextureWorldTexturesPerMeter 0.0625 0.0625
  126.  
  127. ###################################################
  128. # Create barrier for this runner (based on %runNo%)
  129. ###################################################
  130. source barrierx.gw
  131.  
  132. ###################################################
  133. # Create plasma balls for this runner 
  134. ###################################################
  135. set ballNo 0
  136. source plasmax.gw
  137. set ballNo 1
  138. source plasmax.gw
  139. set ballNo 2
  140. source plasmax.gw
  141. set ballNo 3
  142. source plasmax.gw
  143. set ballNo 4
  144. source plasmax.gw
  145. set ballNo 5
  146. source plasmax.gw
  147. set ballNo 6
  148. source plasmax.gw
  149. set ballNo 7
  150. source plasmax.gw
  151. set ballNo 8
  152. source plasmax.gw
  153. set ballNo 9
  154. source plasmax.gw
  155. set ballNo 10
  156. source plasmax.gw
  157. set ballNo 11
  158. source plasmax.gw
  159. set ballNo 12
  160. source plasmax.gw
  161. set ballNo 13
  162. source plasmax.gw
  163. set ballNo 14
  164. source plasmax.gw
  165. set ballNo 15
  166. source plasmax.gw
  167. set ballNo 16
  168. source plasmax.gw
  169. set ballNo 17
  170. source plasmax.gw
  171.  
  172. ###################################################
  173. # Create lasers for this runner 
  174. ###################################################
  175. source eff_dir.gw
  176.  
  177. set laserNo 0
  178. source laserx.gw
  179. set laserNo 1
  180. source laserx.gw
  181. set laserNo 2
  182. source laserx.gw
  183. set laserNo 3
  184. source laserx.gw
  185. set laserNo 4
  186. source laserx.gw
  187. set laserNo 5
  188. source laserx.gw
  189. set laserNo 6
  190. source laserx.gw
  191. set laserNo 7
  192. source laserx.gw
  193. set laserNo 8
  194. source laserx.gw
  195. set laserNo 9
  196. source laserx.gw
  197. set laserNo 10
  198. source laserx.gw
  199. set laserNo 11
  200. source laserx.gw
  201. set laserNo 12
  202. source laserx.gw
  203. set laserNo 13
  204. source laserx.gw
  205. set laserNo 14
  206. source laserx.gw
  207. set laserNo 15
  208. source laserx.gw
  209. set laserNo 16
  210. source laserx.gw
  211. set laserNo 17
  212. source laserx.gw
  213.  
  214. source run_dir.gw
  215.  
  216. ###################################################
  217. # Create camera for this runner (based on %runNo%)
  218. ###################################################
  219. set camName camera_%runNo%
  220. source camerax.gw
  221.  
  222. ###################################################
  223. # Create destroyed version of runner.
  224. ###################################################
  225. #Verbose on
  226. #Echo Loading destroyed
  227. LoadGameGen runrex_1.gam destroyed_runner_%runNo%
  228. #PrintTree destroyed_runner_%runNo%
  229. #set up cycling fire on destroyed runner
  230.  
  231. #Set cycling texture effect, sets 1st polygon only
  232. FindNode dedbody
  233. Object3DSetFacade
  234. CycleTextureSetOn 16
  235. CycleTextureSetSpeed 30.0
  236. CycleTextureSetMap firemn1.zim 471
  237. CycleTextureSetMap firemn2.zim 472
  238. CycleTextureSetMap firemn3.zim 473
  239. CycleTextureSetMap firemn4.zim 474
  240. CycleTextureSetMap firemn5.zim 475
  241. CycleTextureSetMap firemn6.zim 476
  242. CycleTextureSetMap firemn7.zim 477
  243. CycleTextureSetMap firemn8.zim 478
  244. CycleTextureSetMap firemn9.zim 479
  245. CycleTextureSetMap firemn10.zim 480
  246. CycleTextureSetMap firemn11.zim 481
  247. CycleTextureSetMap firemn12.zim 482
  248. CycleTextureSetMap firemn13.zim 483
  249. CycleTextureSetMap firemn14.zim 484
  250. CycleTextureSetMap firemn15.zim 485
  251. CycleTextureSetMap firemn16.zim 486
  252.  
  253.  
  254. #Set cycling texture effect, sets 1st polygon only
  255. FindNode fire
  256. CycleTextureSetOn 8
  257. CycleTextureSetSpeed 10.0
  258. CycleTextureSetMap fire_1.zim 487
  259. CycleTextureSetMap fire_2.zim 488
  260. CycleTextureSetMap fire_3.zim 489
  261. CycleTextureSetMap fire_4.zim 490
  262. CycleTextureSetMap fire_5.zim 491
  263. CycleTextureSetMap fire_6.zim 492
  264. CycleTextureSetMap fire_7.zim 493
  265. CycleTextureSetMap fire_8.zim 494
  266.  
  267. #Verbose off
  268.