2
0

scenery.bb 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ; --------------
  2. ; Egypt function
  3. ; --------------
  4. Function Egypt()
  5. plane1_y#=250
  6. plane1_dy#=250
  7. cam1_y#=250
  8. cam1_dy#=250
  9. plane2_y#=250
  10. plane2_dy#=250
  11. cam2_y#=250
  12. cam2_dy#=250
  13. statue=sphinx
  14. solar=sun
  15. solar_y=500
  16. solar_z=1000
  17. solar_scale=300
  18. solar_scale_shake=10
  19. ; Hide USA scenery
  20. HideEntity liberty
  21. HideEntity moon
  22. TextureBlend lights_multi_tex,0
  23. ; Show Egypt scenery
  24. AmbientLight 127,127,127
  25. ShowEntity sphinx
  26. EntityTexture ground,sand_tex
  27. EntityColor ground,168,133,55
  28. EntityTexture sky,sky_tex
  29. If no_players=1 Then ShowEntity sky : ShowEntity sun : Else HideEntity sky : HideEntity sun
  30. CameraClsColor main_cam1,96,160,248
  31. CameraFogColor main_cam1,96,160,248
  32. If no_players=1 Then CameraFogMode main_cam1,False Else CameraFogMode main_cam1,True
  33. CameraClsColor top_cam1,96,160,248
  34. If no_players=2
  35. CameraClsColor main_cam2,96,160,248
  36. CameraFogColor main_cam2,96,160,248
  37. CameraClsColor top_cam2,96,160,248
  38. EndIf
  39. End Function
  40. ; ------------
  41. ; USA function
  42. ; ------------
  43. Function USA()
  44. plane1_y#=750
  45. plane1_dy#=750
  46. cam1_y#=750
  47. cam1_dy#=750
  48. plane2_y#=750
  49. plane2_dy#=750
  50. cam2_y#=750
  51. cam2_dy#=750
  52. statue=liberty
  53. solar=moon
  54. solar_y=1000
  55. solar_z=2000
  56. solar_scale=300
  57. solar_scale_shake=0
  58. ; Hide Egypt scenery
  59. HideEntity sphinx
  60. HideEntity sun
  61. ; Show USA scenery
  62. AmbientLight 63,63,63
  63. ShowEntity liberty
  64. EntityTexture ground,lights_tex,0,0
  65. EntityColor ground,255,255,255
  66. ; Multi-texture
  67. EntityTexture ground,lights_multi_tex,0,1
  68. TextureBlend lights_multi_tex,2
  69. EntityTexture sky,night_sky_tex
  70. If no_players=1 Then ShowEntity sky : ShowEntity moon : Else HideEntity sky : HideEntity moon
  71. CameraClsColor main_cam1,0,0,0
  72. CameraFogColor main_cam1,0,0,0
  73. CameraFogMode main_cam1,True
  74. CameraClsColor top_cam1,0,0,0
  75. If no_players=2
  76. CameraClsColor main_cam2,0,0,0
  77. CameraFogColor main_cam2,0,0,0
  78. CameraClsColor top_cam2,0,0,0
  79. EndIf
  80. End Function