Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipSwallow.oxt @ 11913

Last change on this file since 11913 was 11052, checked in by landauf, 9 years ago

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1<Template name=spaceshipswallow>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipswallowcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 50
10   maxhealth         = 120
11   initialhealth     = 50
12
13   shieldhealth        = 60
14   initialshieldhealth = 60
15   maxshieldhealth     = 80
16   shieldabsorption    = 0.75
17   shieldrechargerate  = 1.5
18   shieldrechargewaittime = 0.2
19
20   primaryThrust     = 600;
21   auxilaryThrust    = 30;
22   rotationThrust    = 25;
23
24   lift = 1.2;
25   stallSpeed = 220;
26
27   boostPower            = 20
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   collisionType     = "dynamic"
33   mass              = 100
34   linearDamping     = 0.7
35   angularDamping    = 0.9999999
36  >
37    <engines>
38      <MultiStateEngine position=" 0, 0, 0" template=spaceshipswallowengine />
39    </engines>
40    <attached>
41      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="swallow_mat.mesh" />
42    </attached>
43    <collisionShapes>
44      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
45      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
46      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
47      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
48      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
49      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
50    </collisionShapes>
51    <explosion >
52      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
53      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
54      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
55
56      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
57      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
58      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
59      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
60      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
61    </explosion>
62<?lua
63  include("../includes/weaponSettingsSwallow.oxi")
64?>
65  </SpaceShip>
66</Template>
67
68<Template name=spaceshipswallowcameras defaults=0>
69  <SpaceShip>
70    <camerapositions>
71      <CameraPosition position="0,25,85" drag=true mouselook=true />
72      <CameraPosition position="0,40,140" drag=true mouselook=true />
73      <CameraPosition position="0,50,160" drag=true mouselook=true />
74    </camerapositions>
75  </SpaceShip>
76</Template>
77
78<Template name=spaceshipswallowengine baseclass=MultiStateEngine>
79  <MultiStateEngine
80   boostfactor    = 2
81
82   speedfront     = 600
83   speedback      =  60
84   speedleftright =  60
85   speedupdown    =  60
86
87   accelerationfront     = 1000
88   accelerationbrake     = 300
89   accelerationback      =  100
90   accelerationleftright =  120
91   accelerationupdown    =  120
92  >
93    <EffectContainer condition="normal or boost">
94      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
95      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" 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.023 name=bltest position=" 2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" />
97      <Backlight mainstate=activity active=false scale=0.023 name=bltest position="-2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" />     
98
99
100    </EffectContainer>
101    <EffectContainer condition="boost">
102      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
103      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
104    </EffectContainer>
105    <EffectContainer condition="not idle">
106      <FadingBillboard mainstate=activity active=false scale=0.4 position="6.6, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000 />
107      <FadingBillboard mainstate=activity active=false scale=0.4 position="-6.9, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000/>
108    </EffectContainer>
109    <EffectContainer condition="brake">
110      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
111      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
112    </EffectContainer>
113</MultiStateEngine>
114</Template>
115
Note: See TracBrowser for help on using the repository browser.