Changeset 10680 for code/branches/campaignHS15/data
- Timestamp:
- Oct 21, 2015, 4:48:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/data/levels/Campaign1.oxw
r10676 r10680 121 121 <events> 122 122 <trigger> 123 <SpawnPoint team=1 position=" -50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />123 <SpawnPoint team=1 position="0,-50,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 /> 124 124 </trigger> 125 125 </events> … … 152 152 <!--STRUCTURE --> 153 153 154 <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > 154 <!-- A, Coordinates are approx. (cos(29pi/16), sin(29pi/16), 0)*3000 --> 155 <StaticEntity position="2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > 155 156 <attached> 156 <Model position="0,0,0" mesh="cube.mesh" scale3D=" 10,10,10" />157 <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" /> 157 158 </attached> 158 159 <collisionShapes> … … 161 162 </StaticEntity> 162 163 163 <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > 164 <!-- B, Coordinates are approx. (-cos(29pi/16), sin(29pi/16), 0)*3000 --> 165 <StaticEntity position="-2494,-1667,0" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 > 164 166 <attached> 165 <Model position="0,0,0" mesh="cube.mesh" scale3D=" 10,10,10" />167 <Model position="0,0,0" mesh="cube.mesh" scale3D="40,40,40" /> 166 168 </attached> 167 169 <collisionShapes> … … 172 174 <!--ELEMENTS --> 173 175 176 <!-- Enemies --> 174 177 <?lua 175 178 max = 5 … … 179 182 y = math.sin(math.pi/8*(i+1))*1500 180 183 ?> 181 <SpaceShip position="<?lua print( y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=2>184 <SpaceShip position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=2> 182 185 <templates> 183 186 <Template link="spaceshippirate" /> 184 187 </templates> 185 188 <controller> 186 <WaypointPatrolController alertnessradius= 600 team=1>189 <WaypointPatrolController alertnessradius=50 team=1> 187 190 <waypoints> 188 191 <Attacher target="transporter" deletewithparent=false /> … … 193 196 <?lua end ?> 194 197 195 <SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=1 name="transporter"> 198 <!-- Transporter, starting Point is near A, end Point near B, the circle parameters for the waypoints are: Center = (0, -887, 0), r = 2613 --> 199 <SpaceShip position="2450, -1667, 0" lookat="-2494, -1667, 0" team=1 name="transporter"> 196 200 <templates> 197 201 <Template link="spaceshipTransporter" /> … … 200 204 <WaypointController accuracy=10> 201 205 <waypoints> 202 < Model mesh="sphere.mesh" scale=100 position="-2500,0,1650" />206 <!-- A to B --> 203 207 <?lua 204 208 max = 5 205 209 for i = 1, max, 1 206 210 do 207 x = math.cos(math.pi /8*(i+1))*3490208 y = -math.sin(math.pi /8*(i+1))*3490211 x = math.cos(math.pi*(i+1)/8)*2613 212 y = -math.sin(math.pi*(i+1)/8)*2613-887 209 213 ?> 210 <Model mesh="sphere.mesh" scale=100 position="<?lua print( y) ?>+490,0,<?lua print(x) ?>" />214 <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" /> 211 215 <?lua end ?> 212 <Model mesh="sphere.mesh" scale=100 position="-2500,0,-1650" /> 216 217 <!-- Return Point --> 218 <Model mesh="sphere.mesh" scale=100 position="-2450, -1667, 0" /> 219 220 <!-- B to A --> 221 <?lua 222 max = 5 223 for i = 1, max, 1 224 do 225 x = math.cos(math.pi*(max+2-i)/8)*2613 226 y = -math.sin(math.pi*(max+2-i)/8)*2613-887 227 ?> 228 <Model mesh="sphere.mesh" scale=100 position="<?lua print(x) ?>,<?lua print(y) ?>,0" /> 229 <?lua end ?> 230 231 <!-- Start Point --> 232 <Model mesh="sphere.mesh" scale=100 position="2450,-1667,0" /> 213 233 </waypoints> 214 234 </WaypointController>
Note: See TracChangeset
for help on using the changeset viewer.