Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/turretFS14/data/levels/turretTest.oxw @ 10045

Last change on this file since 10045 was 10044, checked in by muemart, 11 years ago

Move everything back to the Turret class, set the correct team, and (re)arm the turret. Also, hide it from the radar.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1<!-- -->
2
3<LevelInfo
4 name = "turret Test"
5 description = "A level with a turret in it."
6 tags = "test"
7 screenshot = "emptylevel.png"
8/>
9
10<?lua
11  include("stats.oxo")
12  include("HUDTemplates3.oxo")
13  include("templates/lodInformation.oxt")
14?>
15
16<?lua
17  include("templates/spaceshipAssff.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipTurretTest.oxt")
20?>
21
22<Level>
23  <templates>
24    <Template link=lodtemplate_default />
25  </templates>
26  <?lua include("includes/notifications.oxi") ?>
27
28  <Scene
29    ambientlight = "0.8, 0.8, 0.8"
30    skybox       = "Orxonox/Starbox"
31  >
32    <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"/>
33    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
34
35
36<!-- <SpaceShip position="-100,0,0" yaw=0 pitch=0>
37    <attached>
38        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
39        <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
40        <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
41        <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
42        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
43
44        <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
45            <templates>
46              <Template link=spaceshipturrettest />
47            </templates>
48            <controller>
49              <TurretController team=10 />
50            </controller>
51        </Turret>
52
53        <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
54
55        <Model mesh="sphere.mesh" position="0,25,0" scale=1/>
56
57        <Model mesh="sphere.mesh" position="0,0,30" scale=1/>
58
59    </attached>
60</SpaceShip> -->
61
62
63<StaticEntity position="100,0,0">
64  <attached>
65    <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
66
67    <Model mesh="sphere.mesh" position="0,25,0" scale=1.5/>
68
69    <Model mesh="sphere.mesh" position="0,0,30" scale=2/>
70  </attached>
71 
72</StaticEntity>
73<SpaceShip position="100,0,0" yaw=0 pitch=90>
74    <attached>
75        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
76        <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
77        <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
78        <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
79        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
80
81        <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
82            <templates>
83              <Template link=spaceshipturrettest />
84            </templates>
85            <controller>
86              <TurretController team=10 />
87            </controller>
88        </Turret>
89
90
91
92    </attached>
93</SpaceShip>
94
95
96   
97  </Scene>
98</Level>
99
Note: See TracBrowser for help on using the repository browser.