Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/mylevel.oxw @ 6920

Last change on this file since 6920 was 6920, checked in by stmathia, 14 years ago

Changes in level files. Addition to TemaDeathmatch, should now be able to only use active SpawnPoints (at least if there are active ones), not fully working, yet, though.

File size: 3.9 KB
Line 
1<?lua
2        include("stats.oxo")
3        include("hudtemplates3.oxo")
4        include("underattackhud.oxo")
5        include("templates/spaceship_assff.oxt")
6        include("templates/spaceship_pirate.oxt")
7        include("templates/spaceship_Transporter.oxt")
8?>
9
10<Template name=spaceshipassffplayer>
11  <SpaceShip
12   hudtemplate            = spaceshiphud
13   camerapositiontemplate = spaceshipassffcameras
14   engine                 = spaceshipassffengine
15   spawnparticlesource    = "Orxonox/fairytwirl"
16   spawnparticleduration  = 3
17   explosionchunks        = 6
18
19   health            = 100
20   maxhealth         = 200
21   initialhealth     = 100
22
23   primaryThrust     = 100;
24   auxilaryThrust    = 30;
25   rotationThrust    = 25;
26
27   collisionType     = "dynamic"
28   mass              = 100
29   linearDamping     = 0.7
30   angularDamping    = 0.9999999
31  >
32    <attached>
33      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
34      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
35      <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 />
36      <DistanceTriggerBeacon name="test" />
37    </attached>
38    <collisionShapes>
39      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
40      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
41      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
42      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
43      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
44      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
45    </collisionShapes>
46<?lua
47  include("includes/weaponsettings3.oxi")
48?>
49  </SpaceShip>
50</Template>
51
52<!-- Ausgang: Level ===> name/description -->
53<Level
54  name="Level"
55  description="Level zerstoeren von Transportern"
56  gametype=TeamDeathmatch
57>
58
59        <!-- Ausgang: Szene ===> ambientlight/skybox -->
60        <Scene
61          ambientlight="0.8,0.8,0.8"
62          skybox="Orxonox/skypanoramagen1"
63        >
64
65                <!--Light: noch zu aendern -->
66                <Light type=directional position="0,0,0" direction="1000, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
67
68
69                <SpawnPoint position="0,0,0" direction="1000,0,0" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0/>
70
71<!--
72                <EventTrigger name="testdestroy" activations=1 stayactive="true">
73                        <events>
74                                <trigger>
75                                        <SpaceShip position="2000,0,3000" lookat="0,0,0" team=1>
76                                                <templates>
77                                                        <Template link=spaceshippirate/>
78                                                </templates>
79                                                <controller>
80                                                        <AIController activity="false"/>
81                                                </controller>
82                                        </SpaceShip>
83                                </trigger>
84                        </events>
85                </EventTrigger>
86-->
87
88                                        <SpaceShip position="1000,0,200" lookat="0,0,0">
89                                                <templates>
90                                                        <Template link=spaceshipassff/>
91                                                </templates>
92                                                <controller>
93                                                        <AIController active="false"/>
94                                                </controller>
95                                        </SpaceShip>
96
97<DistanceTrigger name="triggername" position="1000,0,0" distance="500" target="DistanceTriggerBeacon" targetname="test" activations=1 stayactive="true" />
98
99                <SpaceShip position="1000,0,0" lookat="2000,0,0" >
100                        <templates>
101                                <Template link=spaceshipassff />
102                        </templates>
103                        <controller>
104                                <WaypointPatrolController alertnessradius=5000 team=0 active="false" >
105                                        <waypoints>
106                                                <Model mesh="cube.mesh" scale=0 position="2000,0,0" />
107                                        </waypoints>
108                                        <events>
109                                                <activity>
110                                                        <EventListener event="triggername" />
111                                                </activity>
112                                        </events>
113                                </WaypointPatrolController>
114                        </controller>
115                </SpaceShip>
116        </Scene>
117</Level>
118
119
120
121<!-- ZUM ERSTELLEN DER DESTROYTRIGGER
122<EventTrigger name="triggername" activations=1 stayactive=true >
123        <events>
124                <trigger>
125                        <Spaceship />
126                </trigger>
127        </events>
128</EventTrigger>
129
130<Spaceship>
131        <controller>
132                <SomeController activity="false">
133                        <events>
134                                <activity>
135                                        <EventListener event="triggername" />
136                                </activity>
137                        </events>
138                </SomeController>
139        </controller>
140</Spacehip>
141
142-->
Note: See TracBrowser for help on using the repository browser.