Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipSpacecruiser.oxt @ 8921

Last change on this file since 8921 was 8891, checked in by jo, 13 years ago

Ai and tutorial improvements merged back to the trunk. AI features: all weapons are used, the ai-firestrength is configurable, bots are able to collect pickups . I've set the tutorial level as default level.

File size: 6.6 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        = 60
14   initialshieldhealth = 60
15   maxshieldhealth     = 80
16   shieldabsorption    = 0.8
17   reloadrate          = 1
18   reloadwaittime      = 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,-30,-120" 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,-30,-108"   halfExtents="38,6,62" />
60      <BoxCollisionShape position="0,-20,-108"   halfExtents="20,6,40" />
61      <BoxCollisionShape position="-16,-35,-112"  halfExtents="15,5,57" roll=-14 pitch=3.5/>
62      <BoxCollisionShape position="16,-35,-112"   halfExtents="15,5,57" roll=14 pitch=3.5/>
63      <BoxCollisionShape position="19,-21.5,-108" halfExtents="18,5,52" roll=-21 />
64      <BoxCollisionShape position="-19,-21.5,-108"halfExtents="18,5,52" roll=21 />
65      <BoxCollisionShape position="0,-21,-169"halfExtents="18,1,16" pitch=-30x />
66
67    </collisionShapes>
68<?lua
69  include("includes/weaponSettingsSpacecruiser.oxi")
70?>
71  </SpaceShip>
72</Template>
73
74<Template name=spaceshipcruisercameras defaults=0>
75  <SpaceShip>
76    <camerapositions>
77      <CameraPosition position="0,10,  40" drag=true mouselook=true />
78      <CameraPosition position="0,20,  80" drag=true mouselook=true />
79      <CameraPosition position="0,30, 120" drag=true mouselook=true />
80      <CameraPosition position="0,20,-260" drag=true mouselook=true yaw=180/>
81      <CameraPosition position="0,30,-350" drag=true mouselook=true yaw=180/>
82      <!--CameraPosition position="0,150,-25" pitch=-90 drag=true />
83      <CameraPosition position="0,0,-40" yaw=180 drag=true />
84      <CameraPosition position="0,3,-14" yaw=0 />
85      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
86      <CameraPosition position="50,5,-8" yaw=90 drag=true /-->
87    </camerapositions>
88  </SpaceShip>
89</Template>
90
91<Template name=spaceshipcruiserengine baseclass=MultiStateEngine>
92  <MultiStateEngine
93   boostfactor    = 2
94
95   speedfront     = 150
96   speedback      =  50
97   speedleftright =  50
98   speedupdown    =  50
99
100   defEngineSndNormal = "sounds/Engine_low.ogg"
101   defEngineSndBoost = "sounds/Engine_high.ogg"
102
103   accelerationfront     = 500
104   accelerationbrake     = 500
105   accelerationback      =  125
106   accelerationleftright =  125
107   accelerationupdown    =  125
108  >
109    <EffectContainer condition="idle">
110      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
111    </EffectContainer>
112    <EffectContainer condition="not idle">
113      <FadingBillboard mainstate=activity active=false scale=0.1 position="20, -25, -40" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
114      <FadingBillboard mainstate=activity active=false scale=0.1 position="-20, -25, -40" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
115    </EffectContainer>
116    <EffectContainer condition="normal or brake">
117
118    </EffectContainer>
119    <EffectContainer condition="normal or boost">
120      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 20, -25, -40" 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" />
121      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-20, -25, -40" 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" />
122    </EffectContainer>
123    <EffectContainer condition="boost">
124      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 20, -25, -40" 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" />
125      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-20, -25, -40" 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" />
126    </EffectContainer>
127<!--    <EffectContainer condition="brake">
128      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 20, -25, -40" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
129      <FadingBillboard mainstate=activity active=false scale=0.3 position="-20, -25, -40" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
130      <FadingBillboard mainstate=activity active=false scale=0.15 position="20, -25, -40" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
131      <FadingBillboard mainstate=activity active=false scale=0.15 position="-20, -25, -40" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
132    </EffectContainer>
133-->
134  </MultiStateEngine>
135</Template>
136
Note: See TracBrowser for help on using the repository browser.