1 | <Template name=spaceshipghost> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphud |
---|
4 | camerapositiontemplate = spaceshipghostcameras |
---|
5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
6 | spawnparticleduration = 3 |
---|
7 | explosionchunks = 6 |
---|
8 | |
---|
9 | health = 30 |
---|
10 | maxhealth = 50 |
---|
11 | initialhealth = 30 |
---|
12 | |
---|
13 | shieldhealth = 100 |
---|
14 | initialshieldhealth = 100 |
---|
15 | maxshieldhealth = 150 |
---|
16 | shieldabsorption = 0.9 |
---|
17 | reloadrate = 3 |
---|
18 | reloadwaittime = 0.0 |
---|
19 | |
---|
20 | primaryThrust = 600 |
---|
21 | auxilaryThrust = 30 |
---|
22 | rotationThrust = 25 |
---|
23 | |
---|
24 | lift = 1; |
---|
25 | stallSpeed = 220; |
---|
26 | |
---|
27 | boostPower = 30 |
---|
28 | boostPowerRate = 1 |
---|
29 | boostRate = 5 |
---|
30 | boostCooldownDuration = 15 |
---|
31 | |
---|
32 | shakeFrequency = 20 |
---|
33 | shakeAmplitude = 6 |
---|
34 | |
---|
35 | collisionType = "dynamic" |
---|
36 | mass = 100 |
---|
37 | linearDamping = 0.7 |
---|
38 | angularDamping = 0.9999999 |
---|
39 | > |
---|
40 | <engines> |
---|
41 | <MultiStateEngine position="0,0,0" template=spaceshipghostengine/> |
---|
42 | </engines> |
---|
43 | <attached> |
---|
44 | <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" /> |
---|
45 | </attached> |
---|
46 | <collisionShapes> |
---|
47 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
48 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
49 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
50 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
51 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
52 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
53 | </collisionShapes> |
---|
54 | <explosion > |
---|
55 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
56 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
57 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
58 | |
---|
59 | <ExplosionPart minspeed=0 maxspeed=0 effect1="Orxonox/explosion2b" effect2="Orxonox/smoke6" /> |
---|
60 | <ExplosionPart mesh="CockpitDebris.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
61 | <ExplosionPart mesh="BodyDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
62 | <ExplosionPart mesh="WingDebris1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
63 | <ExplosionPart mesh="WingDebris2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
64 | </explosion> |
---|
65 | <?lua |
---|
66 | include("../includes/weaponSettingsGhost.oxi") |
---|
67 | ?> |
---|
68 | </SpaceShip> |
---|
69 | </Template> |
---|
70 | |
---|
71 | <Template name=spaceshipghostcameras defaults=0> |
---|
72 | <SpaceShip> |
---|
73 | <camerapositions> |
---|
74 | <CameraPosition position="0,20,80" drag=true mouselook=true /> |
---|
75 | <CameraPosition position="0,40,160" drag=true mouselook=true /> |
---|
76 | <CameraPosition position="0,50,200" drag=true mouselook=true /> |
---|
77 | </camerapositions> |
---|
78 | </SpaceShip> |
---|
79 | </Template> |
---|
80 | |
---|
81 | <Template name=spaceshipghostengine baseclass=MultiStateEngine> |
---|
82 | <MultiStateEngine |
---|
83 | boostfactor = 2 |
---|
84 | |
---|
85 | speedfront = 600 |
---|
86 | speedback = 50 |
---|
87 | speedleftright = 50 |
---|
88 | speedupdown = 50 |
---|
89 | |
---|
90 | accelerationfront = 1000 |
---|
91 | accelerationbrake = 300 |
---|
92 | accelerationback = 100 |
---|
93 | accelerationleftright = 100 |
---|
94 | accelerationupdown = 100 |
---|
95 | > |
---|
96 | <EffectContainer condition="normal or boost"> |
---|
97 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
98 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
99 | </EffectContainer> |
---|
100 | <EffectContainer condition="boost"> |
---|
101 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
102 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
103 | </EffectContainer> |
---|
104 | <EffectContainer condition="not idle"> |
---|
105 | <FadingBillboard mainstate=activity active=false scale=0.4 position="7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
106 | <FadingBillboard mainstate=activity active=false scale=0.4 position="-7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
107 | </EffectContainer> |
---|
108 | <EffectContainer condition="brake"> |
---|
109 | <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
110 | <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
111 | </EffectContainer> |
---|
112 | </MultiStateEngine> |
---|
113 | </Template> |
---|
114 | |
---|