Advertisement
Guest User

Untitled

a guest
Mar 11th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3. //-------------MAIN---------------
  4. thread 'BASEGAT'
  5.  
  6. :Initial
  7. wait 0
  8. Player.Defined($PLAYER_CHAR)
  9. jf @Initial
  10. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 90.0 90.0
  11. jf @Initial
  12. Model.Load(303)
  13.  
  14. :ModelCheck
  15. wait 0
  16. Model.Available(303)
  17. jf @ModelCheck
  18. 029B: 0@ = init_object 303 at -973.7 -519.9 10.1
  19. 0177: set_object 0@ z_angle_to 101.0
  20.  
  21. Model.Destroy(303)
  22.  
  23. :GateCheck
  24. wait 0
  25. Player.Defined($PLAYER_CHAR)
  26. jf @GateCheck
  27. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 90.0 90.0
  28. jf @DeleteGate
  29. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 10.0 10.0
  30. jf @GateCheck
  31. 018D: 1@ = create_sound 2 at -975.0 -512.9 10.1
  32.  
  33. :GateOpen
  34. 034E: move_object 0@ to -975.0 -512.9 10.1 speed 0.0186 0.1 0.0 collision_check 0
  35. wait 0
  36. Player.Defined($PLAYER_CHAR)
  37. jf @GateOpen
  38. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 90.0 90.0
  39. jf @DeleteSoundAndGate
  40. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 10.0 10.0
  41. jf @GateOpenStop
  42. 04E5: object 0@ near_point -975.0 -512.9 radius 0.01 0.01 sphere 0
  43. jf @GateOpen
  44.  
  45. :GateOpenStop
  46. 018E: stop_sound 1@
  47. 018C: play_sound 3 at -975.0 -512.9 10.1
  48.  
  49. :GateCheck2
  50. wait 0
  51. Player.Defined($PLAYER_CHAR)
  52. jf @GateCheck2
  53. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 90.0 90.0
  54. jf @DeleteGate
  55. 80E3: NOT player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 10.0 10.0
  56. jf @GateCheck2
  57. 018D: 1@ = create_sound 2 at -975.0 -512.9 10.1
  58.  
  59. :GateClose
  60. 034E: move_object 0@ to -973.7 -519.9 10.1 speed 0.0186 0.1 0.0 collision_check 0
  61. wait 0
  62. Player.Defined($PLAYER_CHAR)
  63. jf @GateClose
  64. 00E3: player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 90.0 90.0
  65. jf @DeleteSoundAndGate
  66. 80E3: NOT player $PLAYER_CHAR in_sphere 0 near_point -973.7 -519.9 radius 10.0 10.0
  67. jf @GateCloseStop
  68. 04E5: object 0@ near_point -973.7 -519.9 radius 0.01 0.01 sphere 0
  69. jf @GateClose
  70.  
  71. :GateCloseStop
  72. 018E: stop_sound 1@
  73. 018C: play_sound 3 at -973.7 -519.9 10.1
  74. jump @GateCheck
  75.  
  76. :DeleteSoundAndGate
  77. 018E: stop_sound 1@
  78.  
  79. :DeleteGate
  80. Object.Destroy(0@)
  81. jump @Initial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement