Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS18/data/levels/templates/spaceshipAsteroids2D.oxt @ 11819

Last change on this file since 11819 was 11783, checked in by landauf, 7 years ago

merged Presentation_HS17_merge back to trunk

  • Property svn:eol-style set to native
File size: 6.1 KB
Line 
1<Template name=spaceshipasteroids2d>
2  <Asteroids2DShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipescortcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 4
8
9   health            = 10
10   maxhealth         = 10
11   initialhealth     = 10
12
13   shieldhealth        = 20
14   initialshieldhealth = 20
15   maxshieldhealth     = 20
16   shieldabsorption    = 0.1
17   shieldrechargerate  = 1
18   shieldrechargewaittime = 1
19
20   primaryThrust     = 150
21   auxilaryThrust    = 30
22   rotationThrust    = 100
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              = 4200000
37   linearDamping     = 0.9
38   angularDamping    = 0.9999999
39
40   collisiondamage = 100
41   enablecollisiondamage = true
42   
43  >
44    <engines>
45      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipasteroids2dengine />
46      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipasteroids2dengine />
47    </engines>
48    <attached>
49      <Model position="0,0,0" yaw=90 pitch=0 roll=0 scale=4 mesh="escortShip.mesh" />
50      <Model position="0,0,0" yaw=180 pitch=90 roll=0 scale=4 mesh="escortWeapon.mesh" />
51<!--Model mesh="cube.mesh" mass=10 position="0,0,3" scale3D="10,4,8" />
52<Model mesh="cube.mesh" mass=10 position="12.6,-2,3" scale3D="2.8,2.8,11" />
53<Model mesh="cube.mesh" mass=10 position="-12.6,-2,3" scale3D="2.8,2.8,11" />
54<Model mesh="cube.mesh" mass=10 position="0,0,-12" scale3D="4,4,7" /-->
55    </attached>
56    <collisionShapes>
57      <BoxCollisionShape position="0    ,0 ,  3" halfExtents="10,   4,8" />
58      <BoxCollisionShape position="12.6 ,-2,  3" halfExtents="2.8,2.8,11"/>
59      <BoxCollisionShape position="-12.6,-2,  3" halfExtents="2.8,2.8,11"/>
60      <BoxCollisionShape position="0,     0,-12" halfExtents="4  , 4 ,7" />
61    </collisionShapes>
62    <explosion >
63      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
64      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" />
65      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
66
67      <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" />
68      <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
69      <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
70      <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
71      <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
72    </explosion>
73<?lua
74  include("../includes/asteroids2DWeapon.oxi")
75?>
76  </Asteroids2DShip>
77</Template>
78
79<Template name=spaceshipescortcameras defaults=0>
80  <Asteroids2DShip>
81    <camerapositions>
82    <!--<CameraPosition position="0,100,180" direction="0, -0.2, -1" drag=false mouselook=true />
83    <CameraPosition position="0,200,250" direction="0, -0.4, -1" drag=false mouselook=true />
84    <CameraPosition position="0,30,150" direction="0, 0, -1" drag=false mouselook=true />
85    <CameraPosition position="0,1300,-100" direction="0, -1, 0" drag=false mouselook=true />
86-->
87    <CameraPosition position="0,600,0" pitch=-90 absolute=true drag = false mouselook=true/>
88    <CameraPosition position="0,50,160" drag=true mouselook=true />
89    <CameraPosition position="0,40,125" drag=true mouselook=true />
90    <CameraPosition position="0,30, 90" drag=true mouselook=true />
91    </camerapositions>
92  </Asteroids2DShip>
93</Template>
94
95<Template name=spaceshipasteroids2dengine baseclass=MultiStateEngine>
96  <MultiStateEngine
97   boostfactor    = 2.2
98
99   speedfront     = 200
100   speedback      = 200
101   speedleftright =  100
102   speedupdown    =  100
103
104   defEngineSndNormal = "sounds/Engine_low.ogg"
105   defEngineSndBoost = "sounds/Engine_high.ogg"
106
107   accelerationfront     = 700
108   accelerationbrake     = 700
109   accelerationback      = 700
110   accelerationleftright =  500
111   accelerationupdown    =  500
112  >
113
114  <!-- backlight error if you fly over the edge
115    <EffectContainer condition="idle">
116      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
117    </EffectContainer>
118    <EffectContainer condition="not idle">
119      <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 />
120      <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 />
121    </EffectContainer>
122    <EffectContainer condition="normal or brake">
123
124    </EffectContainer>
125    <EffectContainer condition="normal or boost">
126      <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
127      <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-12, 0, 10" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
128    </EffectContainer>
129    <EffectContainer condition="boost">
130      <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" />
131      <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" />
132    </EffectContainer>
133
134  -->
135
136  </MultiStateEngine>
137</Template>
Note: See TracBrowser for help on using the repository browser.