1 | <Template name=spaceshipassff> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphud |
---|
4 | camerapositiontemplate = spaceshipassffcameras |
---|
5 | engine = spaceshipassffengine |
---|
6 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
7 | spawnparticleduration = 3 |
---|
8 | explosionchunks = 6 |
---|
9 | |
---|
10 | health = 100 |
---|
11 | maxhealth = 200 |
---|
12 | initialhealth = 100 |
---|
13 | |
---|
14 | shieldhealth = 30 |
---|
15 | initialshieldhealth = 30 |
---|
16 | maxshieldhealth = 50 |
---|
17 | shieldabsorption = 0.8 |
---|
18 | reloadrate = 1 |
---|
19 | reloadwaittime = 1 |
---|
20 | |
---|
21 | primaryThrust = 100 |
---|
22 | auxilaryThrust = 30 |
---|
23 | rotationThrust = 25 |
---|
24 | |
---|
25 | boostPower = 15 |
---|
26 | boostPowerRate = 1 |
---|
27 | boostRate = 5 |
---|
28 | boostCooldownDuration = 10 |
---|
29 | |
---|
30 | shakeFrequency = 15 |
---|
31 | shakeAmplitude = 7 |
---|
32 | |
---|
33 | collisionType = "dynamic" |
---|
34 | mass = 100 |
---|
35 | linearDamping = 0.7 |
---|
36 | angularDamping = 0.9999999 |
---|
37 | > |
---|
38 | <attached> |
---|
39 | <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" /> |
---|
40 | <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 /> |
---|
41 | <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 /> |
---|
42 | </attached> |
---|
43 | <collisionShapes> |
---|
44 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
45 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
46 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
47 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
48 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
49 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
50 | </collisionShapes> |
---|
51 | <?lua |
---|
52 | include("includes/weaponSettingsAssff.oxi") |
---|
53 | ?> |
---|
54 | </SpaceShip> |
---|
55 | </Template> |
---|
56 | |
---|
57 | <Template name=spaceshipassffcameras defaults=0> |
---|
58 | <SpaceShip> |
---|
59 | <camerapositions> |
---|
60 | <CameraPosition position="0,10, 40" drag=true mouselook=true /> |
---|
61 | <CameraPosition position="0,20, 80" drag=true mouselook=true /> |
---|
62 | <CameraPosition position="0,30,120" drag=true mouselook=true /> |
---|
63 | <!--CameraPosition position="0,150,-25" pitch=-90 drag=true /> |
---|
64 | <CameraPosition position="0,0,-40" yaw=180 drag=true /> |
---|
65 | <CameraPosition position="0,3,-14" yaw=0 /> |
---|
66 | <CameraPosition position="-50,5,-8" yaw=-90 drag=true /> |
---|
67 | <CameraPosition position="50,5,-8" yaw=90 drag=true /--> |
---|
68 | </camerapositions> |
---|
69 | </SpaceShip> |
---|
70 | </Template> |
---|
71 | |
---|
72 | <Template name=spaceshipassffengine baseclass=MultiStateEngine> |
---|
73 | <MultiStateEngine |
---|
74 | boostfactor = 2 |
---|
75 | |
---|
76 | speedfront = 150 |
---|
77 | speedback = 50 |
---|
78 | speedleftright = 50 |
---|
79 | speedupdown = 50 |
---|
80 | |
---|
81 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
82 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
83 | |
---|
84 | accelerationfront = 500 |
---|
85 | accelerationbrake = 500 |
---|
86 | accelerationback = 125 |
---|
87 | accelerationleftright = 125 |
---|
88 | accelerationupdown = 125 |
---|
89 | > |
---|
90 | <EffectContainer condition="idle"> |
---|
91 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/> |
---|
92 | </EffectContainer> |
---|
93 | <EffectContainer condition="not idle"> |
---|
94 | <FadingBillboard mainstate=activity active=false scale=0.1 position="0, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
95 | <!-- |
---|
96 | <Light mainstate=visibility position=" 8, 0, 8" diffuse="0.3, 0.6, 1.0" specular="0.3, 0.6, 1.0" attenuation="600, 1.0, 0.007, 0.0002" type=point /> |
---|
97 | <Light mainstate=visibility position="-8, 0, 8" diffuse="0.3, 0.6, 1.0" specular="0.3, 0.6, 1.0" attenuation="600, 1.0, 0.007, 0.0002" type=point /> |
---|
98 | --> |
---|
99 | </EffectContainer> |
---|
100 | <EffectContainer condition="normal or brake"> |
---|
101 | |
---|
102 | </EffectContainer> |
---|
103 | <EffectContainer condition="normal or boost"> |
---|
104 | <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" /> |
---|
105 | <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" /> |
---|
106 | </EffectContainer> |
---|
107 | <EffectContainer condition="boost"> |
---|
108 | <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" /> |
---|
109 | <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" /> |
---|
110 | </EffectContainer> |
---|
111 | <EffectContainer condition="brake"> |
---|
112 | <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 /> |
---|
113 | <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 /> |
---|
114 | <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 /> |
---|
115 | <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 /> |
---|
116 | </EffectContainer> |
---|
117 | </MultiStateEngine> |
---|
118 | </Template> |
---|
119 | |
---|
120 | <!--Template name=spaceshippirate> |
---|
121 | <SpaceShip |
---|
122 | health = 100 |
---|
123 | maxhealth = 200 |
---|
124 | initialhealth = 100 |
---|
125 | |
---|
126 | maxspeed = 250 |
---|
127 | maxsecondaryspeed = 50 |
---|
128 | maxrotation = 100 |
---|
129 | transacc = 200 |
---|
130 | rotacc = 140 |
---|
131 | transdamp = 75 |
---|
132 | > |
---|
133 | <attached> |
---|
134 | <Model position="0,-10,-45" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" /> |
---|
135 | </attached> |
---|
136 | </SpaceShip> |
---|
137 | </Template> |
---|
138 | |
---|
139 | <Template name=spaceshipspacecruiser> |
---|
140 | <SpaceShip |
---|
141 | health = 100 |
---|
142 | maxhealth = 200 |
---|
143 | initialhealth = 100 |
---|
144 | |
---|
145 | maxspeed = 250 |
---|
146 | maxsecondaryspeed = 50 |
---|
147 | maxrotation = 100 |
---|
148 | transacc = 200 |
---|
149 | rotacc = 140 |
---|
150 | transdamp = 75 |
---|
151 | > |
---|
152 | <attached> |
---|
153 | <Model position="8,-30,-120" yaw=90 pitch=-90 roll=0 scale=4 mesh="spacecruiser.mesh" /> |
---|
154 | </attached> |
---|
155 | </SpaceShip> |
---|
156 | </Template--> |
---|