home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Scripts / BladeInitHollow.py < prev    next >
Encoding:
Text File  |  2000-10-27  |  3.0 KB  |  167 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.  
  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. #print "Main Character Races Sounds Imported"
  43. #
  44. # Animation events (needed before the biped stuff)
  45. #
  46. execfile("..\\..\\Scripts\\anm_def.py")
  47.  
  48.  
  49. #
  50. # Sound for steps (needed before the biped stuff)
  51. #
  52. #execfile("..\\..\\Scripts\StepSounds.py") #intento2
  53.  
  54.  
  55. #
  56. # Different kind of enemies. Should be called b4 creating ANY PersonEntity!
  57. #
  58. execfile("..\\..\\Scripts\\enemies.py")
  59.  
  60.  
  61.  
  62. #
  63. # New animation system (biped) 
  64. #
  65. execfile("..\\..\\Scripts\\Biped\\Biped.py")
  66.  
  67. #
  68. # The sharing of whole sets of animations
  69. #
  70. #print "About to imporr anm_Conv"
  71. #execfile("..\\..\\Scripts\\anm_conv.py")
  72. #print "anm_Conv imported"
  73.  
  74.  
  75. #
  76. # To modify flags of animations 
  77. #
  78. #execfile("..\\..\\Scripts\\anm_mdf.py")
  79.  
  80. #
  81. # To modify the movements of the camera
  82. #
  83. #execfile("..\\..\\Scripts\\AnmCameras.py")
  84.  
  85.  
  86.  
  87. #
  88. # Particle Systems init
  89. #
  90. #execfile("..\\..\\Scripts\\InitParticleSystems.py")
  91.  
  92.  
  93. #
  94. # Procedural textures
  95. #
  96. #execfile("..\\..\\Scripts\\AutoGenTextures.py")
  97.  
  98.  
  99.  
  100. #
  101. # PJ Init
  102. #
  103. print "About to Exec pj.py"
  104. execfile("pj.py")
  105. print "pj.py Executed"
  106.  
  107. #
  108. # Scorer Data init
  109. #
  110. #import Scorer
  111. #Scorer.ActivateScorer()
  112.  
  113. #import CharStats
  114.  
  115. #import PowDefWidgets
  116. #PowDefWidgets.CreateWidgest()
  117. #PowDefWidgets.Activate()
  118.  
  119. #import GameText
  120. #GameText.SetLanguage("Spanish")
  121.  
  122. #execfile("..\\..\\Scripts\\DefaultScorerData.py")
  123.  
  124. # Inicio del personaje y sus marcadores
  125. char=Bladex.GetEntity("Player1")  #Por si acaso
  126. char.Level=0
  127. char.PartialLevel=0
  128. #Scorer.SetLevelLimits(0,CharStats.GetCharExperienceCost(char.CharType,0))
  129. #Scorer.SetLevelBarValue(0)
  130. #Scorer.SetLevelValue(0)
  131.  
  132.  
  133. #
  134. # Timers
  135. #
  136. #Bladex.CreateTimer("Timer60",1.0/60.0)
  137. #Bladex.CreateTimer("Timer30",1.0/30.0)
  138. #Bladex.CreateTimer("Timer15",1.0/15.0)
  139.  
  140. #import pywin.debugger
  141. #pywin.debugger.set_trace()
  142.  
  143.  
  144. #
  145. # Controls ( keyboard,mouse...) stuff
  146. #
  147. execfile("..\\..\\Scripts\\InputInit.py")
  148.  
  149. #import acts
  150. #acts.InitBindings("Player1")
  151.  
  152.  
  153. try:
  154.   execfile("..\\..\\Scripts\\Control.py")
  155.   print "BladeInit -> Executed Control.py"
  156. except:
  157.   execfile("..\\..\\Scripts\\DefControl.py")
  158.   print "BladeInit -> Executed DefControl.py"
  159.  
  160. #
  161. # Menu
  162. #
  163. #execfile("..\\..\\Scripts\\Menu.py")
  164. import Menu
  165. Menu.InitMenuKeys()
  166.  
  167. print "Over with BladeInitHollow.py"