Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/spaceshiptemplates_presentation.oxw @ 5363

Last change on this file since 5363 was 5363, checked in by rgrieder, 15 years ago

This should improve space ship maneuvrability

  • Property svn:eol-style set to native
File size: 5.3 KB
Line 
1<Template name=spaceshipassff>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipassffcameras
5   engine                 = spaceshipassffengine
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    <attached>
24      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
25      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
26      <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 />
27    </attached>
28    <collisionShapes>
29      <SphereCollisionShape radius=20/>
30    </collisionShapes>
31  </SpaceShip>
32</Template>
33
34<Template name=spaceshipassffcameras defaults=0>
35  <SpaceShip>
36    <camerapositions>
37      <CameraPosition position="0,10, 40" drag=true mouselook=true />
38      <CameraPosition position="0,20, 80" drag=true mouselook=true />
39      <CameraPosition position="0,30,120" drag=true mouselook=true />
40      <!--CameraPosition position="0,150,-25" pitch=-90 drag=true />
41      <CameraPosition position="0,0,-40" yaw=180 drag=true />
42      <CameraPosition position="0,3,-14" yaw=0 />
43      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
44      <CameraPosition position="50,5,-8" yaw=90 drag=true /-->
45    </camerapositions>
46  </SpaceShip>
47</Template>
48
49<Template name=spaceshipassffengine baseclass=MultiStateEngine>
50  <MultiStateEngine
51   boostfactor    = 2
52
53   speedfront     = 150
54   speedback      =  50
55   speedleftright =  50
56   speedupdown    =  50
57
58   accelerationfront     = 0.100
59   accelerationbrake     = 0.100
60   accelerationback      =  0.25
61   accelerationleftright =  0.25
62   accelerationupdown    =  0.25
63  >
64    <active>
65      <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 />
66<!--
67      <Light mainstate=visibility position=" 8, 0, 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 />
68      <Light mainstate=visibility position="-8, 0, 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 />
69-->
70    </active>
71    <forward>
72      <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" />
73      <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" />
74    </forward>
75    <boost>
76      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" 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" />
77      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" 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" />
78    </boost>
79    <brake>
80      <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 />
81      <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 />
82      <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 />
83      <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 />
84    </brake>
85  </MultiStateEngine>
86</Template>
87
88<!--Template name=spaceshippirate>
89  <SpaceShip
90   health            = 100
91   maxhealth         = 200
92   initialhealth     = 100
93
94   maxspeed          = 250
95   maxsecondaryspeed = 50
96   maxrotation       = 100
97   transacc          = 200
98   rotacc            = 140
99   transdamp         = 75
100  >
101    <attached>
102      <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
103    </attached>
104  </SpaceShip>
105</Template>
106
107<Template name=spaceshipspacecruiser>
108  <SpaceShip
109   health            = 100
110   maxhealth         = 200
111   initialhealth     = 100
112
113   maxspeed          = 250
114   maxsecondaryspeed = 50
115   maxrotation       = 100
116   transacc          = 200
117   rotacc            = 140
118   transdamp         = 75
119  >
120    <attached>
121      <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
122    </attached>
123  </SpaceShip>
124</Template-->
Note: See TracBrowser for help on using the repository browser.