1 | <Template name=spaceshipfx112> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphud |
---|
4 | camerapositiontemplate = spaceshipfx112cameras |
---|
5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
6 | spawnparticleduration = 3 |
---|
7 | explosionchunks = 10 |
---|
8 | |
---|
9 | health = 150 |
---|
10 | maxhealth = 300 |
---|
11 | initialhealth = 120 |
---|
12 | |
---|
13 | shieldhealth = 70 |
---|
14 | initialshieldhealth = 70 |
---|
15 | maxshieldhealth = 130 |
---|
16 | shieldabsorption = 1.2 |
---|
17 | shieldrechargerate = 2 |
---|
18 | shieldrechargewaittime = 1 |
---|
19 | |
---|
20 | primaryThrust = 100 |
---|
21 | auxilaryThrust = 20 |
---|
22 | rotationThrust = 40 |
---|
23 | |
---|
24 | lift = 1; |
---|
25 | stallSpeed = 220; |
---|
26 | |
---|
27 | boostPower = 20 |
---|
28 | boostPowerRate = 1 |
---|
29 | boostRate = 5 |
---|
30 | boostCooldownDuration = 10 |
---|
31 | |
---|
32 | shakeFrequency = 15 |
---|
33 | shakeAmplitude = 6 |
---|
34 | |
---|
35 | collisionType = "dynamic" |
---|
36 | mass = 90 |
---|
37 | linearDamping = 0.7 |
---|
38 | angularDamping = 0.9999999 |
---|
39 | > |
---|
40 | <engines> |
---|
41 | <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipfx112engine /> |
---|
42 | <MultiStateEngine position="-7.6, 0, 0" template=spaceshipfx112engine /> |
---|
43 | </engines> |
---|
44 | <attached> |
---|
45 | <Model position="0,0,0" yaw=180 pitch=0 roll=0 scale=4 mesh="fx112.mesh" /> |
---|
46 | </attached> |
---|
47 | <collisionShapes> |
---|
48 | <BoxCollisionShape position="0, 1.6, 5.6" halfExtents="8,13.6,3.2" pitch=90 /> |
---|
49 | <BoxCollisionShape position="0, -1, 2" halfExtents="18, -9.2,-1.6" pitch=90/> |
---|
50 | <BoxCollisionShape position="0, 0, -17.2" halfExtents="4, 9.2,2.4" pitch=90/> |
---|
51 | </collisionShapes> |
---|
52 | <explosion> |
---|
53 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" /> |
---|
54 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" /> |
---|
55 | <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" /> |
---|
56 | |
---|
57 | <ExplosionPart mesh="explosionparts/fx112_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
58 | <ExplosionPart mesh="explosionparts/fx112_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
59 | <ExplosionPart mesh="explosionparts/fx112_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
60 | <ExplosionPart mesh="explosionparts/fx112_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
61 | <ExplosionPart mesh="explosionparts/fx112_part_5.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
62 | <ExplosionPart mesh="explosionparts/fx112_part_6.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
63 | <ExplosionPart mesh="explosionparts/fx112_part_7.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
64 | <ExplosionPart mesh="explosionparts/fx112_part_8.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
65 | <ExplosionPart mesh="explosionparts/fx112_part_9.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" /> |
---|
66 | </explosion> |
---|
67 | <?lua |
---|
68 | include("../includes/weaponSettingsFx112.oxi") |
---|
69 | ?> |
---|
70 | </SpaceShip> |
---|
71 | </Template> |
---|
72 | |
---|
73 | <Template name=spaceshipfx112cameras defaults=0> |
---|
74 | <SpaceShip> |
---|
75 | <camerapositions> |
---|
76 | <CameraPosition position="0,15, 60" drag=true mouselook=true /> |
---|
77 | <CameraPosition position="0,20, 90" drag=true mouselook=true /> |
---|
78 | <CameraPosition position="0,30,120" drag=true mouselook=true /> |
---|
79 | </camerapositions> |
---|
80 | </SpaceShip> |
---|
81 | </Template> |
---|
82 | |
---|
83 | <Template name=spaceshipfx112engine baseclass=MultiStateEngine> |
---|
84 | <MultiStateEngine |
---|
85 | boostfactor = 2.8 |
---|
86 | |
---|
87 | speedfront = 250 |
---|
88 | speedback = 50 |
---|
89 | speedleftright = 50 |
---|
90 | speedupdown = 50 |
---|
91 | |
---|
92 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
93 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
94 | |
---|
95 | accelerationfront = 500 |
---|
96 | accelerationbrake = 500 |
---|
97 | accelerationback = 100 |
---|
98 | accelerationleftright = 100 |
---|
99 | accelerationupdown = 100 |
---|
100 | > |
---|
101 | <EffectContainer condition="idle"> |
---|
102 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
103 | /> |
---|
104 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position=" 10.8, -0.7, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
105 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-10.8, -0.7, 14" colour="0.2, 0.5, 0.65, 1.0" width=15 length=15 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=2 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
106 | </EffectContainer> |
---|
107 | <EffectContainer condition="not idle"> |
---|
108 | <FadingBillboard mainstate=activity active=false scale=0.09 position="10.5, -0.7, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
109 | <FadingBillboard mainstate=activity active=false scale=0.09 position="-10.5, -0.7, 13" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
110 | </EffectContainer> |
---|
111 | <EffectContainer condition="normal or brake"> |
---|
112 | |
---|
113 | </EffectContainer> |
---|
114 | <EffectContainer condition="normal or boost"> |
---|
115 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position="10.5, -0.7, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
116 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-10.5, -0.7, 14" colour="0.2, 1.0, 0.65, 1.0" width=15 length=1500 lifetime=2 elements=1 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
117 | </EffectContainer> |
---|
118 | |
---|
119 | <EffectContainer condition="boost"> |
---|
120 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position="10.5, -0.7, 14" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
121 | <Backlight mainstate=activity active=false scale=0.33 name=bltest position="-10.5, -0.7, 14" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
122 | </EffectContainer> |
---|
123 | |
---|
124 | </MultiStateEngine> |
---|
125 | </Template> |
---|