1 | <LevelInfo |
---|
2 | name = "Waypoints by ooguz" |
---|
3 | description = "Level to test Waypoints and Waypointarrow" |
---|
4 | tags = "test" |
---|
5 | screenshot = "starstestlevel.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("HUDTemplates3.oxo") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <?lua |
---|
15 | include("templates/spaceshipWaypoint.oxt") |
---|
16 | include("templates/spaceshipPirate.oxt") |
---|
17 | ?> |
---|
18 | |
---|
19 | <Level> |
---|
20 | <templates> |
---|
21 | <Template link=lodtemplate_default /> |
---|
22 | </templates> |
---|
23 | <?lua include("includes/notifications.oxi") ?> |
---|
24 | |
---|
25 | <Scene |
---|
26 | ambientlight = "0.8, 0.8, 0.8" |
---|
27 | skybox = "Orxonox/Starbox" |
---|
28 | > |
---|
29 | <?lua |
---|
30 | include("includes/pickups.oxi") |
---|
31 | ?> |
---|
32 | |
---|
33 | <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" /> <!-- AlphaCentauri.ogg, Mars.ogg--> |
---|
34 | |
---|
35 | <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"/> |
---|
36 | |
---|
37 | <SpawnPoint position="0,0,100" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipwaypoint /> |
---|
38 | |
---|
39 | |
---|
40 | <Pawn health=30 position="0,0,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 4" > |
---|
41 | <events> |
---|
42 | <visibility> |
---|
43 | <EventListener event="boxtrigger3" /> |
---|
44 | </visibility> |
---|
45 | </events> |
---|
46 | <attached> |
---|
47 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
48 | </attached> |
---|
49 | <collisionShapes> |
---|
50 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
51 | </collisionShapes> |
---|
52 | <controller> |
---|
53 | <WaypointController team=1> |
---|
54 | </WaypointController> |
---|
55 | </controller> |
---|
56 | <explosion > |
---|
57 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
58 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
59 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
60 | </explosion> |
---|
61 | </Pawn> |
---|
62 | |
---|
63 | <Pawn health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 3"> |
---|
64 | <events> |
---|
65 | <visibility> |
---|
66 | <EventListener event="boxtrigger2" /> |
---|
67 | </visibility> |
---|
68 | </events> |
---|
69 | <attached> |
---|
70 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
71 | </attached> |
---|
72 | <collisionShapes> |
---|
73 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
74 | </collisionShapes> |
---|
75 | <controller> |
---|
76 | <WaypointController team=1> |
---|
77 | </WaypointController> |
---|
78 | </controller> |
---|
79 | <explosion > |
---|
80 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
81 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
82 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
83 | </explosion> |
---|
84 | </Pawn> |
---|
85 | |
---|
86 | <Pawn health=30 position="0,200,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 2"> |
---|
87 | <events> |
---|
88 | <visibility> |
---|
89 | <EventListener event="boxtrigger1" /> |
---|
90 | </visibility> |
---|
91 | </events> |
---|
92 | <attached> |
---|
93 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
94 | </attached> |
---|
95 | <controller> |
---|
96 | <WaypointController team=1> |
---|
97 | </WaypointController> |
---|
98 | </controller> |
---|
99 | <collisionShapes> |
---|
100 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
101 | </collisionShapes> |
---|
102 | <explosion > |
---|
103 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
104 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
105 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
106 | </explosion> |
---|
107 | </Pawn> |
---|
108 | |
---|
109 | <Pawn health=30 position="0,300,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box radarname = "Box 1"> |
---|
110 | <events> |
---|
111 | <visibility> |
---|
112 | <EventListener event="flying4" /> |
---|
113 | </visibility> |
---|
114 | </events> |
---|
115 | <attached> |
---|
116 | <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /> |
---|
117 | </attached> |
---|
118 | <collisionShapes> |
---|
119 | <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" /> |
---|
120 | </collisionShapes> |
---|
121 | <controller> |
---|
122 | <WaypointController team=1> |
---|
123 | </WaypointController> |
---|
124 | </controller> |
---|
125 | <explosion > |
---|
126 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
127 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
128 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
129 | </explosion> |
---|
130 | </Pawn> |
---|
131 | |
---|
132 | <!-- @Triggers: boxtrigger1 <-> one box destroyed |
---|
133 | boxtrigger2 <-> two boxes destroyed |
---|
134 | boxtrigger3 <-> three boxes destroyed |
---|
135 | boxtrigger4 <-> four boxes destroyed --> |
---|
136 | <EventTrigger name="boxtrigger4" activations="1" stayactive="true" delay=0.1> |
---|
137 | <events> |
---|
138 | <trigger> |
---|
139 | <EventListener event="box" /> |
---|
140 | </trigger> |
---|
141 | </events> |
---|
142 | <EventTrigger name="boxtrigger3" activations="1" stayactive="true" delay=0.1> |
---|
143 | <events> |
---|
144 | <trigger> |
---|
145 | <EventListener event="box" /> |
---|
146 | </trigger> |
---|
147 | </events> |
---|
148 | <EventTrigger name="boxtrigger2" activations="1" stayactive="true" delay=0.1> |
---|
149 | <events> |
---|
150 | <trigger> |
---|
151 | <EventListener event="box" /> |
---|
152 | </trigger> |
---|
153 | </events> |
---|
154 | <EventTrigger name="boxtrigger1" activations="1" stayactive="true" delay=0.1> |
---|
155 | <events> |
---|
156 | <trigger> |
---|
157 | <EventListener event="box" /> |
---|
158 | </trigger> |
---|
159 | </events> |
---|
160 | </EventTrigger> |
---|
161 | </EventTrigger> |
---|
162 | </EventTrigger> |
---|
163 | </EventTrigger> |
---|
164 | |
---|
165 | <DistanceTrigger name="duball1" position="-1000,-300,700" target="Pawn" distance=700 stayActive="true" delay=1 > |
---|
166 | <events> |
---|
167 | <activity> |
---|
168 | <EventListener event="boxtrigger4" /> |
---|
169 | </activity> |
---|
170 | </events> |
---|
171 | </DistanceTrigger> |
---|
172 | |
---|
173 | <StaticEntity position="-1000,-300,700" collisionType=static> |
---|
174 | <attached> |
---|
175 | <Model scale=13 mesh="DuBall1.mesh" position = "-100,0,0"/> |
---|
176 | <Model scale=13 mesh="DuBall2.mesh" position = "100,0,0"/> |
---|
177 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "-100,0,0"/> |
---|
178 | <Billboard scale=7 material="Examples/Flare" colour="0.5,0.5,0.5" position = "100,0,0"/> |
---|
179 | </attached> |
---|
180 | <collisionShapes> |
---|
181 | <SphereCollisionShape radius="80" position = "-100,0,0" /> |
---|
182 | <SphereCollisionShape radius="120" position = "100,0,0" /> |
---|
183 | <BoxCollisionShape halfExtents="90,25,45" position = "-155,0,40" /> |
---|
184 | </collisionShapes> |
---|
185 | </StaticEntity> |
---|
186 | |
---|
187 | |
---|
188 | |
---|
189 | |
---|
190 | <WaypointGroup> |
---|
191 | <waypoints> |
---|
192 | <Waypoint position="0,0,0" order=1/> |
---|
193 | <Waypoint position="100,0,0" order=2/> |
---|
194 | <Waypoint position="200,0,0" order=3/> |
---|
195 | <Waypoint position="300,0,0" order=4/> |
---|
196 | <Waypoint position="400,0,0" order=4/> |
---|
197 | </waypoints> |
---|
198 | </WaypointGroup> |
---|
199 | |
---|
200 | |
---|
201 | |
---|
202 | </Scene> |
---|
203 | </Level> |
---|