Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/leveljoemeHS14/data/levels/AnihilationThreat.oxw @ 10094

Last change on this file since 10094 was 10094, checked in by sujataj, 10 years ago

added a new level file

File size: 3.4 KB
Line 
1<LevelInfo
2        name= "Total Anihilation"
3        description= "Save humanity from its total anihilation."
4        tags= "mission"
5        screenshot= "screenshot.png"
6/>
7
8
9 <?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13?>
14
15
16<?lua
17  include("templates/spaceshipSwallow.oxt")
18  include("templates/spaceshipPirate.oxt")
19  include("templates/spaceshipEscort.oxt")
20  include("templates/spaceshipGhost.oxt")
21  include("templates/spaceshipCollateralDamage.oxt")
22  include("templates/spaceshipAssff.oxt")
23  include("templates/spaceshipAssff2.oxt")
24?>
25
26<Level  gametype = "Mission" >
27 
28<templates>
29    <Template link=lodtemplate_default />
30  </templates>
31  <?lua include("includes/notifications.oxi") ?>
32 
33
34<?lua
35      include("includes/pickups.oxi")
36   ?>
37
38   <?lua
39    dofile("includes/CuboidSpaceStation.lua")
40   ?>
41
42
43
44<Scene
45    ambientlight = "0.5, 0.5, 0.5"
46    skybox       = "Orxonox/Starbox"
47    hasPhysics = true
48 >
49       
50 
51  <Light
52        type=directional position="0,0,0"
53        direction="0.522, 0.198, -0.354"
54        diffuse="1.0, 0.9, 0.9, 1.0"
55        specular="1.0, 0.9, 0.9, 1.0"/>
56       
57       
58  <SpawnPoint
59        team=0 position="500,0,0"
60        lookat="1,1,0"
61        spawnclass=SpaceShip
62        pawndesign=spaceshipswallow />
63       
64       
65        <Template name=PortalDefault>
66        <PortalEndPoint>
67            <attached>
68                <Model mesh="Spacegate.mesh" yaw="90"/>
69            </attached>
70        </PortalEndPoint>
71    </Template>
72
73    <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
74    <PortalEndPoint position="-1000,0,0" id="2" distance="40" target="MobileEntity" design="PortalDefault" reenterDelay="0"/>
75    <PortalLink fromID="1" toID="2" />
76    <PortalLink fromID="2" toID="1" />
77       
78        <DistanceTrigger name="switchPlanets" position="-1100,0,0" target="Pawn" distance=70 stayActive="true" delay=1/>
79
80<!-- switchBillboards makes this billboard INVISIBLE -->
81<Planet
82      position="-100000,0,0"
83      scale="10000"
84      collisionType="dynamic"
85      linearDamping="0.8"
86      angularDamping="0"
87      mass="5.9e21"
88      pitch="0"
89      mesh="planets/earth.mesh"
90      atmosphere="atmosphere1"
91      rotationaxis="0,1,0"
92      rotationrate="0.2"
93      atmospheresize="80.0f"
94      imagesize="1024.0f"
95      collisiondamage = 2
96      enablecollisiondamage = true
97    >
98   <events>
99      <visibility>
100        <EventTrigger invert=true>
101          <events>
102           <trigger>
103             <EventListener event=switchPlanets />
104           </trigger>
105         </events>
106        </EventTrigger>
107      </visibility>
108   </events>
109</Planet>
110       
111       
112         <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 -->
113    <Planet
114      position="-100000,0,0"
115      scale="10000"
116      collisionType="dynamic"
117      linearDamping="0.8"
118      angularDamping="0"
119      mass="5.9e21"
120      pitch="0"
121      mesh="planets/earth.mesh"
122      atmosphere="atmosphere1"
123      rotationaxis="0,1,0"
124      rotationrate="0.2"
125      atmospheresize="80.0f"
126      imagesize="1024.0f"
127      collisiondamage = 2
128      enablecollisiondamage = true
129    >
130      <attached>
131        <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" />
132      </attached>
133      <collisionShapes>
134        <SphereCollisionShape radius="63000" position="0,0,0" />
135      </collisionShapes>
136    </Planet>
137   
138       
139       
140       
141   
142   
143   
144  </Scene>
145</Level>
Note: See TracBrowser for help on using the repository browser.