Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2016, 4:02:21 PM (9 years ago)
Author:
tgidron
Message:

New Pickup + try to create ground from separate tiles

Location:
code/branches/tgidronFS16
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tgidronFS16

  • code/branches/tgidronFS16/data/levels/Hover.oxw

    r11182 r11184  
    2020<?lua
    2121MAZE_NUM_CELLS = 10
    22 MAZE_CELL_SIZE = 100
    23 MAZE_CELL_HEIGHT = 30
     22MAZE_CELL_SIZE = 600
     23MAZE_CELL_HEIGHT = 180
     24MAZE_WALL_THICKNESS = 10
    2425MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
    2526?>
     
    5859            <StaticEntity>
    5960                <attached>
    60                     <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1>
     61                    <Billboard position="0,50,0" colour="1.0,0.55,1.0" material="Sphere2" scale=1>
    6162                        <attached>
    6263                            <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 />
     
    8788            <StaticEntity>
    8889                <attached>
    89                     <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
     90                    <Billboard position="0,50,0" colour="0.99,0.96,0.52" material="Sphere2" scale=1>
    9091                        <attached>
    9192                            <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
     
    116117            <StaticEntity>
    117118                <attached>
    118                     <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
     119                    <Billboard position="0,50,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=1>
    119120                        <attached>
    120121                            <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
     
    136137    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
    137138        <attached>
    138             <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     139            <Model position="0,50,0" mesh="crate.mesh" scale3D="15,15,15" />
    139140        </attached>
    140141        <collisionShapes>
    141             <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     142            <BoxCollisionShape position="0,0,0" halfExtents="70,70,70" />
    142143        </collisionShapes>
    143144    </Pawn>
     
    156157
    157158
    158 
     159  <?lua
     160      for i = 1, 10, 1 do
     161          for j = 1,10 ,1 do
     162  ?>
     163
     164  <StaticEntity position="0,0,0" collisionType="static">
     165    <attached>
     166      <Model
     167        position="<?lua print(MAZE_CELL_SIZE*i)?>, -16, <?lua print(MAZE_CELL_SIZE*j)?>"
     168        scale3D="<?lua print(MAZE_CELL_SIZE*i)?>, 16, <?lua print(MAZE_CELL_SIZE*j)?>"
     169        mesh="CubeGround.mesh"
     170        />
     171    </attached>
     172      <collisionShapes>
     173        <BoxCollisionShape
     174          position="<?lua print(MAZE_CELL_SIZE*i)?>, <?lua print(MAZE_CELL_HEIGHT+1)?>, <?lua print(MAZE_CELL_SIZE*j)?>"
     175          halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>"
     176        />
     177        <BoxCollisionShape
     178          position="<?lua print(MAZE_CELL_SIZE*i)?>,-1,<?lua print(MAZE_CELL_SIZE*j)?>"
     179          halfExtents="<?lua print(MAZE_CELL_SIZE*i)?>,1,<?lua print(MAZE_CELL_SIZE*j)?>"
     180        />
     181      </collisionShapes>
     182
     183  <?lua
     184      end
     185    end
     186   ?>
     187
     188  </StaticEntity>
    159189
    160190  <Scene
    161191    ambientlight = "0.8, 0.8, 0.8"
    162192    skybox       = "Orxonox/Starbox"
    163     gravity      = "0, -200, 0"
     193    gravity      = "0, -300, 0"
    164194  >
    165195
     
    210240          pickuprepresentationtemplateshrink=smallshrinkpickupRepresentation
    211241        />
    212         <Model
    213           position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
    214           scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
    215           mesh="CubeGround.mesh"
    216         />
    217       </attached>
    218       <collisionShapes>
    219         <BoxCollisionShape
    220           position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
    221           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    222         />
    223         <BoxCollisionShape
    224           position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
    225           halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
    226         />
    227       </collisionShapes>
     242        </attached>
     243       
    228244    </StaticEntity>
    229245
     
    238254    <SpawnPoint
    239255      team=0
    240       position="50,20,50"
    241       lookat="100,20,100"
     256      position="300,120,300"
     257      lookat="600,120,600"
    242258      spawnclass=HoverShip
    243259      pawndesign=spaceshiphover
     
    247263</Level>
    248264
     265
     266
     267<!--<<Model
     268          position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
     269          scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
     270          mesh="ss_wall.mesh"
     271        />
     272      </attached>
     273     
     274      <collisionShapes>
     275        <BoxCollisionShape
     276          position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>"
     277          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
     278        />
     279        <BoxCollisionShape
     280          position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
     281          halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
     282        />
     283      </collisionShapes> -->
  • code/branches/tgidronFS16/data/levels/emptyLevel.oxw

    r11052 r11184  
    1414<?lua
    1515  include("templates/spaceshipEscort.oxt")
     16  include("templates/spaceshipHover.oxt")
    1617?>
    1718
     
    2930    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    3031    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     32
     33    <SpaceShip position="0,0,0" lookat="0,0,0" >
     34                         
     35        <templates>
     36          <Template link=spaceshiphover />
     37        </templates>
     38       
     39    </SpaceShip>
    3140   
    3241  </Scene>
  • code/branches/tgidronFS16/data/levels/includes/weaponSettingsHover.oxi

    r11177 r11184  
    11<weaponslots>
    2   <WeaponSlot position="-3,2,-3" />
    3   <WeaponSlot position=" 3,2,-3" />
     2  <WeaponSlot position="-10,2,-100" />
     3  <WeaponSlot position=" 10,2,-100" />
    44</weaponslots>
    55<weaponsets>
  • code/branches/tgidronFS16/data/levels/templates/spaceshipHover.oxt

    r11177 r11184  
    1818   reloadwaittime      = 0.5
    1919
    20    primaryThrust     = 200
     20   primaryThrust     = 2000
    2121   auxilaryThrust    = 1
    2222   rotationThrust    = 45
    2323
    24    jumpBoost = 110
     24   jumpBoost = 230
    2525
    2626   lift = 1;
    27    stallSpeed = 220;
     27   stallSpeed = 1400;
    2828
    2929   boostPower            = 10
     
    3333
    3434   collisionType     = "dynamic"
    35    mass              = 1000
     35   mass              = 100000
    3636   linearDamping     = 0.2
    3737   angularDamping    = 0.9999999
     
    4141    </engines>
    4242    <attached>
    43       <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> 
    44       <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/>       
    45       <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/>   
     43      <Model position="0,0,-120" mesh="hovership_body.mesh" scale="30" yaw=180/>       
     44      <Model position="0,0,-120" mesh="hovership_engine.mesh" scale="30" yaw=180/>     
     45      <Model position="0,0,-120" mesh="hovership_gun.mesh" scale="30" yaw=180/>
    4646     
    4747    </attached>
    4848    <collisionShapes>
    49       <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
     49      <BoxCollisionShape position="0,-12, 42" halfExtents="42, 24 ,180" />
    5050    </collisionShapes>
    5151    <explosion>
     
    6969  <SpaceShip>
    7070    <camerapositions>
    71       <CameraPosition position="0,8, 5" drag=true mouselook=true />
    72       <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
     71      <CameraPosition position="0, 48, 30" drag=true mouselook=true />
     72      <CameraPosition position="0, 48, 30" yaw="180" drag=true mouselook=true />
    7373    </camerapositions>
    7474  </SpaceShip>
     
    7979   boostfactor    = 2
    8080
    81    speedfront     = 150
    82    speedback      =  40
    83    speedleftright =  40
    84    speedupdown    =  40
     81   speedfront     = 1400
     82   speedback      =  800
     83   speedleftright =  600
     84   speedupdown    =  600
    8585
    86    accelerationfront     = 500
    87    accelerationbrake     = 500
     86   accelerationfront     = 1000
     87   accelerationbrake     = 1000
    8888   accelerationback      =  250
    89    accelerationleftright =  125
     89   accelerationleftright =  250
    9090   accelerationupdown    =  125
    9191  >
Note: See TracChangeset for help on using the changeset viewer.