1 | <?lua |
---|
2 | include("hudtemplates3.oxo") |
---|
3 | include("stats.oxo") |
---|
4 | include("templates/spaceship_assff.oxt") |
---|
5 | include("templates/spaceship_H2.oxt") |
---|
6 | include("templates/fps.oxt") |
---|
7 | ?> |
---|
8 | |
---|
9 | <Level |
---|
10 | name = "fps" |
---|
11 | description = "tests" |
---|
12 | > |
---|
13 | <Scene |
---|
14 | ambientlight = "0.1, 0.1, 0.1" |
---|
15 | skybox = "Orxonox/skypanoramagen1" |
---|
16 | gravity = "0,-1000,0" |
---|
17 | negativeWorldRange = "(-100000, -100000, -100000)" |
---|
18 | positiveWorldRange = "( 100000, 100000, 100000)" |
---|
19 | hasPhysics = true |
---|
20 | > |
---|
21 | <Light type=directional position="0,-100000,0" direction="0.02, -1, 0.05" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
22 | |
---|
23 | <Pawn health=100 position="600,35,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
24 | <attached> |
---|
25 | <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" /> |
---|
26 | </attached> |
---|
27 | <collisionShapes> |
---|
28 | <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" /> |
---|
29 | </collisionShapes> |
---|
30 | </Pawn> |
---|
31 | |
---|
32 | <Pawn health=100 position="0,-35,0" direction="0,-1,0" collisionType=dynamic mass=100000> |
---|
33 | <attached> |
---|
34 | <Model position="0,0,0" mesh="crate.mesh" scale3D="5,5,5" /> |
---|
35 | </attached> |
---|
36 | <collisionShapes> |
---|
37 | <BoxCollisionShape position="0,0,0" halfExtents="25,25,25" /> |
---|
38 | </collisionShapes> |
---|
39 | </Pawn> |
---|
40 | |
---|
41 | <StaticEntity position="0,-50,0" direction="0,-1,0" collisionType=static mass=100000 > |
---|
42 | <attached> |
---|
43 | <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" /> |
---|
44 | </attached> |
---|
45 | <collisionShapes> |
---|
46 | <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" /> |
---|
47 | </collisionShapes> |
---|
48 | </StaticEntity> |
---|
49 | |
---|
50 | <StaticEntity position="210,-30,0" direction="0,-1,0" collisionType=static mass=100000 > |
---|
51 | <attached> |
---|
52 | <Model position="0,0,0" mesh="cube_orange.mesh" scale3D="100,100,10" /> |
---|
53 | </attached> |
---|
54 | <collisionShapes> |
---|
55 | <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" /> |
---|
56 | </collisionShapes> |
---|
57 | </StaticEntity> |
---|
58 | |
---|
59 | <StaticEntity position="600,-20,0" direction="0,-1,0" collisionType=static mass=100000 > |
---|
60 | <attached> |
---|
61 | <Model position="0,0,0" mesh="cube_green.mesh" scale3D="100,100,10" /> |
---|
62 | </attached> |
---|
63 | <collisionShapes> |
---|
64 | <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" /> |
---|
65 | </collisionShapes> |
---|
66 | </StaticEntity> |
---|
67 | |
---|
68 | <StaticEntity position="600,10,120" direction="0,-1,1" collisionType=static mass=100000 > |
---|
69 | <attached> |
---|
70 | <Model position="0,0,0" mesh="cube_red.mesh" scale3D="100,100,10" /> |
---|
71 | </attached> |
---|
72 | <collisionShapes> |
---|
73 | <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" /> |
---|
74 | </collisionShapes> |
---|
75 | </StaticEntity> |
---|
76 | |
---|
77 | <StaticEntity position="600,40,250" direction="0,-1,0" collisionType=static mass=100000 > |
---|
78 | <attached> |
---|
79 | <Model position="0,0,0" mesh="cube.mesh" scale3D="100,100,10" /> |
---|
80 | </attached> |
---|
81 | <collisionShapes> |
---|
82 | <BoxCollisionShape position="0,0,0" halfExtents="100,100,10" /> |
---|
83 | </collisionShapes> |
---|
84 | </StaticEntity> |
---|
85 | <?lua |
---|
86 | for i = 1, 10, 1 |
---|
87 | do ?> |
---|
88 | <SpawnPoint position="0,300,0" direction="0, 0, 0" lookat="0,0,100000000" spawnclass=FpsPlayer pawndesign=fps /> |
---|
89 | <?lua |
---|
90 | end |
---|
91 | ?> |
---|
92 | |
---|
93 | <!-- |
---|
94 | <?lua |
---|
95 | for i = 1, 200, 1 |
---|
96 | do |
---|
97 | j = math.random() |
---|
98 | ?> |
---|
99 | |
---|
100 | <MovableEntity position="<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000-2000) ?>,<?lua print(math.random() * 5000 - 2000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 100) ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>" > |
---|
101 | <attached> |
---|
102 | <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
103 | </attached> |
---|
104 | <collisionShapes> |
---|
105 | <SphereCollisionShape radius="<?lua print(j * 100) ?>" /> |
---|
106 | </collisionShapes> |
---|
107 | </MovableEntity> |
---|
108 | <?lua |
---|
109 | end |
---|
110 | ?> |
---|
111 | --> |
---|
112 | </Scene> |
---|
113 | </Level> |
---|