Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/keckslevelHS14/data/levels/kecks.oxw @ 10130

Last change on this file since 10130 was 10130, checked in by kecks, 11 years ago

Level file changed.

File size: 3.7 KB
Line 
1<LevelInfo
2 name = "kecks"
3 description = "A level with nothing in it."
4 tags = "Test"
5 screenshot = "pirateattack.png"
6 gametype=Mission
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13
14?>
15
16<?lua
17    dofile("includes/asteroidField.lua")
18?>
19
20<?lua
21  include("templates/spaceshipAssff2.oxt")
22  include("templates/spaceshipPirate.oxt")
23  include("templates/spaceshipHXY.oxt")
24?>
25
26<Level>
27  <templates>
28    <Template link=lodtemplate_default />
29  </templates>
30 
31
32 
33  <?lua include("includes/notifications.oxi") ?>
34
35  <Scene
36    ambientlight = "0.8, 0.8, 0.8"
37    skybox       = "Orxonox/skyBoxMoreNebula"
38  >
39
40    <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"/>
41
42    <SpawnPoint position="0,0,4000" lookat="0, 100, 0" spawnclass=SpaceShip pawndesign=spaceshipHXY team=0 active="true" />
43   
44   
45    <!--Asteroiden-Guertel-
46    <?lua
47        for i = 1, 3, 1
48                do
49    ?>
50
51     asteroidBelt(0, 0, 0, 0, 0, 100, 50+10*i, 100+10*i, 3000*i+500, 3000*i, 100+100*i  , 0)
52
53        <?lua
54        end
55        ?>
56    ---->
57
58    <?lua
59        asteroidBelt(0, 0, 0, 0, 0, 100, 60, 110, 3300, 3000, 200       , 0)
60        asteroidBelt(0, 0, 0, 0, 0, 100, 70, 120, 6400, 6000, 300       , 0)
61        asteroidBelt(0, 0, 0, 0, 0, 100, 80, 130, 9500, 9000, 400       , 0)
62        ?>
63
64 
65               
66<?lua
67        for i = 0, (3*math.pi/2), (math.pi/2)
68              do       
69?>
70               
71               
72
73<SpaceShip position="<?lua print(150*math.sin(i)) ?>, <?lua print(150*math.cos(i)) ?>,0" lookat="<?lua print(1500*math.sin(i)) ?>,  <?lua print(1500*math.cos(i)) ?>,0" maxhealt="200" initialhealth="200" roll="<?lua print(180-i*180/math.pi)?>"  >
74    <templates>
75        <Template link=spaceshipassff2 /> <!--spaceshipTransporter -->
76        </templates>
77              <controller>
78                         <WaypointPatrolController alertnessradius=1500 active=true team=0>
79                           <waypoints>
80                             <StaticEntity position="0,0,0"/>
81                           </waypoints>
82                         </WaypointPatrolController>
83                           </controller>
84   
85</SpaceShip>
86     
87             
88<?lua
89end
90?>
91
92
93 <?lua
94        for i = 0, (3*math.pi/2), (math.pi/2)
95              do
96?>
97             
98             
99<SpaceShip position="<?lua print(1500*math.sin(i)) ?>,<?lua print(1500*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0">
100
101              <templates>
102            <Template link=spaceshippirate />
103              </templates>
104              <controller>
105            <WaypointPatrolController alertnessradius=1500 active=true team=1>
106              <waypoints>
107                <StaticEntity position="0,0,0"/>
108              </waypoints>
109            </WaypointPatrolController>
110              </controller>
111</SpaceShip>
112                                 
113<?lua
114end
115?>
116             
117               
118         
119<?lua
120        for i = 0, (7*math.pi/4), (math.pi/4)
121                do
122?>
123
124         <?lua
125                for j = 1, 3, 1
126                   do
127         ?>
128                <SpaceShip position="<?lua print((600+3200)*j*math.sin(i)) ?>,<?lua print((600+3200)*j*math.cos(i)) ?>,0" roll="<?lua print(180-i*180/math.pi)?>" lookat="0, 0, 0">
129
130                   <templates>
131                   <Template link=spaceshippirate />
132                   </templates>
133                        <controller>
134                   <WaypointPatrolController alertnessradius=1500 active=true team=1>
135                   <waypoints>
136                                   <?lua
137                                         for k = 0, (29*math.pi/30), (math.pi/30)
138                                                   do
139                                        ?> 
140                           
141                                           <Model mesh="cube.mesh" scale=8 position="<?lua print((600+3200*j)*math.sin(i+k)) ?>,<?lua print((600+3200*j)*math.cos(i+k)) ?>,0" />
142
143                                   <?lua       
144                                        end
145                                        ?>
146                                                               
147                   </waypoints>
148                        </WaypointPatrolController>
149                   </controller>
150                </SpaceShip>
151        <?lua
152        end
153        ?>
154<?lua
155end
156?>
157
158   
159  </Scene>
160</Level>
161
Note: See TracBrowser for help on using the repository browser.