1 | <Template name=spaceshippirate> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphud |
---|
4 | camerapositiontemplate = spaceshippiratecameras |
---|
5 | engine = spaceshippirateengine |
---|
6 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
7 | spawnparticleduration = 3 |
---|
8 | explosionchunks = 6 |
---|
9 | |
---|
10 | health = 100 |
---|
11 | maxhealth = 200 |
---|
12 | initialhealth = 100 |
---|
13 | |
---|
14 | primaryThrust = 100; |
---|
15 | auxilaryThrust = 30; |
---|
16 | rotationThrust = 25; |
---|
17 | |
---|
18 | collisionType = "dynamic" |
---|
19 | mass = 100 |
---|
20 | linearDamping = 0.7 |
---|
21 | angularDamping = 0.9999999 |
---|
22 | > |
---|
23 | <attached> |
---|
24 | <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="pirate.mesh" /> |
---|
25 | <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 /> |
---|
26 | <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 /> |
---|
27 | </attached> |
---|
28 | <collisionShapes> |
---|
29 | <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" /> |
---|
30 | <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
31 | <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" /> |
---|
32 | <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" /> |
---|
33 | <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" /> |
---|
34 | <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" /> |
---|
35 | </collisionShapes> |
---|
36 | <?lua |
---|
37 | include("levels/weaponsettings1.oxw") |
---|
38 | ?> |
---|
39 | </SpaceShip> |
---|
40 | </Template> |
---|
41 | |
---|
42 | <Template name=spaceshippiratecameras defaults=0> |
---|
43 | <SpaceShip> |
---|
44 | <camerapositions> |
---|
45 | <CameraPosition position="0,8, 60" drag=true mouselook=true /> |
---|
46 | <CameraPosition position="0,16, 120" drag=true mouselook=true /> |
---|
47 | <CameraPosition position="0,24,180" drag=true mouselook=true /> |
---|
48 | <CameraPosition position="0,60,20" pitch="-80" drag=true mouselook=true /> |
---|
49 | </camerapositions> |
---|
50 | </SpaceShip> |
---|
51 | </Template> |
---|
52 | |
---|
53 | <Template name=spaceshippirateengine baseclass=MultiStateEngine> |
---|
54 | <MultiStateEngine |
---|
55 | boostfactor = 2 |
---|
56 | |
---|
57 | speedfront = 150 |
---|
58 | speedback = 50 |
---|
59 | speedleftright = 50 |
---|
60 | speedupdown = 50 |
---|
61 | |
---|
62 | accelerationfront = 500 |
---|
63 | accelerationbrake = 500 |
---|
64 | accelerationback = 125 |
---|
65 | accelerationleftright = 125 |
---|
66 | accelerationupdown = 125 |
---|
67 | > |
---|
68 | <active> |
---|
69 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 2, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
70 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
71 | <FadingBillboard mainstate=activity active=false scale=0.02 position="-2, -4, -15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
72 | </active> |
---|
73 | <forward> |
---|
74 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 13, -4, 9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
75 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-13, -4, 9.5" colour="1.0, 0.65, 0.2, 1.0" width=8 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
76 | </forward> |
---|
77 | <boost> |
---|
78 | <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 0, 5, 15.5" colour="1.0, 0.65, 0.2, 1.0" width=16 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
79 | </boost> |
---|
80 | <brake> |
---|
81 | <FadingBillboard mainstate=activity active=false scale=0.1 position=" 4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
82 | <FadingBillboard mainstate=activity active=false scale=0.1 position="-4.4, -5.5, 5" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
83 | </brake> |
---|
84 | </MultiStateEngine> |
---|
85 | </Template> |
---|