Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7036 was 7036, checked in by scheusso, 15 years ago

some changes regarding lod:

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