home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / CHIPCD_6_2000.iso / enter / dk / data1.cab / Program-E / data / pak1.pak / cin / aiscripts / e1m1c.sca < prev   
Encoding:
Text File  |  2000-04-20  |  3.8 KB  |  170 lines

  1. //////////////////////////////////////////////////////////////////////////////////////////
  2. //                                                                                      //
  3. //                                          E1M1                                        //
  4. //                                                                                      //
  5. //////////////////////////////////////////////////////////////////////////////////////////
  6. //
  7. //    CONVENTIONS::
  8. //
  9. //    WRKRdick
  10. //    Skinny Worker that is triggered to walk into the round room when you walk up.
  11. //
  12. //    WRKReven
  13. //    Skinny Worker that is walking along 2nd level of circular room.
  14. //
  15. //
  16. //    SCRIPTS:
  17. //    WRKRdick_enter        Makes WRKRdick enter room when you walk up (path DICK1)
  18. //    WRKRdick_clipboardpath2    Makes WRKRdick pause, write on clipboard, start path DIKK1
  19. //    WRKRdick_crouch2enter    Makes WRKRdick crouch, work, stand, return to path DICK1
  20. //
  21. //    WRKRevan_patrola    Sets WRKRevan on his first path
  22. //    WRKRevan_crouchie    Makes WRKRevan go to edge and kneel down to do work
  23. //    WRKRevan_crouchie2     Makes WRKRevan go to other edge and write on clipboard
  24.  
  25. ////////////////////////////////////////////
  26. //    LEVEL START
  27. ////////////////////////////////////////////
  28.  
  29. Level_start
  30. {
  31.     send_message(WRKRevan, WRKRevan_patrola);
  32.     send_message(WRKRralph, WRKRralph_clip1);
  33. }
  34.  
  35. ////////////////////////////////////////////
  36. //    GLOBAL SCRIPTS
  37. ////////////////////////////////////////////
  38.  
  39. script swimming
  40. {
  41.     set_moving_animation(swima);    
  42. }
  43.  
  44.  
  45. ////////////////////////////////////////////
  46. //    WRKRralph scripts.
  47. ////////////////////////////////////////////
  48. script WRKRralph_clip1
  49. {
  50.     face_angle(0,45,0);
  51.     animate(aaeaa);
  52.     animate(aafaa);
  53.     animate(faaeaa);
  54.     animate(eamba,3);
  55.     animate(eaaead);
  56.     animate(eambd);
  57.     animate(eadeaa);
  58.     animate(eaafaa);
  59.     animate(faaaa);
  60.     set_state(WRKRralph,pathfollow,ralph2);
  61. }
  62.  
  63. script WRKRralph_clip2
  64. {
  65.     face_angle(0,45,0);
  66.     animate(aaeaa);
  67.     animate(aafaa);
  68.     animate(faaeaa);
  69.     animate(eamba,3);
  70.     animate(eaaead);
  71.     animate(eambd);
  72.     animate(eadeaa);
  73.     animate(eaafaa);
  74.     animate(faaaa);
  75.     set_state(WRKRralph,pathfollow,ralph1);
  76. }
  77.  
  78. ////////////////////////////////////////////
  79. //    WRKRdick scripts.
  80. ////////////////////////////////////////////
  81.     
  82. script WRKRdick_enter WRKRdick
  83. {
  84.     set_state(WRKRdick,pathfollow,dick1);
  85. }
  86.  
  87. script WRKRdick_clipboardpath2
  88. {
  89.     animate(aaeaa);
  90.     animate(aafaa);
  91.     animate(faaeaa);
  92.     animate(eamba,3);
  93.     animate(eaaead);
  94.     animate(eambd);
  95.     animate(eadeaa);
  96.     animate(eaafaa);
  97.     animate(faaaa);
  98.     set_state(WRKRdick,pathfollow,dikk1);
  99. }
  100.  
  101. script WRKRdick_crouch2enter WRKRdick
  102. {
  103.     animate(eaafaa);
  104.     animate(faaaa);
  105.     animate(aacaa);
  106.     animate(camba);
  107.     animate(cambb,2);
  108.     animate(camba);
  109.     animate(cambb,1);
  110. //    sound(e1/fart4.wav);
  111.     use(fartboy);
  112.     use(hiddenhole);
  113.     animate(camba,5);
  114. //    use(hiddenhole);
  115.     animate(caaaa);
  116.     set_moving_animation(walka);
  117.     set_state(WRKRdick,pathfollow,dick1);
  118. }
  119.  
  120. script WRKR_amba
  121. {
  122.     animate(amba);
  123. }
  124.  
  125. ////////////////////////////////////////////
  126. //    WRKRevan scripts.
  127. ////////////////////////////////////////////
  128.  
  129. script WRKRevan_patrola
  130. {
  131.     set_state(WRKRevan,pathfollow,evan1);
  132. }
  133.     
  134. script WRKRevan_crouchie WRKRevan
  135. {
  136.     animate(amba);
  137.     animate(aacaa);
  138.     animate(camba,2);
  139.     animate(cambb);
  140.     animate(camba);
  141.     animate(cambb);
  142.     animate(caaaa);
  143.     animate(amba);
  144.     animate(aaeaa);
  145.     animate(aafaa);
  146.     animate(faaeaa);
  147.     animate(eamba);
  148.     animate(eaaead);
  149.     animate(eambd);
  150.     animate(eadeaa);
  151.     animate(eaafaa);
  152.     animate(faaaa);
  153.     set_state(WRKRevan,pathfollow,evam1);
  154. }
  155.  
  156. script WRKRevan_crouchie2 WRKRevan
  157. {
  158.     animate(amba);
  159.     animate(aaeaa);
  160.     animate(aafaa);
  161.     animate(faaeaa);
  162.     animate(eamba);
  163.     animate(eaaead);
  164.     animate(eambd);
  165.     animate(eadeaa);
  166.     animate(eaafaa);
  167.     animate(faaaa);
  168.     set_state(WRKRevan,pathfollow,evan2);
  169. }
  170.