All pastes #589667 Raw Edit

highway.bzw

public text v1 · immutable
#589667 ·published 2007-06-26 03:42 UTC
rendered paste body
world
  size 1000
  noWalls
end

options
  +r
  -a 50 38
  -ms 3
  -set _shotSpeed 150
  -set _noClimb 0
  -j
  -fb
  -sb
  -set _drawMountains 0
  -set _drawGround 0
#  -set _friction 2.0
end

physics
   name berm
  linear -80 -80 0
end
physics
   name grass
  linear -80 -80 0
end
physics
  name asphalt
  slide 0.2
end
textureMatrix
  name berm
  shift -10.00 -10.00
end
textureMatrix
  name berm2
  shift -14.14213562 0
end
textureMatrix
  name trees
  shift .432 0
end
textureMatrix
  name asphalt
  shift 0 -14.14213562
end
material
  name grass
  texture std_ground
  texmat berm
end
material
  name grass2
  texture std_ground
  texmat berm2
end
material
  name berm
  texture roof
  texmat asphalt
end
material
  name asphalt
  addtexture telelink
  diffuse 0.1 0.1 0.1 1
  texmat asphalt
  noradar
end
material
  name auto
end
material
  name trees
  addtexture rabbit_laser
  texmat trees
end

define wheel
        meshbox
      size .30 .75 1.5
      position 0.0 0.0 0.0
      #matref wheel
     end
enddef
define car
  meshbox
    name chassis
    size 3.0 5.0 1.00
    position 0 0 0.75
    rotation 0
    matref auto
  end #chassis
  meshbox
    name windows
    size 3.0 3.0 2.0
    position 0 0 0.75
    matref auto
  end #windows
  
  group wheel
    shift -2.71 3.5 0.0
  end
  group wheel
    shift -2.71 -3.5 0.0
  end
  group wheel
    shift 2.71 3.5 0.0
  end
  group wheel
    shift 2.71 -3.5 0.0
  end
enddef
define bigrig
  meshbox
    name chassis
    size 3.0 5.0 1.00
    position 0 0 0.75
    rotation 0
    matref auto
  end #chassis
  meshbox
    name windows
    size 3.0 3.0 2.0
    position 0 0 0.75
    matref auto
  end #windows
  meshbox
    name wheel1
    size .30 .75 1.5
    position -2.71 3.5 0.0
    #matref asphalt
  end #wheel1
  meshbox
    name wheel2
    size .30 .75 1.5
    position -2.71 -3.5 0.0
    #matref asphalt
  end
  meshbox
    name wheel3
    size .30 .75 1.5
    position 2.71 3.5 0.0
    #matref asphalt
  end
  meshbox
    name wheel4
    size .30 .75 1.5
    position 2.71 -3.5 0.0
    #matref asphalt
  end

enddef

 mesh
  vertex 1200 1000 0     #0
  vertex -1000 -1200 0   #1
  vertex -1000 -1200 10 #2
  vertex 1200 1000 10   #3
  texcoord 0 0   #0
  texcoord 10 0   #1
  texcoord 10 1   #2
  texcoord 0 1   #3
  face
    vertices 0 1 2 3
    texcoords 0 1 2 3
    matref trees
  endface
 end
 mesh
  vertex 1000 1200 10     #0
  vertex -1200 -1000 10   #1
  vertex -1200 -1000 0 #2
  vertex 1000 1200 0   #3
  texcoord 0 0   #0
  texcoord 10 0   #1
  texcoord 10 1   #2
  texcoord 0 1   #3
  face
    vertices 0 1 2 3
    texcoords 0 1 2 3
    matref trees
  endface
 end

##############  highway
define h1 
  group car
   shift 0.0 75.0 1.0
  end
  #group car
  # shift 0.0 100.0 1.0
  #end
  group car 
    shift 0.0 -125.0 1.0
  end
  group car 
    shift 0.0 -240.0 1.0
  end
enddef
define h2
  #group car
  # shift 0.0 275.0 1.0
  #end
  #group car
  # shift 0.0 250.0 1.0
  #end
  #group car 
  #  shift 0.0 105.0 1.0
  #end
  group car 
    shift 0.0 -250.0 1.0
  end
  group car 
    shift 0.0 -150.0 1.0
  end
enddef
define h3
  group car
   shift 0.0 112.0 1.0
  end
  group car
   shift 0.0 68.0 1.0
  end
  #group car 
  #  shift 0.0 -165.0 1.0
  #end
  #group car 
  #  shift 0.0 -200.0 1.0
  #end
enddef
define h4
  #group car
  # shift 0.0 267.0 1.0
  #end
  #group car
  # shift 0.0 250.0 1.0
  #end
  group car 
    shift 0.0 146.0 1.0
  end
  group car 
    shift 0.0 -120.0 1.0
  end
enddef
define h5
  group car
   shift 0.0 212.0 1.0
  end
  #group car
  # shift 0.0 165.0 1.0
  #end
  group car 
    shift 0.0 25.0 1.0
  end
  group car 
    shift 0.0 -20.0 1.0
  end
enddef
define section
        group h1
          shift 0 0 0
          rotation 315
        end
        group h2
          shift -20 0 0
          rotation 315
        end
        group h3
          shift -40 0 0
          rotation 315
        end
        group h4
          shift 20 0 0
          rotation 315
        end
        group h5
          shift 40 0 0
          rotation 315
        end
enddef
group section
end
group section
  position 424.264068711 424.264068711 0
end
group section
  position 848.52813742 848.52813742 0
end
#group section
#  position 1697.05627484 1697.05627484 0
#end
group section
  position -424.264068711 -424.264068711 0
end
group section
  position -848.52813742 -848.52813742 0
end
#group section
#  position -1697.05627484 -1697.05627484 0
#end
#the ground
mesh
  name ground
  vertex -9950.000 -10000.000 1.0000    #0 highway
  vertex -9945.000 -10000.000 0.50000   #1 berm
  vertex 10000.000 -10000.000 0.50000   #2 SE Corner
  vertex 10000.000 9945.000 0.50000     #3 
  vertex 10000.000 9950.000 1.0000      #4
  vertex 9950.000 10000.000 1.0000      #5
  vertex 9945.000 10000.000 0.50000     #6
  vertex -10000.000 10000.000 0.5000    #7 NW Corner
  vertex -10000.000 -9945.000 0.5000    #8
  vertex -10000.000 -9950.000 1.0000    #9
  texcoord 0 0
  texcoord 0 .5
  texcoord 100 .5
  texcoord 100 0
  face
    vertices 1 2 3
    matref grass
    phydrv grass
    noradar
  endface
  face 
    vertices 0 1 3 4
    texcoords 0 1 2 3
    matref berm
    phydrv berm
  endface
  face #highway
    vertices 9 0 4 5
    matref asphalt
    phydrv asphalt
  endface
  face #northberm
        vertices 8 9 5 6
        texcoords 0 1 2 3
        matref berm
        phydrv berm
  endface
  face #northgrass
    vertices 8 6 7
    matref grass2
    phydrv grass
    noradar
  endface
end


#add teleporters
teleporter
  name rear
  position -925 -925 0
  size 0.125 200 50
  rotation 225
end
teleporter
  name front
  position 925 925 50
  size 0.125 200 5
  rotation 225
end
link
  from 1
  to 2
end

link
  from front:b
  to rear:f
end
link
  from front:b
  to rear:f
end

zone
  name tankspawn
  size 100 100 0
  position 850 850 3
  rotation 45
  team 0 1 2 3 4
end