1 | |
---|
2 | <LevelInfo |
---|
3 | name = "Portals" |
---|
4 | description = "Level for testing portals" |
---|
5 | tags = "tutorial" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("stats.oxo") |
---|
11 | include("templates/spaceshipAssff.oxt") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <Level |
---|
16 | name = "Presentation" |
---|
17 | description = "A simple testlevel" |
---|
18 | > |
---|
19 | <templates> |
---|
20 | <Template link=lodtemplate_default /> |
---|
21 | </templates> |
---|
22 | |
---|
23 | <Scene |
---|
24 | ambientlight = "0.5, 0.5, 0.5" |
---|
25 | skybox = "Orxonox/skypanoramagen1" |
---|
26 | > |
---|
27 | |
---|
28 | <Template name=portalDefault> |
---|
29 | <PortalEndPoint> |
---|
30 | <attached> |
---|
31 | <Billboard material="Examples/Flare" /> |
---|
32 | </attached> |
---|
33 | </PortalEndPoint> |
---|
34 | </Template> |
---|
35 | |
---|
36 | <PortalEndPoint position="0,0,0" id="1" distance="40" target="MobileEntity" design="portalDefault" eventTemplate="portalEventTemplate" /> |
---|
37 | <PortalEndPoint position="-400,0,0" id="2" distance="40" lookat="0,100,0" target="MobileEntity" design="portalDefault" /> |
---|
38 | <PortalLink fromID="1" toID="2" /> |
---|
39 | <PortalLink fromID="2" toID="1" /> |
---|
40 | |
---|
41 | <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" /> |
---|
42 | |
---|
43 | <SpawnPoint position="200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
44 | |
---|
45 | <GlobalShader compositor="Bloom" visible=false> |
---|
46 | <events> |
---|
47 | <visibility> |
---|
48 | <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> |
---|
49 | </visibility> |
---|
50 | </events> |
---|
51 | </GlobalShader> |
---|
52 | |
---|
53 | |
---|
54 | <!-- |
---|
55 | <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> |
---|
56 | <StaticEntity position="0,0,0" collisionType=static> |
---|
57 | <collisionShapes> |
---|
58 | <SphereCollisionShape radius="20" /> |
---|
59 | </collisionShapes> |
---|
60 | </StaticEntity> |
---|
61 | --> |
---|
62 | |
---|
63 | |
---|
64 | <!-- |
---|
65 | <?lua |
---|
66 | for i = 1, 70, 1 do |
---|
67 | ?> |
---|
68 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
69 | <attached> |
---|
70 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
71 | </attached> |
---|
72 | </MovableEntity> |
---|
73 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
74 | <attached> |
---|
75 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
76 | </attached> |
---|
77 | </MovableEntity> |
---|
78 | |
---|
79 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
80 | <attached> |
---|
81 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
82 | </attached> |
---|
83 | </MovableEntity> |
---|
84 | <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
85 | <attached> |
---|
86 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
87 | </attached> |
---|
88 | </MovableEntity> |
---|
89 | |
---|
90 | <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
91 | <attached> |
---|
92 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
93 | </attached> |
---|
94 | </MovableEntity> |
---|
95 | <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> |
---|
96 | <attached> |
---|
97 | <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
98 | </attached> |
---|
99 | </MovableEntity> |
---|
100 | <?lua end ?> |
---|
101 | --> |
---|
102 | |
---|
103 | </Scene> |
---|
104 | </Level> |
---|