Changeset 6345 for code/branches
- Timestamp:
- Dec 13, 2009, 8:37:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/levels/presentationHS09b.oxw
r6342 r6345 10 10 include("templates/spaceship_HXY.oxt") 11 11 include("templates/spaceship_Transporter.oxt") 12 include("templates/spaceship_HXY_SL.oxt") 13 include("templates/spaceship_Transporter_SL.oxt") 12 14 ?> 13 15 … … 15 17 name = "Sample" 16 18 description = "Just a few tests" 19 gametype = TeamDeathmatch 17 20 > 18 21 <Scene … … 22 25 23 26 24 27 <AmbientSound ambientSource="Mars.ogg" loop="true" play="true" /> 25 28 26 29 <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 36 return table.getn(elements) 34 37 end 35 for i = 1, 100, 138 for i = 1, 50, 1 36 39 do 37 x = math.random() * 200 + (i) * 20038 y = math.random() * 3000 - 150039 z = math.random() * 3000 - 1500 + (i-100) * 1040 s = math.random() * 100 + 5040 x = math.random() * 2000 + 4000 41 y = math.random() * 4000 - 2000 42 z = math.random() * 2000 - 1000 43 s = math.random() * 100 41 44 e = math.floor(math.random()*elements.length()+1) 42 45 ?> … … 55 58 56 59 <?lua 57 for i = 1, 200, 158 do 59 x = math.random() * 100 + i*10060 y = math.random() * 3000 - 150061 z = math.random() * 3000 - 1500 + (i-100) * 1060 for i = 1, 50, 1 61 do 62 x = math.random() * 2000 + 4000 63 y = math.random() * 4000 - 2000 64 z = math.random() * 2000 - 1000 62 65 ?> 63 66 … … 93 96 ?> 94 97 <?lua 95 for i = 1, 5, 196 do 97 ?> 98 <SpaceShip position=" 2000,0,0" >98 for i = 1,25, 1 99 do 100 ?> 101 <SpaceShip position="5000,0,<?lua print(i*50 - 150) ?>" > 99 102 <templates> 100 <Template link=spaceshipHXY />103 <Template link=spaceshipHXYSL /> 101 104 </templates> 102 105 <controller> 103 <WaypointPatrolController name=HXY target=piratealertnessradius=1000 team=0 active=true>106 <WaypointPatrolController alertnessradius=1000 team=0 active=true> 104 107 <waypoints> 105 <StaticEntity position=" 0,0,0" />108 <StaticEntity position="5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 106 109 </waypoints> 107 110 </WaypointPatrolController> … … 111 114 end 112 115 ?> 113 <SpaceShip position=" 2000,0,0" >116 <SpaceShip position="5000,100,100" > 114 117 <templates> 115 <Template link=spaceshipTransporter />118 <Template link=spaceshipTransporterSL /> 116 119 </templates> 117 120 <controller> 118 <WaypointPatrolController name= ghost target=pirate alertnessradius=1000 team=0 active=true>121 <WaypointPatrolController name=pirate target=pirate alertnessradius=1000 team=0 active=false> 119 122 <waypoints> 120 <StaticEntity position=" 0,0,0" />123 <StaticEntity position="5000,100,1100" /> 121 124 </waypoints> 122 125 </WaypointPatrolController> 123 126 </controller> 124 127 </SpaceShip> 128 <Destroyer 129 position = "-5000,100 ,100" 130 collisionType = dynamic 131 mass = 100000 132 angularDamping = 0.9999999 133 health = 1000 134 maxhealth = 1000 135 initialhealth = 1000 136 > 137 <controller> 138 <WaypointPatrolController team=1 /> 139 </controller> 140 <attached> 141 <Model mesh="Carrier.mesh" scale="5" /> 142 <Backlight 143 mainstate=activity 144 active=false 145 scale=0.4 146 name=bltest 147 position=" 7.6, 0, 6" 148 colour="0.2, 0.65, 1.0, 1.0" 149 width=15 150 length=1500 151 lifetime=2 152 elements=50 153 trailmaterial="Trail/backlighttrail" 154 turnontime=1 155 turnofftime=1 156 material="Flares/ThrusterFlare1" 157 /> 158 <?lua for i=0,8,1 do ?> 159 <BlinkingBillboard 160 position="<?lua print(200-270/8*i)?> ,15,2" 161 material="Examples/Flare" 162 colour="1.0, 0.5, 0.3" 163 phase=<?lua print(-360/8*i)?> 164 amplitude=0.1 165 frequency=0.5 166 quadratic=1 167 /> 168 169 <BlinkingBillboard 170 position="<?lua print(200-270/8*i)?>,-15,2" 171 material="Examples/Flare" 172 colour="1.0, 0.5, 0.3" 173 phase=<?lua print(-360/8*i)?> 174 amplitude=0.1 175 frequency=0.5 176 quadratic=1 177 /> 178 <?lua end ?> 179 180 <Backlight 181 scale=1 182 position=" 169, 75, -15" 183 colour="1, 0.85, 0.5, 0.5" 184 width=40 185 length=1000 186 lifetime=5 187 elements=15 188 trailmaterial="Trail/backlighttrail" 189 material="Examples/Flare" 190 /> 191 <Backlight 192 scale=1 193 position=" 169, -75, -15" 194 colour="1, 0.85, 0.5, 0.5" 195 width=40 196 length=1000 197 lifetime=5 198 elements=15 199 trailmaterial="Trail/backlighttrail" 200 material="Examples/Flare" /> 201 </attached> 202 <collisionShapes> 203 <BoxCollisionShape position="70,0,-25" halfExtents="150, 50, 25" /> 204 <BoxCollisionShape position="95,75,-16" halfExtents="70, 10, 12" /> 205 <BoxCollisionShape position="95,-75,-16" halfExtents="70, 10, 12" /> 206 <BoxCollisionShape position="77,47,30" halfExtents="110, 2, 30" /> 207 <BoxCollisionShape position="77,-47,30" halfExtents="110, 2, 30" /> 208 <BoxCollisionShape position="77,0,50" halfExtents="110, 45, 6" /> 209 <BoxCollisionShape position="167,0,70" halfExtents="17, 20, 20" /> 210 </collisionShapes> 211 </Destroyer> 212 213 214 <?lua 215 for i = 1,25, 1 216 do 217 ?> 218 <SpaceShip position="-5000,0,<?lua print(i*50 - 150) ?>" > 219 <templates> 220 <Template link=spaceshipGhost /> 221 </templates> 222 <controller> 223 <WaypointPatrolController alertnessradius=1000 team=0 active=true> 224 <waypoints> 225 <StaticEntity position="-5000,<?lua print(math.random()*50)?> ,<?lua print(i*50 -150) ?>" /> 226 </waypoints> 227 </WaypointPatrolController> 228 </controller> 229 </SpaceShip> 230 <?lua 231 end 232 ?> 233 234 125 235 <AmbientSound ambientSource="Earth.ogg" loop="true" play="false"> 126 236 <events> … … 131 241 </AmbientSound> 132 242 133 <SpawnPoint position="0,0, 100" spawnclass=SpaceShip pawndesign=spaceshipHXY/>243 <SpawnPoint position="0,0,5000" spawnclass=SpaceShip pawndesign=spaceshipassff team=0/> 134 244 </Scene> 135 245 </Level>
Note: See TracChangeset
for help on using the changeset viewer.