Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/templates/spaceship_H2.oxt @ 5570

Last change on this file since 5570 was 5528, checked in by landauf, 16 years ago

Cleaned up level directory.

Levels (*.oxw): /levels/
Includes (*.oxi): /levels/includes/ (for example weaponsettings1.oxi)
Templates (*.oxt): /levels/templates/ (formerly spaceshiptemplates_*)
Huds (*.oxo): /overlay/ (moved from /levels/ to /overlay/)

Old level files and other stuff was moved to /levels/old/. This directory is not used, but serves as an archive.

For the weapons branch (and the trunk after weapons will be merged), change line 37 in /levels/templates/spaceship_assff.oxt from weaponsettings1 to weaponsettings2 to be able to shoot again.

  • Property svn:eol-style set to native
File size: 5.8 KB
RevLine 
[5528]1<Template name=spaceshipHtwo>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipHtwocameras
5   engine                 =spaceshipHtwoengine
6   spawnparticlesource    = "Orxonox/fairytwirl"
7   spawnparticleduration  = 3
8   explosionchunks        = 6
9
10   health            = 100
11   maxhealth         = 200
12   initialhealth     = 100
13
14   primaryThrust     = 100;
15   auxilaryThrust    = 30;
16   rotationThrust    = 25;
17
18   collisionType     = "dynamic"
19   mass              = 100
20   linearDamping     = 0.7
21   angularDamping    = 0.9999999
22  >
23
24<?lua
25  include("levels/includes/weaponsettings_H2.oxi")
26?>
27
28    <attached>
29      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale3D="3,0.833,0.833" mesh="h2_green.mesh" />
30      <BlinkingBillboard position="11.68,4.02,9.52" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
31      <BlinkingBillboard position="-12.27,4.02,9.52" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
32    </attached>
33    <collisionShapes>
34      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
35      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
36      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
37      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
38      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
39      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
40    </collisionShapes>
41
42  </SpaceShip>
43</Template>
44
45<Template name=spaceshipHtwocameras defaults=0>
46  <SpaceShip>
47    <camerapositions>
48      <CameraPosition position="0,10, 40" drag=true mouselook=true />
49      <CameraPosition position="0,20, 80" drag=true mouselook=true />
50      <CameraPosition position="0,30,120" drag=true mouselook=true />
51      <!--CameraPosition position="0,150,-25" pitch=-90 drag=true />
52      <CameraPosition position="0,0,-40" yaw=180 drag=true />
53      <CameraPosition position="0,3,-14" yaw=0 />
54      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
55      <CameraPosition position="50,5,-8" yaw=90 drag=true /-->
56    </camerapositions>
57  </SpaceShip>
58</Template>
59
60<Template name=spaceshipHtwoengine baseclass=MultiStateEngine>
61  <MultiStateEngine
62   boostfactor    = 2
63
64   speedfront     = 150
65   speedback      =  50
66   speedleftright =  50
67   speedupdown    =  50
68
69   accelerationfront     = 500
70   accelerationbrake     = 500
71   accelerationback      =  125
72   accelerationleftright =  125
73   accelerationupdown    =  125
74  >
75      <active>
76      <FadingBillboard mainstate=activity active=false scale=0.05 position="-0.1, 2, 12" colour="0, 0.65, 0, 0.5" material="Examples/FlareZwei_1" turnontime=0.5 turnofftime=0.5 />
77<!--
78      <Light mainstate=visibility position=" 12.7, 4, 17.2" diffuse="0.3, 0.6, 1.0" specular="0.3, 0.6, 1.0" attenuation="600, 1.0, 0.007, 0.0002" type=point />
79      <Light mainstate=visibility position="-13, 4, 16.8" diffuse="0.3, 0.6, 1.0" specular="0.3, 0.6, 1.0" attenuation="600, 1.0, 0.007, 0.0002" type=point />
80-->
81    </active>
82    <forward>
83      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.06, 1.66, 12.45" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
84      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.26, 1.66, 12.45" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
85    </forward>
86    <boost>
87      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.06,1.66, 12.45" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
88      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.26, 1.66, 12.45" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
89    </boost>
90    <brake>
91<!--
92      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 12.7, 4.2, 11.5" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
93      <FadingBillboard mainstate=activity active=false scale=0.3 position="-13, 4.2, 11.5" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
94      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 12.7, 4.2, 11.5" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
95      <FadingBillboard mainstate=activity active=false scale=0.15 position="-13, 4.2, 11.5" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
96-->
97    </brake>
98  </MultiStateEngine>
99</Template>
100
101<!--Template name=spaceshippirate>
102  <SpaceShip
103   health            = 100
104   maxhealth         = 200
105   initialhealth     = 100
106
107   maxspeed          = 250
108   maxsecondaryspeed = 50
109   maxrotation       = 100
110   transacc          = 200
111   rotacc            = 140
112   transdamp         = 75
113  >
114    <attached>
115      <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
116    </attached>
117  </SpaceShip>
118</Template>
119
120<Template name=spaceshipspacecruiser>
121  <SpaceShip
122   health            = 100
123   maxhealth         = 200
124   initialhealth     = 100
125
126   maxspeed          = 250
127   maxsecondaryspeed = 50
128   maxrotation       = 100
129   transacc          = 200
130   rotacc            = 140
131   transdamp         = 75
132  >
133    <attached>
134      <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
135    </attached>
136  </SpaceShip>
137</Template-->
Note: See TracBrowser for help on using the repository browser.