[Orxonox-commit 2213] r6929 - in code/trunk/data/levels: . includes templates
dave at orxonox.net
dave at orxonox.net
Thu May 20 13:10:49 CEST 2010
Author: dave
Date: 2010-05-20 13:10:49 +0200 (Thu, 20 May 2010)
New Revision: 6929
Added:
code/trunk/data/levels/includes/weaponsettings_swallow.oxi
code/trunk/data/levels/templates/spaceship_swallow.oxt
code/trunk/data/levels/test_swallow.oxw
Log:
new ship
Added: code/trunk/data/levels/includes/weaponsettings_swallow.oxi
===================================================================
--- code/trunk/data/levels/includes/weaponsettings_swallow.oxi (rev 0)
+++ code/trunk/data/levels/includes/weaponsettings_swallow.oxi 2010-05-20 11:10:49 UTC (rev 6929)
@@ -0,0 +1,26 @@
+ <weaponslots>
+ <WeaponSlot position=" 8,1.66,-17.5" />
+ <WeaponSlot position="-8,1.66,-17.5" />
+ </weaponslots>
+ <weaponsets>
+ <WeaponSet firemode=0 />
+ <WeaponSet firemode=1 />
+ </weaponsets>
+ <weapons>
+ <WeaponPack>
+ <links>
+ <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
+ <DefaultWeaponmodeLink firemode=1 weaponmode=1 />
+ </links>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ <Weapon>
+ <HsW01 mode=0 munitionpershot=0 delay=0 material="Flares/point_lensflare" />
+ <HsW01 mode=0 munitionpershot=0 delay=0.125 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
+ <LightningGun mode=1 muzzleoffset="0,0,0" />
+ </Weapon>
+ </WeaponPack>
+ </weapons>
\ No newline at end of file
Added: code/trunk/data/levels/templates/spaceship_swallow.oxt
===================================================================
--- code/trunk/data/levels/templates/spaceship_swallow.oxt (rev 0)
+++ code/trunk/data/levels/templates/spaceship_swallow.oxt 2010-05-20 11:10:49 UTC (rev 6929)
@@ -0,0 +1,84 @@
+<Template name=spaceshipswallow>
+ <SpaceShip
+ hudtemplate = spaceshiphud
+ camerapositiontemplate = spaceshipswallowcameras
+ engine = spaceshipswallowengine
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ primaryThrust = 600;
+ auxilaryThrust = 30;
+ rotationThrust = 25;
+
+ collisionType = "dynamic"
+ mass = 100
+ linearDamping = 0.7
+ angularDamping = 0.9999999
+ >
+
+ <attached>
+ <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="swallow_mat.mesh" />
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,0,0" halfExtents="10, 3, 5" />
+ <BoxCollisionShape position="13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
+ <BoxCollisionShape position="0,0,7" halfExtents="3, 2, 2" />
+ <BoxCollisionShape position="0,0.1,-11" halfExtents="2.2, 1.8, 6" />
+ <BoxCollisionShape position="0,0.1,-19" halfExtents="1.4, 1, 2" />
+ </collisionShapes>
+<?lua
+ include("includes/weaponsettings_swallow.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipswallowcameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,20,80" drag=true mouselook=true />
+ <CameraPosition position="0,40,160" drag=true mouselook=true />
+ <CameraPosition position="0,50,200" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshipswallowengine baseclass=MultiStateEngine>
+ <MultiStateEngine
+ boostfactor = 2
+
+ speedfront = 600
+ speedback = 60
+ speedleftright = 60
+ speedupdown = 60
+
+ accelerationfront = 700
+ accelerationbrake = 300
+ accelerationback = 100
+ accelerationleftright = 120
+ accelerationupdown = 120
+ >
+ <EffectContainer condition="normal or boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 3, 22" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-6.6, 0, 22" colour="0.0, 0.0, 0.0, 0.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
+ </EffectContainer>
+ <EffectContainer condition="not idle">
+ <Backlight mainstate=activity active=false scale=0.4 position="6.6, 0, 22" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <Backlight mainstate=activity active=false scale=0.4 position="-6.6, 0, 22" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
+ </EffectContainer>
+</MultiStateEngine>
+</Template>
+
Added: code/trunk/data/levels/test_swallow.oxw
===================================================================
--- code/trunk/data/levels/test_swallow.oxw (rev 0)
+++ code/trunk/data/levels/test_swallow.oxw 2010-05-20 11:10:49 UTC (rev 6929)
@@ -0,0 +1,52 @@
+<?lua
+ include("hudtemplates3.oxo")
+ include("stats.oxo")
+ include("templates/spaceship_swallow.oxt")
+ include("templates/spaceship_pirate.oxt")
+?>
+
+<Level
+ name = "Presentation_swallow"
+ description = "presentation level for Orxonox Convention X"
+
+>
+ <Scene
+ ambientlight = "0.5, 0.5, 0.5"
+ skybox = "Orxonox/skypanoramagen1"
+ >
+ <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
+
+
+<SpawnPoint position="<?lua print(math.sin(1.5) *40000) ?>,<?lua print(math.cos(1.5) *40000) ?>,<?lua print(500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow />
+
+
+<?lua
+max = 20
+for i = 1, max, 1
+do
+ x = math.sin(i/max*6)*40000
+ y = math.cos(i/max*6)*40000
+ z = i*100
+ ?>
+<?lua
+for k = 1, 25, 1
+do
+j = math.random()
+?>
+
+ <MovableEntity position="<?lua print(x + math.random() * 10000-2500) ?>,<?lua print(y + math.random() * 5000-2500) ?>,<?lua print(z + math.random() * 1000-500) ?>" <?lua if i == 5 then ?> collisionType=dynamic linearDamping=0.8 angularDamping=0 mass=<?lua print(j * 50) ?> <?lua end ?> scale=<?lua print(j * 5) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
+ <attached>
+ <Model position="0,0,0" scale=<?lua print(j * 10) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+ </attached>
+ <?lua if i == 5 then ?><collisionShapes>
+ <SphereCollisionShape radius="<?lua print(j * 70) ?>" />
+ </collisionShapes> <?lua end ?>
+ </MovableEntity>
+<?lua
+end
+?>
+<?lua end ?>
+ <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
+
+ </Scene>
+</Level>
More information about the Orxonox-commit
mailing list