1 | <Template name=spaceshipcollateraldamage> |
---|
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 | |
---|
13 | shieldhealth = 30 |
---|
14 | initialshieldhealth = 30 |
---|
15 | maxshieldhealth = 50 |
---|
16 | shieldabsorption = 0.8 |
---|
17 | reloadrate = 1 |
---|
18 | reloadwaittime = 1 |
---|
19 | |
---|
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 = 12 |
---|
34 | |
---|
35 | collisionType = "dynamic" |
---|
36 | mass = 100 |
---|
37 | linearDamping = 0.7 |
---|
38 | angularDamping = 0.9999999 |
---|
39 | > |
---|
40 | <engines> |
---|
41 | <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine /> |
---|
42 | <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine /> |
---|
43 | </engines> |
---|
44 | <attached> |
---|
45 | <Model position="0,0,0" yaw=-90 pitch=0 roll=0 scale=4 mesh="collateralDamage.mesh" /> |
---|
46 | |
---|
47 | <BlinkingBillboard position="18.5,0.5,1.5" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=.5 quadratic=1 /> |
---|
48 | <BlinkingBillboard position="-18.5,0.5,1.5" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=.5 phase=180 quadratic=1 /> |
---|
49 | |
---|
50 | <!--Model mesh="cube.mesh" mass=10 position="0,0,0" scale3D="18,2,14" /--> |
---|
51 | <!--Model mesh="cube.mesh" mass=10 position="0,2.5,0" scale3D="8,2.5,14" /--> |
---|
52 | |
---|
53 | </attached> |
---|
54 | |
---|
55 | <collisionShapes> |
---|
56 | <BoxCollisionShape position="0,0,0" halfExtents="18,2,14" /> |
---|
57 | <BoxCollisionShape position="0,2.5,0" halfExtents="8,2.5,14" /> |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | |
---|
62 | </collisionShapes> |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | <?lua |
---|
67 | include("../includes/weaponSettingsCollateral.oxi") |
---|
68 | ?> |
---|
69 | </SpaceShip> |
---|
70 | </Template> |
---|
71 | |
---|
72 | <Template name=spaceshipassffcameras defaults=0> |
---|
73 | <SpaceShip> |
---|
74 | <camerapositions> |
---|
75 | <CameraPosition position="0,10, 40" drag=true mouselook=true /> |
---|
76 | <CameraPosition position="0,20, 80" drag=true mouselook=true /> |
---|
77 | <CameraPosition position="0,30,120" drag=true mouselook=true /> |
---|
78 | <CameraPosition position="0,50,150" drag=true mouselook=true /> |
---|
79 | </camerapositions> |
---|
80 | </SpaceShip> |
---|
81 | </Template> |
---|
82 | |
---|
83 | <Template name=spaceshipassffengine baseclass=MultiStateEngine> |
---|
84 | <MultiStateEngine |
---|
85 | boostfactor = 5 |
---|
86 | |
---|
87 | speedfront = 150 |
---|
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 = 125 |
---|
98 | accelerationleftright = 125 |
---|
99 | accelerationupdown = 125 |
---|
100 | > |
---|
101 | |
---|
102 | <EffectContainer condition="idle"> |
---|
103 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
104 | </EffectContainer> |
---|
105 | |
---|
106 | <EffectContainer condition="not idle"> |
---|
107 | <FadingBillboard mainstate=activity active=false scale=0.05 position="1, 0.5, 14" colour="1.0, 0.65, 0.2, 1.0" material="Examples/Flare" turnontime=0.2 turnofftime=0.5 /> |
---|
108 | <FadingBillboard mainstate=activity active=false scale=0.05 position="-1, 0.5, 14" colour="1.0, 0.65, 0.2, 1.0" material="Examples/Flare" turnontime=0.2 turnofftime=0.5 /> |
---|
109 | </EffectContainer> |
---|
110 | <EffectContainer condition="normal or brake"> |
---|
111 | </EffectContainer> |
---|
112 | |
---|
113 | <EffectContainer condition="normal or boost"> |
---|
114 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 1, 0, 17" colour="1, 0.4, 0.15, 1.0" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
115 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-1, 0, 17" colour="1, 0.4, 0.15, 1.0" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
116 | </EffectContainer> |
---|
117 | |
---|
118 | <EffectContainer condition="normal or boost"> |
---|
119 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 8, 0, 12" colour="1, 0.8, 0, 0.3" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=3 turnofftime=1 material="Flares/ThrusterFlare2" /> |
---|
120 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-8, 0, 12" colour="1, 0.8, 0, 0.3" width=6 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=3 turnofftime=1 material="Flares/ThrusterFlare2" /> |
---|
121 | |
---|
122 | <FadingBillboard mainstate=activity active=false scale=0.05 position="8, -1, 12" colour="1, 0.8, 0, 0.3" material="Examples/Flare" turnontime=1 turnofftime=0.5 /> |
---|
123 | <FadingBillboard mainstate=activity active=false scale=0.05 position="-8, -1, 12" colour="1, 0.8, 0, 0.3" material="Examples/Flare" turnontime=1 turnofftime=0.5 /> |
---|
124 | |
---|
125 | </EffectContainer> |
---|
126 | |
---|
127 | |
---|
128 | <EffectContainer condition="boost"> |
---|
129 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 3, 0, 20" colour="0.8,0.4,0, 0.15" width=5 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=0.5 material="Examples/Flare" /> |
---|
130 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-3, 0, 20" colour="0.8,0.4,0, 0.15" width=5 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1.5 turnofftime=0.5 material="Examples/Flare" /> |
---|
131 | </EffectContainer> |
---|
132 | |
---|
133 | <!-- <EffectContainer condition="brake"> |
---|
134 | <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 /> |
---|
135 | <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 /> |
---|
136 | <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 /> |
---|
137 | <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 /> |
---|
138 | </EffectContainer> |
---|
139 | --> |
---|
140 | </MultiStateEngine> |
---|
141 | </Template> |
---|