Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipPirate.oxt @ 11552

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

merged branch presentationHS15 back to trunk

  • Property svn:eol-style set to native
File size: 5.8 KB
RevLine 
[5528]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
[8857]13   shieldhealth        = 25
14   initialshieldhealth = 25
15   maxshieldhealth     = 40
16   shieldabsorption    = 0.6
[11052]17   shieldrechargerate  = 2
18   shieldrechargewaittime = 0.5
[5528]19
[8857]20   primaryThrust     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 25
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 10
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
[5528]32   collisionType     = "dynamic"
33   mass              = 100
34   linearDamping     = 0.7
35   angularDamping    = 0.9999999
36  >
[8706]37    <engines>
38      <MultiStateEngine position=" 0, 0, 0" template=spaceshippirateengine />
39    </engines>
[5528]40    <attached>
41      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" />
42      <BlinkingBillboard position=" 12.7,-3.8,0" material="Examples/Flare" colour="1.0, 1.0, 1" amplitude=0.04 frequency=1 quadratic=1 />
43      <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"/>
44      <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"/>
45      <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"/>
46    </attached>
47    <collisionShapes>
48      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
49      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
50      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
51      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
52      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
53      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
54    </collisionShapes>
[11052]55    <explosion>
56      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
57      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
58      <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
[5528]59
[11052]60      <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
61      <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
62      <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
63      <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
64    </explosion>
65
[5528]66<?lua
[8858]67  include("../includes/weaponSettingsPirate.oxi")
[5528]68?>
69  </SpaceShip>
70</Template>
71
72<Template name=spaceshippiratecameras defaults=0>
73  <SpaceShip>
74    <camerapositions>
75      <CameraPosition position="0,8, 60" drag=true mouselook=true />
76      <CameraPosition position="0,16, 120" drag=true mouselook=true />
77      <CameraPosition position="0,24,180" drag=true mouselook=true />
78      <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true />
79    </camerapositions>
80  </SpaceShip>
81</Template>
82
83<Template name=spaceshippirateengine baseclass=MultiStateEngine>
84  <MultiStateEngine
85   boostfactor    = 2
86
87   speedfront     = 150
88   speedback      =  50
89   speedleftright =  50
90   speedupdown    =  50
91
92   accelerationfront     = 500
93   accelerationbrake     = 500
94   accelerationback      =  125
95   accelerationleftright =  125
96   accelerationupdown    =  125
97  >
[7163]98    <EffectContainer condition="not idle">
[5528]99      <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 />
100      <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 />
101      <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 />
[7163]102    </EffectContainer>
103    <EffectContainer condition="normal or boost">
[5528]104      <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" />
105      <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" />
[7163]106    </EffectContainer>
107    <EffectContainer condition="boost">
[5528]108      <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" />
[7163]109    </EffectContainer>
110    <EffectContainer condition="brake">
[5528]111      <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 />
112      <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 />
[7163]113    </EffectContainer>
[5528]114  </MultiStateEngine>
115</Template>
Note: See TracBrowser for help on using the repository browser.