Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/cegui0.8_ogre1.9/data/levels/templates/spaceshipHeartAttack.oxt @ 12068

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

merged branch presentationHS15 back to trunk

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