Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2014, 5:10:55 PM (11 years ago)
Author:
muemart
Message:

Fix team acquisition, edit test level and start to try to make a raytest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turretFS14/data/levels/turretTest.oxw

    r10049 r10060  
    33<LevelInfo
    44 name = "turret Test"
    5  description = "A level with a turret in it."
     5 description = "A level to test turrets with."
    66 tags = "test"
    77 screenshot = "emptylevel.png"
     
    1616<?lua
    1717  include("templates/spaceshipAssff.oxt")
    18   include("templates/spaceshipTransporter.oxt")
    1918  include("templates/standardTurret.oxt")
    2019?>
     
    3332    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    3433
    35 <SpaceShip>
     34<SpaceShip position = "0,0,800" collisionType="dynamic" team=10>
     35  <controller>
     36    <TeamTargetProxy team=10/>
     37  </controller>
    3638  <attached>
    37     <Turret position="10,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
    38       <templates>
    39         <Template link=standardturret />
    40       </templates>
    41     </Turret>   
    42     <Turret position="-10,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
    43       <templates>
    44         <Template link=standardturret />
    45       </templates>
    46     </Turret>   
    47     <Turret position="0,2,0" pitch="90" yaw="0" roll="0" scale3D="0.2,0.2,0.2">
    48       <templates>
    49         <Template link=standardturret />
    50       </templates>
    51     </Turret>   
     39    <Model position="0,0,0" mesh="plane.mesh" scale3D="20,20,20" pitch=-90/>
     40
     41    <?lua for i = 1, 10, 1 do ?>
     42      <Turret position="<?lua print(150-i*30) ?>,<?lua print(150-i*30) ?>,0" pitch="0" yaw="0" roll="0">
     43        <templates>
     44          <Template link=standardturret />
     45        </templates>
     46      </Turret>
     47    <?lua end ?>
     48
    5249  </attached>
    53   <templates>
    54     <Template link=spaceshipassff />
    55   </templates>
    56 <!--   <controller>
    57     <AIController />
    58   </controller> -->
     50  <collisionShapes>
     51    <BoxCollisionShape radius="10"   position="0,0,0" halfExtents="200, 200, 0"/>
     52  </collisionShapes>
    5953</SpaceShip>
    6054
     55<Turret collisionType="dynamic" pitch=90 position="30,0,0">
     56    <attached>
     57      <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" pitch=-90/>
     58      <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" pitch=-90/>
     59      <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" pitch=-90/>
     60      <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" pitch=-90/>
     61      <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" pitch=-90/>
     62
     63      <Turret position="0,0,-10" collisionType="dynamic" pitch=20 angularDamping=0.999999 mass=100 maxPitch=45 maxYaw=45 maxAttackRadius=2000 minAttackRadius=30>
     64        <attached>
     65          <Model position="0,0,0" pitch="-90" roll="0" mesh="turretHead.mesh" scale3D="10,10,10"/>
     66        </attached>
     67        <collisionShapes>
     68          <SphereCollisionShape radius="10"   position = "0,0,0"/>
     69        </collisionShapes>
     70        <controller>
     71          <TurretController/>
     72        </controller>
     73        <?lua
     74          include("includes/weaponSettingsTurret.oxi")
     75        ?>
     76      </Turret>
     77    </attached>
     78   
     79    <controller>
     80      <TeamTargetProxy team=10/>
     81    </controller>
     82  </Turret>
    6183
    6284   
Note: See TracChangeset for help on using the changeset viewer.