home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Scripts / BladeInit2D.py < prev    next >
Encoding:
Python Source  |  2000-10-27  |  2.9 KB  |  174 lines

  1. #####################################################
  2. #                                                    
  3. #                                                    
  4. #                                                    
  5. #             B L A D E I N I T . P Y                 
  6. #                                                    
  7. #                                                    
  8. #                                                    
  9. #                                                    
  10. #####################################################
  11.  
  12.  
  13. import Bladex
  14. import CharStats
  15.  
  16.  
  17. Bladex.OpenDebugChannel("Salida")
  18.  
  19.  
  20. # Carga los recursos comunes de los mapas
  21. #execfile("..\\..\\Scripts\\CommonResources.py") intento
  22. Bladex.BodInspector()
  23.  
  24. ##execfile("..\\..\\Scripts\\PickInit.py")
  25. #import PickInit intento
  26. #PickInit.Init() intento
  27.  
  28. #execfile("..\\..\\Scripts\\SolidMask.py")
  29. #execfile("..\\..\\Scripts\\material.py")
  30.  
  31.  
  32. #
  33. # Sounds
  34. #
  35. #execfile("..\\..\\Scripts\\anisound.py")
  36. # Player Races
  37. from AniSoundKgt import *
  38. from AniSoundBar import *
  39. from AniSoundAmz import *
  40. from AniSoundDwf import *
  41.  
  42.  
  43.  
  44. #
  45. # Animation events (needed before the biped stuff)
  46. #
  47. execfile("..\\..\\Scripts\\anm_def.py")
  48.  
  49.  
  50. #
  51. # Sound for steps (needed before the biped stuff)
  52. #
  53. #execfile("..\\..\\Scripts\StepSounds.py") intento2
  54.  
  55.  
  56. #
  57. # Different kind of enemies. Should be called b4 creating ANY PersonEntity!
  58. #
  59. #execfile("..\\..\\Scripts\\enemies.py")
  60.  
  61.  
  62.  
  63. #
  64. # New animation system (biped) 
  65. #
  66. #execfile("..\\..\\Scripts\\KgtBAct.py")
  67. execfile("..\\..\\Scripts\\Biped\\Biped.py")
  68.  
  69.  
  70. #
  71. # The sharing of whole sets of animations
  72. #
  73. execfile("..\\..\\Scripts\\anm_conv.py")
  74.  
  75.  
  76.  
  77.  
  78. #
  79. # To modify flags of animations 
  80. #
  81. execfile("..\\..\\Scripts\\anm_mdf.py")
  82.  
  83. #
  84. # To modify the movements of the camera
  85. #
  86. execfile("..\\..\\Scripts\\AnmCameras.py")
  87.  
  88.  
  89.  
  90. #
  91. # Particle Systems init
  92. #
  93. execfile("..\\..\\Scripts\\InitParticleSystems.py")
  94.  
  95.  
  96. #
  97. # Procedural textures
  98. #
  99. #execfile("..\\..\\Scripts\\AutoGenTextures.py")
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106. #
  107. # PJ Init
  108. #
  109. execfile("pj.py")
  110.  
  111.  
  112. #
  113. # Scorer Data init
  114. #
  115. import Scorer
  116. Scorer.ActivateScorer()
  117.  
  118. import CharStats
  119.  
  120. import PowDefWidgets
  121. PowDefWidgets.CreateWidgest()
  122. PowDefWidgets.Activate()
  123.  
  124. #import GameText
  125. #GameText.SetLanguage("Spanish")
  126.  
  127. execfile("..\\..\\Scripts\\DefaultScorerData.py")
  128.  
  129. # Inicio del personaje y sus marcadores
  130. char=Bladex.GetEntity("Player1")  #Por si acaso
  131. char.Level=0
  132. char.PartialLevel=0
  133. #Scorer.SetLevelLimits(0,CharStats.GetCharExperienceCost(char.CharType,0))
  134. #Scorer.SetLevelBarValue(0)
  135. #Scorer.SetLevelValue(0)
  136.  
  137.  
  138. #
  139. # Timers
  140. #
  141. Bladex.CreateTimer("Timer60",1.0/60.0)
  142. Bladex.CreateTimer("Timer30",1.0/30.0)
  143. Bladex.CreateTimer("Timer15",1.0/15.0)
  144.  
  145. #import pywin.debugger
  146. #pywin.debugger.set_trace()
  147.  
  148.  
  149. #
  150. # Controls ( keyboard,mouse...) stuff
  151. #
  152. execfile("..\\..\\Scripts\\InputInit.py")
  153.  
  154. import acts
  155. acts.InitBindings("Player1")
  156.  
  157.  
  158. try:
  159.   execfile("..\\..\\Scripts\\Control.py")
  160.   print "BladeInit -> Executed Control.py"
  161. except:
  162.   execfile("..\\..\\Scripts\\DefControl.py")
  163.   print "BladeInit -> Executed DefControl.py"
  164.  
  165.  
  166.  
  167. #
  168. # Menu
  169. #
  170. #execfile("..\\..\\Scripts\\Menu.py")
  171. import Menu
  172. Menu.InitMenuKeys()
  173.  
  174.