Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS19/data/levels/templates/spaceshipSpacecruiser.oxt @ 12394

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