[Orxonox-commit 7464] r12071 - in code/branches/OrxoKart_HS18/data/levels: . templates
emustafa at orxonox.net
emustafa at orxonox.net
Wed Oct 31 11:49:41 CET 2018
Author: emustafa
Date: 2018-10-31 11:49:41 +0100 (Wed, 31 Oct 2018)
New Revision: 12071
Added:
code/branches/OrxoKart_HS18/data/levels/kart_alpha0.1.oxw
code/branches/OrxoKart_HS18/data/levels/templates/OrxoKartKart.oxt
Log:
OrxoKart uses OrxoKartKart and not HoverShip
Added: code/branches/OrxoKart_HS18/data/levels/kart_alpha0.1.oxw
===================================================================
--- code/branches/OrxoKart_HS18/data/levels/kart_alpha0.1.oxw (rev 0)
+++ code/branches/OrxoKart_HS18/data/levels/kart_alpha0.1.oxw 2018-10-31 10:49:41 UTC (rev 12071)
@@ -0,0 +1,83 @@
+<LevelInfo
+ name = "kart_controlls"
+ description = "Level for Minigame Hover"
+ tags = "minigame"
+ screenshot = "emptylevel.png"
+/>
+
+<?lua
+ include("stats.oxo")
+ include("HUDTemplates3.oxo")
+ include("templates/lodInformation.oxt")
+?>
+
+<?lua
+ include("templates/spaceshipPirate.oxt")
+ include("templates/spaceshipHover.oxt")
+ include("overlays/HoverHUD.oxo")
+?>
+
+<?lua
+MAZE_NUM_CELLS = 10
+MAZE_CELL_SIZE = 100
+MAZE_CELL_HEIGHT = 30
+MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
+?>
+
+<Level
+plugins = hover
+gametype = Hover
+>
+ <templates>
+ <Template link=lodtemplate_default />
+ </templates>
+ <?lua include("includes/notifications.oxi") ?>
+
+
+ <Scene
+ ambientlight = "0.8, 0.8, 0.8"
+ skybox = "Orxonox/Starbox"
+ gravity = "0, -200, 0"
+ >
+
+ <StaticEntity position="0,0,0" collisionType="static">
+ <attached>
+ <HoverOrigin
+ numCells="<?lua print(MAZE_NUM_CELLS)?>"
+ cellSize="<?lua print(MAZE_CELL_SIZE)?>"
+ cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
+ />
+ <Model
+ position="<?lua print(MAZE_SIZE/2)?>,-16,<?lua print(MAZE_SIZE/2)?>"
+ scale3D="<?lua print(MAZE_SIZE/2)?>,16,<?lua print(MAZE_SIZE/2)?>"
+ mesh="CubeGround.mesh"
+ />
+ </attached>
+ <collisionShapes>
+
+ <BoxCollisionShape
+ position="<?lua print(MAZE_SIZE/2)?>,-1,<?lua print(MAZE_SIZE/2)?>"
+ halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>"
+ />
+ </collisionShapes>
+ </StaticEntity>
+
+ <Light
+ type=directional
+ position="-50,500,-50"
+ direction="0.577, -0.577, 0.577"
+ diffuse="1.0, 0.9, 0.9, 1.0"
+ specular="1.0, 0.9, 0.9, 1.0"
+ />
+
+ <SpawnPoint
+ team=0
+ position="50,20,50"
+ lookat="100,20,100"
+ spawnclass=HoverShip
+ pawndesign=spaceshiphover
+ />
+
+ </Scene>
+</Level>
+
Added: code/branches/OrxoKart_HS18/data/levels/templates/OrxoKartKart.oxt
===================================================================
--- code/branches/OrxoKart_HS18/data/levels/templates/OrxoKartKart.oxt (rev 0)
+++ code/branches/OrxoKart_HS18/data/levels/templates/OrxoKartKart.oxt 2018-10-31 10:49:41 UTC (rev 12071)
@@ -0,0 +1,110 @@
+
+<Template name=OrxoKartKart>
+ <SpaceShip
+ hudtemplate = spaceshiphoverhud
+ camerapositiontemplate = spaceshiphovercameras
+ spawnparticlesource = "Orxonox/fairytwirl"
+ spawnparticleduration = 3
+ explosionchunks = 6
+
+ health = 100
+ maxhealth = 200
+ initialhealth = 100
+
+ shieldhealth = 25
+ initialshieldhealth = 25
+ maxshieldhealth = 40
+ shieldabsorption = 0.6
+ reloadrate = 2
+ reloadwaittime = 0.5
+
+ primaryThrust = 600
+ auxilaryThrust = 300
+ rotationThrust = 50
+
+ jumpBoost = 30
+
+ lift = 1;
+ stallSpeed = 500;
+
+ boostPower = 30
+ boostPowerRate = 1
+ boostRate = 5
+ boostCooldownDuration = 10
+
+ collisionType = "dynamic"
+ mass = 100
+ linearDamping = 0.2
+ angularDamping = 0.9999999
+ >
+ <engines>
+ <MultiStateEngine position=" 0, 0, 0" template=spaceshiphoverengine />
+ </engines>
+ <attached>
+ <Model position="0,0,-20" mesh="hovership_body.mesh" scale="5" yaw=180/>
+ <Model position="0,0,-20" mesh="hovership_engine.mesh" scale="5" yaw=180/>
+ <Model position="0,0,-20" mesh="hovership_gun.mesh" scale="5" yaw=180/>
+
+ </attached>
+ <collisionShapes>
+ <BoxCollisionShape position="0,-2 ,7" halfExtents="7, 4 ,30" />
+ </collisionShapes>
+ <explosion>
+ <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_flash2" effect2="orxonox/explosion_flame2" />
+ <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_shockwave2" effect2="orxonox/explosion_sparks2" scale=2 />
+ <ExplosionPart minspeed=0 maxspeed=0 effect1="orxonox/explosion_streak2" effect2="orxonox/explosion_afterglow" />
+
+ <ExplosionPart mesh="explosionparts/pirate_part_1.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
+ <ExplosionPart mesh="explosionparts/pirate_part_2.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
+ <ExplosionPart mesh="explosionparts/pirate_part_3.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
+ <ExplosionPart mesh="explosionparts/pirate_part_4.mesh" effect1="Orxonox/fire4" effect2="Orxonox/smoke6" />
+ </explosion>
+
+<?lua
+ include("../includes/weaponSettingsHover.oxi")
+?>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshiphovercameras defaults=0>
+ <SpaceShip>
+ <camerapositions>
+ <CameraPosition position="0,8, 5" drag=true mouselook=true />
+ <CameraPosition position="0,8,5" yaw="180" drag=true mouselook=true />
+ </camerapositions>
+ </SpaceShip>
+</Template>
+
+<Template name=spaceshiphoverengine baseclass=Engine>
+ <MultiStateEngine
+ boostfactor = 2
+
+ speedfront = 200
+ speedback = 40
+ speedleftright = 40
+ speedupdown = 40
+
+ accelerationfront = 500
+ accelerationbrake = 500
+ accelerationback = 125
+ accelerationleftright = 125
+ accelerationupdown = 125
+ >
+ <EffectContainer condition="not idle">
+ <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 />
+ <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 />
+ <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 />
+ </EffectContainer>
+ <EffectContainer condition="normal or boost">
+ <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" />
+
+ </EffectContainer>
+ <EffectContainer condition="boost">
+ <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" />
+ </EffectContainer>
+ <EffectContainer condition="brake">
+ <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 />
+
+ </EffectContainer>
+ </MultiStateEngine>
+</Template>
More information about the Orxonox-commit
mailing list