Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/templates/spaceshipPirate.oxt @ 8718

Last change on this file since 8718 was 8589, checked in by dafrick, 14 years ago

Merging bigships branch into presentation branch.

  • Property svn:eol-style set to native
File size: 4.6 KB
Line 
1<Template name=spaceshippirate>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshippiratecameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 100
10   maxhealth         = 200
11   initialhealth     = 100
12
13   primaryThrust     = 100;
14   auxilaryThrust    = 30;
15   rotationThrust    = 25;
16
17   collisionType     = "dynamic"
18   mass              = 100
19   linearDamping     = 0.7
20   angularDamping    = 0.9999999
21  >
22    <engines>
23      <MultiStateEngine position=" 0, 0, 0" template=spaceshippirateengine />
24    </engines>
25    <attached>
26      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
27      <BlinkingBillboard position=" 12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 />
28      <BlinkingBillboard position="-12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="90"/>
29      <BlinkingBillboard position=" 8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="30"/>
30      <BlinkingBillboard position="-8.7,-0.5,2.5" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 phase="60"/>
31    </attached>
32    <collisionShapes>
33      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
34      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
35      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
36      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
37      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
38      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
39    </collisionShapes>
40
41<?lua
42  include("includes/weaponSettingsPirate.oxi")
43?>
44  </SpaceShip>
45</Template>
46
47<Template name=spaceshippiratecameras defaults=0>
48  <SpaceShip>
49    <camerapositions>
50      <CameraPosition position="0,8, 60" drag=true mouselook=true />
51      <CameraPosition position="0,16, 120" drag=true mouselook=true />
52      <CameraPosition position="0,24,180" drag=true mouselook=true />
53      <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
54    </camerapositions>
55  </SpaceShip>
56</Template>
57
58<Template name=spaceshippirateengine baseclass=MultiStateEngine>
59  <MultiStateEngine
60   boostfactor    = 2
61
62   speedfront     = 150
63   speedback      =  50
64   speedleftright =  50
65   speedupdown    =  50
66
67   accelerationfront     = 500
68   accelerationbrake     = 500
69   accelerationback      =  125
70   accelerationleftright =  125
71   accelerationupdown    =  125
72  >
73    <EffectContainer condition="not idle">
74      <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
75      <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
76      <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 />
77    </EffectContainer>
78    <EffectContainer condition="normal or boost">
79      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
80      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-13, -4,  9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
81    </EffectContainer>
82    <EffectContainer condition="boost">
83      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="  0,  5, 15.5" colour="1.0, 0.65, 0.2, 1.0" width=16 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
84    </EffectContainer>
85    <EffectContainer condition="brake">
86      <FadingBillboard mainstate=activity active=false scale=0.1 position=" 4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
87      <FadingBillboard mainstate=activity active=false scale=0.1 position="-4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
88    </EffectContainer>
89  </MultiStateEngine>
90</Template>
Note: See TracBrowser for help on using the repository browser.