Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/MFalcon.oxt @ 11774

Last change on this file since 11774 was 11448, checked in by patricwi, 7 years ago

Millenium Falcon merged

File size: 7.5 KB
Line 
1<Template name=MFalcon>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 10
8
9   health            = 80
10   maxhealth         = 200
11   initialhealth     = 80
12
13   shieldhealth        = 35
14   initialshieldhealth = 35
15   maxshieldhealth     = 60
16   shieldabsorption    = 0.9
17   shieldrechargerate  = 1
18   shieldrechargewaittime = 1
19
20   primaryThrust     = 150
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 20
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   shakeFrequency = 15
33   shakeAmplitude = 6
34
35   collisionType     = "dynamic"
36   mass              = 80
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39  >
40    <engines>
41      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipescortengine />
42      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipescortengine />
43    </engines>
44    <attached>
45      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="MilleniumFalcon.mesh" />
46      <!-- <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=4 mesh="escortWeapon.mesh" /> -->
47<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
48<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
49<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
50<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
51    </attached>
52    <collisionShapes>
53      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
54      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
55      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
56      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
57    </collisionShapes>
58    <explosion>
59      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
60      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
61      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
62
63      <ExplosionPart mesh="explosionparts/escort_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
64      <ExplosionPart mesh="explosionparts/escort_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
65      <ExplosionPart mesh="explosionparts/escort_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
66      <ExplosionPart mesh="explosionparts/escort_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
67      <ExplosionPart mesh="explosionparts/escort_part_5.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
68      <ExplosionPart mesh="explosionparts/escort_part_6.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
69    </explosion>
70<?lua
71  include("../includes/MFalconWeapon.oxi")
72?>
73  </SpaceShip>
74</Template>
75
76<Template name=spaceshipescortcameras defaults=0>
77  <SpaceShip>
78    <camerapositions>
79      <CameraPosition position="0,15, 60" drag=true mouselook=true />
80      <CameraPosition position="0,20, 90" drag=true mouselook=true />
81      <CameraPosition position="0,30,120" drag=true mouselook=true />
82    </camerapositions>
83  </SpaceShip>
84</Template>
85
86<Template name=spaceshipescortengine baseclass=MultiStateEngine>
87  <MultiStateEngine
88   boostfactor    = 2.2
89
90   speedfront     = 200
91   speedback      =  70
92   speedleftright =  70
93   speedupdown    =  70
94
95   defEngineSndNormal = "sounds/Engine_low.ogg"
96   defEngineSndBoost = "sounds/Engine_high.ogg"
97
98   accelerationfront     = 700
99   accelerationbrake     = 700
100   accelerationback      =  125
101   accelerationleftright =  125
102   accelerationupdown    =  125
103  >
104    <EffectContainer condition="idle">
105      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
106       />
107       <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" -6, 1.75, 11" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
108        <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" -5, 1.75, 12" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
109        <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" -3.75, 1.75, 13" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
110        <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 0,1.75, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
111      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="3.75, 1.75, 13" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
112        <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 5, 1.75, 12" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
113        <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 6, 1.75, 11" colour="0.2, 0.5, 0.65, 1.0" width=15 length=50 lifetime=100 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" />
114    </EffectContainer>
115    <EffectContainer condition="not idle">
116     <!-- <FadingBillboard mainstate=activity active=false scale=0.09 position="12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /-->
117      <!-- <FadingBillboard mainstate=activity active=false scale=0.09 position="-12, -2, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /-->
118    </EffectContainer>
119    <EffectContainer condition="normal or brake">
120
121    </EffectContainer>
122    <EffectContainer condition="normal or boost">
123      <!-- <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, -2, 14" colour="0.2, 1.0, 0.65, 1.0" width=5 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /-->
124      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="0, 2, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
125    </EffectContainer>
126
127    <EffectContainer condition="boost">
128      <!-- <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /-->
129       <Backlight mainstate=activity active=false scale=0.33 name=bltest position="0, 1, 14" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
130    </EffectContainer>
131
132  </MultiStateEngine>
133</Template>
Note: See TracBrowser for help on using the repository browser.