Skip to content
Browse files

remove walrus. #1219

  • Loading branch information...
1 parent 5f0e726 commit bbc5aa237a880f04564db54d78a34d740377325c @robn committed
Showing with 0 additions and 193 deletions.
  1. +0 −171 data/models/ships.lua
  2. +0 −22 data/ships/walrus.lua
View
171 data/models/ships.lua
@@ -263,177 +263,6 @@ define_model('ladybird', {
})
-define_model('__walruswing', {
- info = {
- lod_pixels = { 20, 50, 0 },
- scale = 25,
- bounding_radius = 2.0,
- materials = {'matvar0'}
- },
- static = function(lod)
- -- bottom front
- local v06 = v(0.0, 0.0, 1.0)
- -- bottom back
- local v07 = v(0.0, 0.0, -1.0)
- -- top front
- local v08 = v(0.0, 1.5, 0.0)
- -- top back
- local v09 = v(0.0, 1.5, -1.5)
- use_material('matvar0')
- local bend = v(0.175,0,0)
- xref_quadric_bezier_quad(1,lod*4, v07, 0.5*(v07+v09), v09,
- 0.5*(v06+v07)+bend, bend, 0.5*(v08+v09)+bend,
- v06, 0.5*(v06+v08), v08)
- flat(lod*4, v(0,1,0), { 0.5*(v08+v09)+bend, v09 },
- { 0.5*(v08+v09)-bend, v08 })
-
- end,
- dynamic = function(lod)
- set_material('matvar0', get_arg_material(0))
- end
-})
-
-define_model('walrus', {
- info = {
- scale = 0.5,
- bounding_radius = 70,
- materials = {'matvar0', 'text'},
- lod_pixels = {25, 50, 0},
- tags = { 'ship' },
- },
- static = function()
- local v06 = v(-5.0, 10.0, -30.0)
- -- 6, top four body verts
- local v07 = v(5.0, 10.0, -30.0)
- local v08 = v(-5.0, 10.0, 30.0)
- local v09 = v(5.0, 10.0, 30.0)
-
- local v10 = v(-11.16025, -0.6698729, -25.0)
- -- 10, right four body verts
- local v11 = v(-6.160254, -9.330127, -35.0)
- local v12 = v(-11.16025, -0.6698729, 35.0)
- local v13 = v(-6.160254, -9.330127, 30.0)
-
- local v14 = v(11.16025, -0.6698729, -25.0)
- -- 14, left four body verts
- local v15 = v(6.160254, -9.330127, -35.0)
- local v16 = v(11.16025, -0.6698729, 35.0)
- local v17 = v(6.160254, -9.330127, 30.0)
-
- local v18 = v(-5.0, -0.6698729, -60.0)
- -- 18, front two verts
- local v19 = v(5.0, -0.6698729, -60.0)
-
-
- -- 20, top wing
- local v20 = v(0.0, 10.0, 0.0)
- local v21 = v(-1.0, 0.0, 0.0)
-
- local v22 = v(0.0, 1.0, 0.0)
-
- -- 23, right wing
- local v24 = v(0.5, -0.8660254, 0.0)
- local v25 = v(-0.8660254, -0.5, 0.0)
-
- -- 26, left wing
- local v27 = v(0.5, 0.8660254, 0.0)
- local v28 = v(0.8660254, -0.5, 0.0)
-
- local v29 = v(-0.0, 0.0, 40.0)
- -- 29, main thruster
- local v30 = v(-11.0, 0.0, -35.0)
- -- 30, retro
- local v31 = v(11.0, 0.0, -35.0)
-
- local v32 = v(-9.0, 5.0, -30.0)
- -- 32, right
- local v33 = v(-12.0, -5.0, 30.0)
- local v34 = v(12.0, -5.0, -30.0)
- -- 34, left
- local v35 = v(9.0, 5.0, 30.0)
- local v36 = v(0.0, 12.0, -30.0)
- -- 36, top
- local v37 = v(0.0, 12.0, 30.0)
- local v38 = v(0.0, -12.0, -30.0)
- -- 38, bottom
- local v39 = v(0.0, -12.0, 30.0)
-
-
- local v42 = v(-5.0, 10.0, -30.0)
- -- 6, top four body verts
- local v43 = v(-11.16025, -0.6698729, 35.0)
-
- use_material('matvar0')
- quad(v07, v06, v08, v09)
- quad(v13, v11, v15, v17)
- xref_quad(v08, v06, v10, v12)
- xref_quad(v12, v10, v11, v13)
- quad(v09, v08, v12, v16)
- quad(v16, v12, v13, v17)
-
- quad(v06, v07, v19, v18)
- quad(v18, v19, v15, v11)
- xref_tri(v06, v18, v10)
- xref_tri(v10, v18, v11)
-
- thruster(v29, v(0,0,1), 50, true)
- thruster(v30, v(0,0,-1), 35, true)
- thruster(v31, v(0,0,-1), 35, true)
- thruster(v32, v(-1,0,0), 25)
- thruster(v33, v(-1,0,0), 25)
- thruster(v34, v(1,0,0), 25)
- thruster(v35, v(1,0,0), 25)
- thruster(v36, v(0,1,0), 25)
- thruster(v37, v(0,1,0), 25)
- thruster(v38, v(0,-1,0), 25)
- thruster(v39, v(0,-1,0), 25)
-
- call_model('__walruswing', v20, v(-1,0,0), v(0,1,0), 1.0)
- end,
- dynamic = function(lod)
- local v06 = v(-5.0, 10.0, -30.0)
- local v07 = v(5.0, 10.0, -30.0)
- local v08 = v(-5.0, 10.0, 30.0)
- local v10 = v(-11.16025, -0.6698729, -25.0)
- local v12 = v(-11.16025, -0.6698729, 35.0)
- local v14 = v(11.16025, -0.6698729, -25.0)
- local v16 = v(11.16025, -0.6698729, 35.0)
- local v20 = v(0.0, 10.0, 0.0)
- local v23 = v(-8.660254, -5.0, 0.0)
- local v26 = v(8.660254, -5.0, 0.0)
-
- local v40 = v(0.0, -9.330127, -30.0)
- -- 40, nosewheel
- local v41 = v(0.0, -9.330127, 13.0)
- -- 41, mainwheel
- local v54 = (v07 - v14):cross(v16 - v14):norm()
- local v55 = (v06 - v08):cross(v12 - v08):norm()
-
- set_material('matvar0', get_arg_material(0))
- set_material('text', .2,.2,.2,1)
- use_material('text')
- if lod > 1 then
- local reg = get_label()
- zbias(1, v16, v54)
- text(reg, v16, v54, v(0,0,-1), 10.0, {xoffset=1, yoffset=.3})
- zbias(1, v10, v55)
- text(reg, v10, v55, v(0,0,1), 10.0, {xoffset=.8, yoffset=.3})
- end
- if get_animation_position('WHEEL_STATE') > 0 then
- zbias(1, v40, v(0,-1,0))
- call_model('nosewheelunit', v40, v(-1,0,0), v(0,-1,0), 2.0)
- call_model('mainwheelunit', v41, v(-1,0,0), v(0,-1,0), 2.0)
- end
- zbias(0)
- local ang = math.pi - 0.5 + 0.5*get_animation_position('WHEEL_STATE')
- local xaxis = v(math.sin(ang), math.cos(ang), 0)
- call_model('__walruswing', v23, xaxis, v(0,0,-1):cross(xaxis), 1.0)
- ang = 0.5 - 0.5*get_animation_position('WHEEL_STATE')
- local xaxis = v(math.sin(ang), math.cos(ang), 0)
- call_model('__walruswing', v26, xaxis, v(0,0,-1):cross(xaxis), 1.0)
- end
-})
-
define_model('flowerfairy', {
info = {
scale=1.3,
View
22 data/ships/walrus.lua
@@ -1,22 +0,0 @@
-define_ship {
- name='Walrus',
- model='walrus',
- forward_thrust = -40e6,
- reverse_thrust = 12e6,
- up_thrust = 12e6,
- down_thrust = -6e6,
- left_thrust = -6e6,
- right_thrust = 6e6,
- angular_thrust = 70e6,
- gun_mounts = { { v(0,-0.5,0), v(0,0,-1) }, { v(0,0,0), v(0,0,1) }, },
- max_cargo = 320,
- max_laser = 2,
- max_missile = 6,
- max_cargoscoop = 0,
- capacity = 320,
- hull_mass = 200,
- fuel_tank_mass = 100, --full tank, tons in addition to hull_mass
- thruster_fuel_use = 0.00015, --percent, per second (at max thrust, determined by strongest thruster)
- price = 350000,
- hyperdrive_class = 5,
-}

0 comments on commit bbc5aa2

Please sign in to comment.
Something went wrong with that request. Please try again.