1 | <Template name=spaceshipHXY> |
---|
2 | <SpaceShip |
---|
3 | camerapositiontemplate = spaceshipHXYcameras |
---|
4 | engine = spaceshipHXYengine |
---|
5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
6 | spawnparticleduration = 3 |
---|
7 | explosionchunks = 6 |
---|
8 | |
---|
9 | health = 100 |
---|
10 | maxhealth = 200 |
---|
11 | initialhealth = 100 |
---|
12 | |
---|
13 | primaryThrust = 100; |
---|
14 | auxilaryThrust = 30; |
---|
15 | rotationThrust = 25; |
---|
16 | |
---|
17 | collisionType = "dynamic" |
---|
18 | mass = 100 |
---|
19 | linearDamping = 0.7 |
---|
20 | angularDamping = 0.9999999 |
---|
21 | > |
---|
22 | <attached> |
---|
23 | <Model position="0,0,0" yaw=180 pitch=-90 roll=0 scale=4 mesh="HXY.mesh" /> |
---|
24 | </attached> |
---|
25 | <collisionShapes> |
---|
26 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
27 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
28 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
29 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
30 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
31 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
32 | </collisionShapes> |
---|
33 | |
---|
34 | <?lua |
---|
35 | include("includes/weaponsettings_HXY.oxi") |
---|
36 | ?> |
---|
37 | </SpaceShip> |
---|
38 | </Template> |
---|
39 | |
---|
40 | <Template name=spaceshipHXYcameras defaults=0> |
---|
41 | <SpaceShip> |
---|
42 | <camerapositions> |
---|
43 | <CameraPosition position="0,8, 60" drag=true mouselook=true /> |
---|
44 | <CameraPosition position="0,16, 120" drag=true mouselook=true /> |
---|
45 | <CameraPosition position="0,24,180" drag=true mouselook=true /> |
---|
46 | <CameraPosition position="0,60,10" pitch="-80" drag=true mouselook=true /> |
---|
47 | </camerapositions> |
---|
48 | </SpaceShip> |
---|
49 | </Template> |
---|
50 | |
---|
51 | <Template name=spaceshipHXYengine baseclass=MultiStateEngine> |
---|
52 | <MultiStateEngine |
---|
53 | boostfactor = 2 |
---|
54 | |
---|
55 | speedfront = 150 |
---|
56 | speedback = 50 |
---|
57 | speedleftright = 50 |
---|
58 | speedupdown = 50 |
---|
59 | |
---|
60 | defEngineSndNormal = "sounds/Engine_low.ogg" |
---|
61 | defEngineSndBoost = "sounds/Engine_high.ogg" |
---|
62 | |
---|
63 | accelerationfront = 500 |
---|
64 | accelerationbrake = 500 |
---|
65 | accelerationback = 125 |
---|
66 | accelerationleftright = 125 |
---|
67 | accelerationupdown = 125 |
---|
68 | > |
---|
69 | <EffectContainer condition="idle"> |
---|
70 | <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" loop=1 active=false/> |
---|
71 | </EffectContainer> |
---|
72 | <EffectContainer condition="not idle"> |
---|
73 | |
---|
74 | </EffectContainer> |
---|
75 | <EffectContainer condition="normal or brake"> |
---|
76 | |
---|
77 | </EffectContainer> |
---|
78 | <EffectContainer condition="normal or boost"> |
---|
79 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
80 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 1.0" width=10 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
81 | </EffectContainer> |
---|
82 | <EffectContainer condition="boost"> |
---|
83 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
84 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-2, 0, 20" colour="1, 0.7, 0.1, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
85 | </EffectContainer> |
---|
86 | <EffectContainer condition="brake"> |
---|
87 | <FadingBillboard mainstate=activity active=false scale=0.3 position=" 2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
88 | <FadingBillboard mainstate=activity active=false scale=0.3 position="-2, 0, 20" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
89 | <FadingBillboard mainstate=activity active=false scale=0.15 position=" 2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 /> |
---|
90 | <FadingBillboard mainstate=activity active=false scale=0.15 position="-2, 0, 20" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 /> |
---|
91 | </EffectContainer> |
---|
92 | </MultiStateEngine> |
---|
93 | </Template> |
---|