Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/spaceshiptemplates_presentation_H2.oxw @ 5523

Last change on this file since 5523 was 5513, checked in by dave, 15 years ago

H2 fighter added

File size: 6.6 KB
Line 
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    <attached>
24      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale3D="3,0.833,0.833" mesh="h2_green.mesh" />
25      <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 />
26      <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 />
27    </attached>
28    <collisionShapes>
29      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
30      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
31      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
32      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
33      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
34      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
35    </collisionShapes>
36    <weaponslots>
37      <WeaponSlot position="-15,-1.5,-25" yaw=0 pitch=0 roll=0 />
38      <WeaponSlot position="15,-1.5,-25" yaw=0 pitch=0 roll=0 />
39      <WeaponSlot position="0,0,-45" yaw=0 pitch=0 roll=0 />
40    </weaponslots>
41    <weaponsets>
42      <WeaponSet firemode=0 />
43      <WeaponSet firemode=1 />
44    </weaponsets>
45    <weapons>
46      <WeaponPack firemode=0>
47        <LaserGun position="-7.76,3.12,9.25" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="1.0" speed="1250" />
48        <LaserGun position="13.03,43.12,19.25" munitionType="LaserGunMunition" bulletLoadingTime="0.2" magazineLoadingTime="1.0" speed="1250" />
49      </WeaponPack>
50      <WeaponPack firemode=1>
51        <Fusion position="0,0,0" munitionType="LaserGunMunition" bulletLoadingTime="0.5" magazineLoadingTime="0" speed="500" />
52      </WeaponPack>
53    </weapons>
54  </SpaceShip>
55</Template>
56
57<Template name=spaceshipHtwocameras defaults=0>
58  <SpaceShip>
59    <camerapositions>
60      <CameraPosition position="0,10, 40" drag=true mouselook=true />
61      <CameraPosition position="0,20, 80" drag=true mouselook=true />
62      <CameraPosition position="0,30,120" drag=true mouselook=true />
63      <!--CameraPosition position="0,150,-25" pitch=-90 drag=true />
64      <CameraPosition position="0,0,-40" yaw=180 drag=true />
65      <CameraPosition position="0,3,-14" yaw=0 />
66      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
67      <CameraPosition position="50,5,-8" yaw=90 drag=true /-->
68    </camerapositions>
69  </SpaceShip>
70</Template>
71
72<Template name=spaceshipHtwoengine baseclass=MultiStateEngine>
73  <MultiStateEngine
74   boostfactor    = 2
75
76   speedfront     = 150
77   speedback      =  50
78   speedleftright =  50
79   speedupdown    =  50
80
81   accelerationfront     = 500
82   accelerationbrake     = 500
83   accelerationback      =  125
84   accelerationleftright =  125
85   accelerationupdown    =  125
86  >
87      <active>
88      <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 />
89<!--
90      <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 />
91      <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 />
92-->
93    </active>
94    <forward>
95      <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" />
96      <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" />
97    </forward>
98    <boost>
99      <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" />
100      <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" />
101    </boost>
102    <brake>
103<!--
104      <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 />
105      <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 />
106      <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 />
107      <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 />
108-->
109    </brake>
110  </MultiStateEngine>
111</Template>
112
113<!--Template name=spaceshippirate>
114  <SpaceShip
115   health            = 100
116   maxhealth         = 200
117   initialhealth     = 100
118
119   maxspeed          = 250
120   maxsecondaryspeed = 50
121   maxrotation       = 100
122   transacc          = 200
123   rotacc            = 140
124   transdamp         = 75
125  >
126    <attached>
127      <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
128    </attached>
129  </SpaceShip>
130</Template>
131
132<Template name=spaceshipspacecruiser>
133  <SpaceShip
134   health            = 100
135   maxhealth         = 200
136   initialhealth     = 100
137
138   maxspeed          = 250
139   maxsecondaryspeed = 50
140   maxrotation       = 100
141   transacc          = 200
142   rotacc            = 140
143   transdamp         = 75
144  >
145    <attached>
146      <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" />
147    </attached>
148  </SpaceShip>
149</Template-->
Note: See TracBrowser for help on using the repository browser.