1 | <LevelInfo |
---|
2 | name = "Transporter" |
---|
3 | description = "Level with a Transporter. Demostrates the docking system." |
---|
4 | tags = "" |
---|
5 | /> |
---|
6 | |
---|
7 | <?lua |
---|
8 | include("HUDTemplates3.oxo") |
---|
9 | include("stats.oxo") |
---|
10 | include("templates/spaceshipAssff.oxt") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <Level |
---|
15 | name = "Transporter" |
---|
16 | description = "Docking example level" |
---|
17 | > |
---|
18 | <templates> |
---|
19 | <Template link="lodtemplate_default" /> |
---|
20 | </templates> |
---|
21 | |
---|
22 | <Scene |
---|
23 | ambientlight = "0.5, 0.5, 0.5" |
---|
24 | skybox = "Orxonox/skypanoramagen1" |
---|
25 | > |
---|
26 | |
---|
27 | <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" /> |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | <?lua for i = 1, 10, 1 do ?> |
---|
32 | <SpawnPoint position="<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
33 | <?lua end ?> |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | <Dock> |
---|
38 | <animations> |
---|
39 | <MoveToDockingTarget target="destroyer" position="10,150,40" /> |
---|
40 | </animations> |
---|
41 | <effects> |
---|
42 | <DockToShip target="spaceShip" /> |
---|
43 | </effects> |
---|
44 | <events> |
---|
45 | <execute> |
---|
46 | <EventListener event="dockMe" /> |
---|
47 | </execute> |
---|
48 | </events> |
---|
49 | <attached> |
---|
50 | <DistanceTrigger position="0,0,0" distance="30" target="Pawn" beaconMode="exclude" targetname="bcnSpaceShip" name="dockMe" /> |
---|
51 | <Billboard material="Examples/Flare" colour="1.0, 0, 0" /> |
---|
52 | </attached> |
---|
53 | </Dock> |
---|
54 | |
---|
55 | |
---|
56 | |
---|
57 | <SpaceShip |
---|
58 | position = "-150,-50,-100" |
---|
59 | hudtemplate = "spaceshiphud" |
---|
60 | camerapositiontemplate = "spaceshipassffcameras" |
---|
61 | engine = "spaceshipassffengine" |
---|
62 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
63 | spawnparticleduration = "3" |
---|
64 | explosionchunks = "6" |
---|
65 | |
---|
66 | health = "100" |
---|
67 | maxhealth = "200" |
---|
68 | initialhealth = "100" |
---|
69 | |
---|
70 | primaryThrust = "100;" |
---|
71 | auxilaryThrust = "30;" |
---|
72 | rotationThrust = "25;" |
---|
73 | |
---|
74 | collisionType = "dynamic" |
---|
75 | mass = "100" |
---|
76 | linearDamping = "0.7" |
---|
77 | angularDamping = "0.9999999" |
---|
78 | > |
---|
79 | <attached> |
---|
80 | <DistanceTriggerBeacon name="bcnSpaceShip" /> |
---|
81 | <DockingTarget name="spaceShip" /> |
---|
82 | |
---|
83 | <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="4" mesh="assff.mesh" /> |
---|
84 | <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude="0.1" frequency="0.5" quadratic="1" /> |
---|
85 | <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude="0.1" frequency="0.5" phase="180" quadratic="1" /> |
---|
86 | <DistanceTriggerBeacon name="PlayerDistanceTrigger" /> |
---|
87 | </attached> |
---|
88 | <collisionShapes> |
---|
89 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
90 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
91 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
92 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
93 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
94 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
95 | </collisionShapes> |
---|
96 | <?lua |
---|
97 | include("includes/weaponSettingsAssff.oxi") |
---|
98 | ?> |
---|
99 | </SpaceShip> |
---|
100 | |
---|
101 | |
---|
102 | |
---|
103 | |
---|
104 | <Destroyer |
---|
105 | position = "100,150,100" |
---|
106 | collisionType = "dynamic" |
---|
107 | mass = "100000" |
---|
108 | velocity = "0,0,0" |
---|
109 | angularDamping = "0.9999999" |
---|
110 | health = "10000" |
---|
111 | maxhealth = "10000" |
---|
112 | initialhealth = "10000" |
---|
113 | > |
---|
114 | |
---|
115 | <attached> |
---|
116 | |
---|
117 | <DistanceTriggerBeacon name="bcnDestroyer" /> |
---|
118 | <DockingTarget name="destroyer" /> |
---|
119 | |
---|
120 | |
---|
121 | <TeamSpawnPoint team="1" position="150,0,7" direction="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
122 | <TeamSpawnPoint team="1" position="0,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
123 | <TeamSpawnPoint team="1" position="-50,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
124 | <TeamSpawnPoint team="1" position="100,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
125 | <TeamSpawnPoint team="1" position="50,0,7" lookat="-1,0,0" roll="90" yaw="0" spawnclass="SpaceShip" pawndesign="spaceshipassff" /> |
---|
126 | <?lua for i = 1, 100, 1 do ?> |
---|
127 | <TeamSpawnPoint |
---|
128 | team="0" |
---|
129 | position="<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>,<?lua print((math.random() * 500 + 500) * (math.floor(math.random() + 0.5) * 2 - 1)) ?>" |
---|
130 | lookat="0,0,0" |
---|
131 | spawnclass="SpaceShip" |
---|
132 | pawndesign="spaceshipassff" |
---|
133 | /> |
---|
134 | <?lua end ?> |
---|
135 | |
---|
136 | <Model mesh="Carrier.mesh" scale="5" /> |
---|
137 | <Backlight |
---|
138 | mainstate="activity" |
---|
139 | active="false" |
---|
140 | scale="0.4" |
---|
141 | name="bltest" |
---|
142 | position=" 7.6, 0, 6" |
---|
143 | colour="0.2, 0.65, 1.0, 1.0" |
---|
144 | width="15" |
---|
145 | length="1500" |
---|
146 | lifetime="2" |
---|
147 | elements="50" |
---|
148 | trailmaterial="Trail/backlighttrail" |
---|
149 | turnontime="1" |
---|
150 | turnofftime="1" |
---|
151 | material="Flares/ThrusterFlare1" |
---|
152 | /> |
---|
153 | <Backlight |
---|
154 | scale="1" |
---|
155 | position=" 169, 75, -15" |
---|
156 | colour="1, 0.85, 0.5, 0.5" |
---|
157 | width="40" |
---|
158 | length="1000" |
---|
159 | lifetime="5" |
---|
160 | elements="15" |
---|
161 | trailmaterial="Trail/backlighttrail" |
---|
162 | material="Examples/Flare" |
---|
163 | /> |
---|
164 | <Backlight |
---|
165 | scale="1" |
---|
166 | position=" 169, -75, -15" |
---|
167 | colour="1, 0.85, 0.5, 0.5" |
---|
168 | width="40" |
---|
169 | length="1000" |
---|
170 | lifetime="5" |
---|
171 | elements="15" |
---|
172 | trailmaterial="Trail/backlighttrail" |
---|
173 | material="Examples/Flare" |
---|
174 | /> |
---|
175 | <?lua for i=0,8,1 do ?> |
---|
176 | <BlinkingBillboard |
---|
177 | position="<?lua print(200-270/8*i)?> ,15,2" |
---|
178 | material="Examples/Flare" |
---|
179 | colour="1.0, 0.5, 0.3" |
---|
180 | phase="<?lua print(-360/8*i)?>" |
---|
181 | amplitude="0.1" |
---|
182 | frequency="0.5" |
---|
183 | quadratic="1" |
---|
184 | /> |
---|
185 | |
---|
186 | <BlinkingBillboard |
---|
187 | position="<?lua print(200-270/8*i)?>,-15,2" |
---|
188 | material="Examples/Flare" |
---|
189 | colour="1.0, 0.5, 0.3" |
---|
190 | phase="<?lua print(-360/8*i)?>" |
---|
191 | amplitude="0.1" |
---|
192 | frequency="0.5" |
---|
193 | quadratic="1" |
---|
194 | /> |
---|
195 | <?lua end ?> |
---|
196 | |
---|
197 | </attached> |
---|
198 | <collisionShapes> |
---|
199 | <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> |
---|
200 | <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> |
---|
201 | <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> |
---|
202 | <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> |
---|
203 | <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> |
---|
204 | <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> |
---|
205 | <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> |
---|
206 | </collisionShapes> |
---|
207 | |
---|
208 | </Destroyer> |
---|
209 | |
---|
210 | </Scene> |
---|
211 | </Level> |
---|