Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10042 was 10042, checked in by muemart, 10 years ago

Fix rotation if parent is already rotated. Everything hopefully now works as expected. It's a giant mess right now, so still have to clean it up.

  • 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<StaticEntity position="100,0,0">
62  <attached>
63    <Model mesh="sphere.mesh" position="20,0,0" scale=1/>
64
65    <Model mesh="sphere.mesh" position="0,25,0" scale=1.5/>
66
67    <Model mesh="sphere.mesh" position="0,0,30" scale=2/>
68  </attached>
69</StaticEntity>
70<SpaceShip position="100,0,0" yaw=0 pitch=90>
71    <attached>
72        <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
73        <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
74        <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
75        <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
76        <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
77
78        <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
79            <templates>
80              <Template link=spaceshipturrettest />
81            </templates>
82            <controller>
83              <TurretController team=10 />
84            </controller>
85        </Turret>
86
87
88
89    </attached>
90</SpaceShip>
91
92
93   
94  </Scene>
95</Level>
96
Note: See TracBrowser for help on using the repository browser.