home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Scripts / ServerInit.py < prev    next >
Encoding:
Text File  |  2000-10-27  |  2.5 KB  |  171 lines

  1. #####################################################
  2. #                                                    
  3. #                                                    
  4. #                                                    
  5. #             S E R V E R 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. import CommonResources
  22. CommonResources.Init()
  23. execfile("..\\..\\Scripts\\NetworkResources.py")
  24.  
  25. # empaquetado de objetos
  26. import BODInit
  27. BODInit.Init()
  28.  
  29. #
  30. import PickInit
  31. PickInit.Init()
  32.  
  33. import SolidMask
  34. SolidMask.Init()
  35.  
  36. import Material
  37. Material.Init()
  38.  
  39.  
  40. #
  41. # Sounds
  42. #
  43. import AniSound
  44.  
  45.  
  46.  
  47. #
  48. # Animation events (needed before the biped stuff)
  49. #
  50. import anm_def
  51. anm_def.Init()
  52.  
  53. #
  54. # Sound for steps (needed before the biped stuff)
  55. #
  56. execfile("..\\..\\Scripts\\NetStepSounds.py")
  57.  
  58.  
  59. #
  60. # Different kind of enemies. Should be called b4 creating ANY PersonEntity!
  61. #
  62. import Enemies
  63. Enemies.Init()
  64.  
  65.  
  66.  
  67. #
  68. # New animation system (biped) 
  69. #
  70. import Biped
  71. Biped.Init()
  72.  
  73.  
  74. #
  75. # The sharing of whole sets of animations
  76. #
  77. import anm_conv
  78. anm_conv.Init()
  79.  
  80.  
  81.  
  82. #
  83. # To modify flags of animations 
  84. #
  85. import Anm_Mdf
  86. Anm_Mdf.Init()
  87.  
  88.  
  89. #
  90. # To modify the movements of the camera
  91. #
  92. import AnmCameras
  93. AnmCameras.Init()
  94.  
  95.  
  96. #
  97. # Particle Systems init
  98. #
  99. # CUIDADO! Valores definidos tambien en InitParticleSystems.py.
  100. B_PARTICLE_GTYPE_COPY=0
  101. B_PARTICLE_GTYPE_BLEND=1
  102. B_PARTICLE_GTYPE_ADD=2
  103. B_PARTICLE_GTYPE_MUL=3
  104.  
  105. import InitParticleSystems
  106. InitParticleSystems.Init()
  107.  
  108.  
  109. #
  110. # Procedural textures
  111. #
  112. execfile("..\\..\\Scripts\\AutoGenTextures.py")
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. #
  120. # PJ Init
  121. #
  122. execfile("..\\..\\Scripts\\NetPj.py")
  123.  
  124.  
  125. #
  126. # Scorer Data init
  127. #
  128. import NetScorer
  129. NetScorer.ActivateScorer()
  130.  
  131. # Inicio del personaje y sus marcadores
  132. char=Bladex.GetEntity("Player1")  #Por si acaso
  133. char.Level=0
  134. char.PartialLevel=0
  135.  
  136.  
  137. #
  138. # Timers
  139. #
  140. Bladex.CreateTimer("Timer60",1.0/60.0)
  141. Bladex.CreateTimer("Timer30",1.0/30.0)
  142. Bladex.CreateTimer("Timer15",1.0/15.0)
  143.  
  144.  
  145. #
  146. # Controls ( keyborad,mouse...) stuff
  147. #
  148. execfile("..\\..\\Scripts\\InputInit.py")
  149. execfile("..\\..\\Scripts\\NetMode.py")
  150.  
  151. import acts
  152. acts.InitBindings("Player1")
  153.  
  154. try:
  155.   execfile("..\\..\\Scripts\\Control.py")
  156.   print "BladeInit -> Executed Control.py"
  157. except:
  158.   execfile("..\\..\\Scripts\\DefControl.py")
  159.   print "BladeInit -> Executed DefControl.py"
  160.  
  161.  
  162.  
  163. #
  164. # Menu
  165. #
  166.  
  167. import Menu
  168. Menu.InitMenuKeys()
  169.  
  170.  
  171. print "ServerInit.py executed"