1 | <Template name=spaceshiphover> |
---|
2 | <SpaceShip |
---|
3 | hudtemplate = spaceshiphoverhud |
---|
4 | camerapositiontemplate = spaceshiphovercameras |
---|
5 | spawnparticlesource = "Orxonox/fairytwirl" |
---|
6 | spawnparticleduration = 3 |
---|
7 | explosionchunks = 6 |
---|
8 | |
---|
9 | health = 100 |
---|
10 | maxhealth = 200 |
---|
11 | initialhealth = 100 |
---|
12 | |
---|
13 | shieldhealth = 25 |
---|
14 | initialshieldhealth = 25 |
---|
15 | maxshieldhealth = 40 |
---|
16 | shieldabsorption = 0.6 |
---|
17 | reloadrate = 2 |
---|
18 | reloadwaittime = 0.5 |
---|
19 | |
---|
20 | primaryThrust = 200 |
---|
21 | auxilaryThrust = 30 |
---|
22 | rotationThrust = 25 |
---|
23 | |
---|
24 | jumpBoost = 90 |
---|
25 | |
---|
26 | lift = 1; |
---|
27 | stallSpeed = 220; |
---|
28 | |
---|
29 | boostPower = 10 |
---|
30 | boostPowerRate = 1 |
---|
31 | boostRate = 5 |
---|
32 | boostCooldownDuration = 10 |
---|
33 | |
---|
34 | collisionType = "dynamic" |
---|
35 | mass = 100 |
---|
36 | linearDamping = 0.2 |
---|
37 | angularDamping = 0.9999999 |
---|
38 | > |
---|
39 | <engines> |
---|
40 | <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine /> |
---|
41 | </engines> |
---|
42 | <attached> |
---|
43 | <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/> |
---|
44 | <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/> |
---|
45 | <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/> |
---|
46 | |
---|
47 | </attached> |
---|
48 | <collisionShapes> |
---|
49 | <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" /> |
---|
50 | </collisionShapes> |
---|
51 | |
---|
52 | <?lua |
---|
53 | include("../includes/weaponSettingsHover.oxi") |
---|
54 | ?> |
---|
55 | </SpaceShip> |
---|
56 | </Template> |
---|
57 | |
---|
58 | <Template name=spaceshiphovercameras defaults=0> |
---|
59 | <SpaceShip> |
---|
60 | <camerapositions> |
---|
61 | <CameraPosition position="0,8, 5" drag=true mouselook=true /> |
---|
62 | <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true /> |
---|
63 | </camerapositions> |
---|
64 | </SpaceShip> |
---|
65 | </Template> |
---|
66 | |
---|
67 | <Template name=spaceshiphoverengine baseclass=Engine> |
---|
68 | <MultiStateEngine |
---|
69 | boostfactor = 2 |
---|
70 | |
---|
71 | speedfront = 90 |
---|
72 | speedback = 40 |
---|
73 | speedleftright = 40 |
---|
74 | speedupdown = 40 |
---|
75 | |
---|
76 | accelerationfront = 500 |
---|
77 | accelerationbrake = 500 |
---|
78 | accelerationback = 125 |
---|
79 | accelerationleftright = 125 |
---|
80 | accelerationupdown = 125 |
---|
81 | > |
---|
82 | <EffectContainer condition="not idle"> |
---|
83 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
84 | <FadingBillboard mainstate=activity active=false scale=0.02 position=" 0, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
85 | <FadingBillboard mainstate=activity active=false scale=0.02 position="-1.3, 0, 15" colour="1.0, 0.65, 0.2, 1.0" material="Examples/FlareZwei" turnontime=0.5 turnofftime=0.5 /> |
---|
86 | </EffectContainer> |
---|
87 | <EffectContainer condition="normal or boost"> |
---|
88 | <Backlight mainstate=activity active=false scale=0.8 name=bltest position=" 0, 0, 40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=800 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
89 | |
---|
90 | </EffectContainer> |
---|
91 | <EffectContainer condition="boost"> |
---|
92 | <Backlight mainstate=activity active=false scale=0.8 name=bltest position=" 0, 0, 40" colour="1.0, 0.65, 0.2, 1.0" width=10 length=1600 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" /> |
---|
93 | </EffectContainer> |
---|
94 | <EffectContainer condition="brake"> |
---|
95 | <FadingBillboard mainstate=activity active=false scale=0.5 position=" 0, 0, 40" colour="0.8, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
96 | |
---|
97 | </EffectContainer> |
---|
98 | </MultiStateEngine> |
---|
99 | </Template> |
---|