Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipRing.oxt @ 11196

Last change on this file since 11196 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.2 KB
Line 
1<Template name=spaceshipring>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipringcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
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, 0" template=spaceshipringengine />
42      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipringengine />
43    </engines>
44    <attached>
45      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="ship.mesh" />
46      <Model position="11,1,-9" yaw=-90 pitch=0 roll=90 scale=0.15 mesh="ringWeapon.mesh" />
47      <Model position="-11,1,-9" yaw=-90 pitch=0 roll=90 scale=0.15 mesh="ringWeapon.mesh" />
48    </attached>
49    <collisionShapes>
50      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
51      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
52      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
53      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
54    </collisionShapes>
55    <explosion >
56      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
57      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
58      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
59
60      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
61      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
62      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
63      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
64      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
65    </explosion>
66<?lua
67  include("../includes/weaponSettingsRing.oxi")
68?>
69  </SpaceShip>
70</Template>
71
72<Template name=spaceshipringcameras defaults=0>
73  <SpaceShip>
74    <camerapositions>
75      <CameraPosition position="0,15, 60" drag=true mouselook=true />
76      <CameraPosition position="0,20, 90" drag=true mouselook=true />
77      <CameraPosition position="0,30,120" drag=true mouselook=true />
78    </camerapositions>
79  </SpaceShip>
80</Template>
81
82<Template name=spaceshipringengine baseclass=MultiStateEngine>
83  <MultiStateEngine
84   boostfactor    = 2.2
85
86   speedfront     = 200
87   speedback      =  70
88   speedleftright =  70
89   speedupdown    =  70
90
91   defEngineSndNormal = "sounds/Engine_low.ogg"
92   defEngineSndBoost = "sounds/Engine_high.ogg"
93
94   accelerationfront     = 700
95   accelerationbrake     = 700
96   accelerationback      =  125
97   accelerationleftright =  125
98   accelerationupdown    =  125
99  >
100    <EffectContainer condition="idle">
101      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
102    </EffectContainer>
103    <EffectContainer condition="not idle">
104      <FadingBillboard mainstate=activity active=false scale=0.09 position="13, 0, 16" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
105      <FadingBillboard mainstate=activity active=false scale=0.09 position="-13, 0, 16" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
106    </EffectContainer>
107    <EffectContainer condition="normal or brake">
108
109    </EffectContainer>
110    <EffectContainer condition="normal or boost">
111      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 0, 2, 16" colour="0.2, 1.0, 0.65, 1.0" width=25 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
112<Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 13, 0, 16" colour="0.2, 1.0, 0.65, 1.0" width=20 length=1000
113 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
114<Backlight mainstate=activity active=false scale=0.33 name=bltest position=" -13, 0, 16" colour="0.2, 1.0, 0.65, 1.0" width=20 length=1000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
115    </EffectContainer>
116    <EffectContainer condition="boost">
117      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 0, 2, 16" colour="0.6, 0.8, 0.75, 0.7" width=35 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
118    </EffectContainer>
119
120  </MultiStateEngine>
121</Template>
Note: See TracBrowser for help on using the repository browser.