home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 52 / ClassicFond52.iso / GAMES / DROIDW.RAR / DWCD.GOB / mission_cog_00_t_thrust.cog < prev    next >
Encoding:
Text File  |  1998-11-04  |  1.8 KB  |  70 lines

  1. # DroidWorks Cog Script
  2. #
  3. # 00_SectorThrust.cog
  4. #
  5. # Thrust it!
  6. #
  7. # Desc:
  8. #    Kind of like the JK Sectorthrust, but different, because I wrote it.     
  9. #     Each Sector pair is tied to a vector. They all share the same thrust value.
  10. #
  11. #     11/10/97 [DGS]    Added to Tree
  12. #                Added  extra vectors
  13. #
  14. symbols
  15. message        startup
  16. message        timer
  17. message        entered
  18.  
  19. vector        vec0        desc=thrust_direction
  20. vector        vec1        desc=thrust_direction
  21. vector        vec2        desc=thrust_direction
  22.  
  23.  
  24. float        speed=1.0    desc=thrust_speed
  25.  
  26. sector        sector0    linkid=2
  27. sector        sector1    
  28. sector        sector2
  29.  
  30. sector         sector3
  31. sector         sector4
  32. sector         sector5
  33. sector         sector6
  34. sector         sector7
  35. sector         sector8
  36. sector         sector9    
  37.     
  38. end
  39.  
  40.  
  41. code
  42.  
  43. //-----------------------------------------------------------------------------
  44.  
  45. startup:
  46.     if (sector0 >= 0) SectorThrust(sector0, vec0, speed);  //enter sector
  47.     if (sector1 >= 0) SectorThrust(sector1, vec1, speed);  //sector up
  48.     if (sector2 >= 0) SectorThrust(sector2, vec2, speed);  //exit sector
  49.      
  50.      
  51.      if (sector3 >= 0) SectorThrust(sector3, vec0, speed);  //enter sector
  52.      if (sector4 >= 0) SectorThrust(sector4, vec0, speed);  //sector up   
  53.      if (sector5 >= 0) SectorThrust(sector5, vec0, speed);  //exit sector 
  54.      if (sector6 >= 0) SectorThrust(sector6, vec0, speed);  //enter sector
  55.      if (sector7 >= 0) SectorThrust(sector7, vec0, speed);  //sector up   
  56.      if (sector8 >= 0) SectorThrust(sector8, vec0, speed);  //exit sector 
  57.      if (sector9 >= 0) SectorThrust(sector9, vec0, 2);  //exit sector 
  58.      return;
  59.  
  60. entered:
  61.      
  62.      if (getthingsector(getlocalplayerthing()) == sector1)
  63.           {
  64.           dwplaycammyspeech(16009, "TGCA012.wav", 5, 2);
  65.           }
  66.           return;
  67.      
  68.      
  69. end
  70.