home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / ted.vol / setDetail.cs < prev    next >
Text File  |  1999-02-19  |  915b  |  31 lines

  1. #
  2. # Set the terrain visibility to some reasonable values
  3. # based on ground scale
  4. # Usage:  setDetail [terrainObj=Terrain] [groundScale=3]
  5. #
  6. if test "$1" == ""
  7.    set 1 Terrain
  8.    echo Default terrain: $1
  9. endif
  10. if test "$2" == ""
  11.    set 2 3
  12.    echo Default scale: $2
  13. endif
  14. #
  15. if test "$2" == 3
  16.    setTerrainVisibility $1 1500 600
  17.    setTerrainDetail $1 200 25 50 100 150  200 250  300 400  500 900  1000 3000
  18. endif
  19. if test "$2" == 4
  20.    setTerrainVisibility $1 1500 600
  21.    setTerrainDetail $1 200 50 100  200 300  400 500 600 800 1800 2000 3000 5000 5000 30000
  22. endif
  23. if test "$2" == 6
  24.    setTerrainVisibility $1 5000 4000
  25.    setTerrainDetail $1 800 300 500  700 1000  1500 2500  3000 4000  9000 10000  30000 50000
  26. endif
  27. if test "$2" == 8
  28.    setTerrainVisibility $1 10000 5000
  29.    setTerrainDetail $1 1000 750 1500 3000 3500 6000 7000 10000 12000 18000 20000 30000 50000 50000 300000
  30. endif
  31.