Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/fabienHS15/data/levels/templates/spaceshipSwallow.oxt @ 11054

Last change on this file since 11054 was 10814, checked in by fvultier, 9 years ago
  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1<Template name=spaceshipswallow>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipswallowcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 50
10   maxhealth         = 120
11   initialhealth     = 50
12
13   shieldhealth        = 60
14   initialshieldhealth = 60
15   maxshieldhealth     = 80
16   shieldabsorption    = 0.75
17   shieldrechargerate  = 1.5
18   shieldrechargewaittime = 0.2
19
20   primaryThrust     = 600;
21   auxilaryThrust    = 30;
22   rotationThrust    = 25;
23
24   lift = 1.2;
25   stallSpeed = 220;
26
27   boostPower            = 20
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   collisionType     = "dynamic"
33   mass              = 100
34   linearDamping     = 0.7
35   angularDamping    = 0.9999999
36  >
37    <engines>
38      <MultiStateEngine position=" 0, 0, 0" template=spaceshipswallowengine />
39    </engines>
40    <attached>
41      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="swallow_mat.mesh" />
42    </attached>
43    <collisionShapes>
44      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
45      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
46      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
47      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
48      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
49      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
50    </collisionShapes>
51<?lua
52  include("../includes/weaponSettingsSwallow.oxi")
53?>
54  </SpaceShip>
55</Template>
56
57<Template name=spaceshipswallowcameras defaults=0>
58  <SpaceShip>
59    <camerapositions>
60      <CameraPosition position="0,25,85" drag=true mouselook=true />
61      <CameraPosition position="0,40,140" drag=true mouselook=true />
62      <CameraPosition position="0,50,160" drag=true mouselook=true />
63    </camerapositions>
64  </SpaceShip>
65</Template>
66
67<Template name=spaceshipswallowengine baseclass=MultiStateEngine>
68  <MultiStateEngine
69   boostfactor    = 2
70
71   speedfront     = 600
72   speedback      =  60
73   speedleftright =  60
74   speedupdown    =  60
75
76   accelerationfront     = 1000
77   accelerationbrake     = 300
78   accelerationback      =  100
79   accelerationleftright =  120
80   accelerationupdown    =  120
81  >
82    <EffectContainer condition="normal or boost">
83      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
84      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
85      <Backlight mainstate=activity active=false scale=0.023 name=bltest position=" 2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" />
86      <Backlight mainstate=activity active=false scale=0.023 name=bltest position="-2.1, 1.66, 23.8" colour="0.5, 0.15, 0.0, 1.0" width=40 length=10 lifetime=1 elements=30 trailmaterial="Trail/backlighttrailzwei" turnontime=1 turnofftime=500000 material="Examples/Flaredrei" />     
87
88
89    </EffectContainer>
90    <EffectContainer condition="boost">
91      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
92      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="1.0, 1.0, 1.0, 0.5" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
93    </EffectContainer>
94    <EffectContainer condition="not idle">
95      <FadingBillboard mainstate=activity active=false scale=0.4 position="6.6, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000 />
96      <FadingBillboard mainstate=activity active=false scale=0.4 position="-6.9, 0, 22" colour="0, 0.6, 0.85, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=10000/>
97    </EffectContainer>
98    <EffectContainer condition="brake">
99      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
100      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="1.0, 1.0, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
101    </EffectContainer>
102</MultiStateEngine>
103</Template>
104
Note: See TracBrowser for help on using the repository browser.