Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/spaceshiptemplates3.oxw @ 5285

Last change on this file since 5285 was 5285, checked in by landauf, 15 years ago

added MultiStateEngine to the default SpaceShip

  • Property svn:eol-style set to native
File size: 4.6 KB
Line 
1<Template name=spaceshipassff>
2  <SpaceShip
3   camerapositiontemplate = spaceshipassffcameras
4   engine                 = spaceshipassffengine
5
6   health            = 100
7   maxhealth         = 200
8   initialhealth     = 100
9
10   maxrotation       = 100
11   rotacc            = 140
12   transdamp         = 50
13  >
14    <attached>
15      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
16      <!--Light position="0,0,20" diffuse="0,0,1" specular="0,0,1" type=point /-->
17      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
18      <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 />
19      <!--ParticleEmitter position="0,0,-100" source="Orxonox/smoke5" /-->
20    </attached>
21  </SpaceShip>
22</Template>
23
24<Template name=spaceshipassffcameras defaults=0>
25  <SpaceShip>
26    <camerapositions>
27      <CameraPosition position="0,10,40" />
28      <CameraPosition position="0,150,-25" pitch=-90 />
29      <CameraPosition position="0,0,-30" yaw=180 />
30      <CameraPosition position="0,3,-14" yaw=0 />
31      <CameraPosition position="-50,5,-8" yaw=-90 />
32      <CameraPosition position="50,5,-8" yaw=90 />
33    </camerapositions>
34  </SpaceShip>
35</Template>
36
37<Template name=spaceshipassffengine baseclass=MultiStateEngine>
38  <MultiStateEngine
39   boostfactor    = 2
40
41   speedfront     = 150
42   speedback      =  50
43   speedleftright =  50
44   speedupdown    =  50
45
46   accelerationfront     = 100
47   accelerationbrake     = 100
48   accelerationback      =  25
49   accelerationleftright =  25
50   accelerationupdown    =  25
51  >
52    <active>
53      <FadingBillboard mainstate=activity active=false scale=0.1 position="0, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
54    </active>
55    <forward>
56      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" 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" />
57      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" 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" />
58    </forward>
59    <boost>
60      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.8, 0.95, 1.0, 1.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
61      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.8, 0.95, 1.0, 1.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
62    </boost>
63    <brake>
64      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
65      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
66      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
67      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
68    </brake>
69  </MultiStateEngine>
70</Template>
71
72<!--Template name=spaceshippirate>
73  <SpaceShip
74   health            = 100
75   maxhealth         = 200
76   initialhealth     = 100
77
78   maxspeed          = 250
79   maxsecondaryspeed = 50
80   maxrotation       = 100
81   transacc          = 200
82   rotacc            = 140
83   transdamp         = 75
84  >
85    <attached>
86      <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
87    </attached>
88  </SpaceShip>
89</Template>
90
91<Template name=spaceshipspacecruiser>
92  <SpaceShip
93   health            = 100
94   maxhealth         = 200
95   initialhealth     = 100
96
97   maxspeed          = 250
98   maxsecondaryspeed = 50
99   maxrotation       = 100
100   transacc          = 200
101   rotacc            = 140
102   transdamp         = 75
103  >
104    <attached>
105      <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
106    </attached>
107  </SpaceShip>
108</Template-->
Note: See TracBrowser for help on using the repository browser.