Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/turretFS14/data/levels/templates/spaceshipAssff.oxt @ 10031

Last change on this file since 10031 was 10031, checked in by muemart, 10 years ago

Limit turret's rotation (another method…), work a bit on the controller, and make a (ugly?) hack to allow attaching dynamic objects

  • Property svn:eol-style set to native
File size: 5.7 KB
RevLine 
[5528]1<Template name=spaceshipassff>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipassffcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 100
10   maxhealth         = 200
11   initialhealth     = 100
12
[8706]13   shieldhealth        = 30
14   initialshieldhealth = 30
15   maxshieldhealth     = 50
16   shieldabsorption    = 0.8
17   reloadrate          = 1
18   reloadwaittime      = 1
[5528]19
[8706]20   primaryThrust     = 100
21   auxilaryThrust    = 30
22   rotationThrust    = 50
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 15
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 10
31
32   shakeFrequency = 15
33   shakeAmplitude = 9
34
[5528]35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
[9939]39
40   explosionSound = "sounds/Explosion2.ogg"
[5528]41  >
[8706]42    <engines>
43      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
44      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
45    </engines>
[5528]46    <attached>
47      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
48      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
49      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
[10031]50
51              <Turret position="0,10,0" pitch="90" yaw="0" roll="0" maxPitch=90 maxYaw=90 attackRadius=2000>
52            <templates>
53              <Template link=spaceshipturrettest />
54            </templates>
55            <controller>
56              <TurretController team=10 />
57            </controller>
58        </Turret>
59
[5528]60    </attached>
61    <collisionShapes>
62      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
63      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
64      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
65      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
66      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
67      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
68    </collisionShapes>
69<?lua
[8858]70  include("../includes/weaponSettingsAssff.oxi")
[5528]71?>
72  </SpaceShip>
73</Template>
74
75<Template name=spaceshipassffcameras defaults=0>
76  <SpaceShip>
77    <camerapositions>
78      <CameraPosition position="0,10, 40" drag=true mouselook=true />
79      <CameraPosition position="0,20, 80" drag=true mouselook=true />
80      <CameraPosition position="0,30,120" drag=true mouselook=true />
81    </camerapositions>
82  </SpaceShip>
83</Template>
84
85<Template name=spaceshipassffengine baseclass=MultiStateEngine>
86  <MultiStateEngine
87   boostfactor    = 2
88
89   speedfront     = 150
90   speedback      =  50
91   speedleftright =  50
92   speedupdown    =  50
93
[6417]94   defEngineSndNormal = "sounds/Engine_low.ogg"
95   defEngineSndBoost = "sounds/Engine_high.ogg"
[9939]96   
[5528]97   accelerationfront     = 500
98   accelerationbrake     = 500
99   accelerationback      =  125
100   accelerationleftright =  125
101   accelerationupdown    =  125
102  >
[6417]103    <EffectContainer condition="idle">
[6436]104      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
[6417]105    </EffectContainer>
106    <EffectContainer condition="not idle">
[8706]107      <FadingBillboard mainstate=activity active=false scale=0.1 position="7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
108      <FadingBillboard mainstate=activity active=false scale=0.1 position="-7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
[6417]109    </EffectContainer>
110    <EffectContainer condition="normal or brake">
111
112    </EffectContainer>
113    <EffectContainer condition="normal or boost">
[8727]114      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
115      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
[6417]116    </EffectContainer>
117    <EffectContainer condition="boost">
[5528]118      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
119      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
[6417]120    </EffectContainer>
[8706]121<!--    <EffectContainer condition="brake">
[5528]122      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
123      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
124      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
125      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
[6417]126    </EffectContainer>
[8706]127-->
[5528]128  </MultiStateEngine>
129</Template>
Note: See TracBrowser for help on using the repository browser.