[Orxonox-commit 7366] r11982 - in code/branches/RacingBots_FS18: data/levels data/levels/templates src/modules/gametypes
arismu at orxonox.net
arismu at orxonox.net
Thu May 24 13:56:23 CEST 2018
Author: arismu
Date: 2018-05-24 13:56:22 +0200 (Thu, 24 May 2018)
New Revision: 11982
Added:
code/branches/RacingBots_FS18/data/levels/templates/SpaceRaceTemplates.oxt
Modified:
code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.h
Log:
SpaceRaceTemplates
Modified: code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw
===================================================================
--- code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw 2018-05-24 11:43:38 UTC (rev 11981)
+++ code/branches/RacingBots_FS18/data/levels/newnewnewspacerace.oxw 2018-05-24 11:56:22 UTC (rev 11982)
@@ -537,7 +537,7 @@
<PickupSpawner pickup=mediumboostpickup position="24000,-165,-80" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
<PickupSpawner pickup=smallboostpickup position="42000,70,-30" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
- <PickupSpawner pickup=smallboostpickup position="32000,0,650" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
+ <PickupSpawner pickup=smallspeedpickup position="32000,0,650" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
<PickupSpawner pickup=smallspeedpickup position="9000,-185,66" triggerDistance="60" respawnTime="10" maxSpawnedItems="8" scale="10"/>
Added: code/branches/RacingBots_FS18/data/levels/templates/SpaceRaceTemplates.oxt
===================================================================
--- code/branches/RacingBots_FS18/data/levels/templates/SpaceRaceTemplates.oxt (rev 0)
+++ code/branches/RacingBots_FS18/data/levels/templates/SpaceRaceTemplates.oxt 2018-05-24 11:56:22 UTC (rev 11982)
@@ -0,0 +1,885 @@
+<!-- Boost pickups: -->
+
+<Template name=smallboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Flash" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallboostpickup baseclass=BoostPickup>
+ <BoostPickup
+ representation = "smallboostpickup"
+ boostrefill = 0.5
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<Template name=mediumboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Flash" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumboostpickup baseclass=BoostPickup>
+ <BoostPickup
+ representation = "mediumboostpickup"
+ boostrefill = 0.75
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<Template name=hugeboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.0,1.0,0.8" material="Flash" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugeboostpickup baseclass=BoostPickup>
+ <BoostPickup
+ representation = "hugeboostpickup"
+ boostrefill = 1.0
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<!-- Shield pickups: -->
+
+<Template name=smallshieldpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallshieldpickup baseclass=ShieldPickup>
+ <ShieldPickup
+ representation = "smallshieldpickup"
+ duration = 10
+ shieldabsorption = 0.7
+ shieldhealth = 300
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=mediumshieldpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumshieldpickup baseclass=ShieldPickup>
+ <ShieldPickup
+ representation = "mediumshieldpickup"
+ duration = 30
+ shieldabsorption = 0.8
+ shieldhealth = 500
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+
+<Template name=hugeshieldpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1,1,1" material="Shield" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugeshieldpickup baseclass=ShieldPickup>
+ <ShieldPickup
+ representation = "hugeshieldpickup"
+ duration = 60
+ shieldabsorption = 0.95
+ shieldhealth = 700
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<!-- Health pickups: -->
+
+<Template name=smallhealthpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.50,0.90,0.25" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.36,0.81,0.10" material="Cross" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallhealthpickup baseclass=HealthPickup>
+ <HealthPickup
+ representation = "smallhealthpickup"
+ health = 10
+ healthType = "limited"
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<Template name=mediumhealthpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.50,0.90,0.25" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.36,0.81,0.10" material="Cross" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumhealthpickup baseclass=HealthPickup>
+ <HealthPickup
+ representation = "mediumhealthpickup"
+ health = 50
+ healthType = "limited"
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<Template name=hugehealthpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.50,0.90,0.25" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.36,0.81,0.10" material="Cross" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugehealthpickup baseclass=HealthPickup>
+ <HealthPickup
+ representation = "hugehealthpickup"
+ health = 100
+ healthType = "limited"
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<Template name=crazyhealthpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.50,0.90,0.25" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.36,0.81,0.10" material="Cross" scale=1.2 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=crazyhealthpickup baseclass=HealthPickup>
+ <HealthPickup
+ representation = "crazyhealthpickup"
+ health = 1000
+ healthType = "permanent"
+ activationType = "immediate"
+ durationType = "once"
+ />
+</Template>
+
+<!-- Munition pickups: -->
+
+<Template name=smallmunitionpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallmunitionpickup baseclass=MunitionPickup>
+ <MunitionPickup
+ representation = "smallmunitionpickup"
+ activationType = "immediate"
+ durationType = "once"
+ >
+ <munitioncontainers>
+ <MunitionContainer munitiontype="LaserMunition" munitionamount=16 magazinesamount=0 />
+ <MunitionContainer munitiontype="FusionMunition" munitionamount=8 magazinesamount=0 />
+ <MunitionContainer munitiontype="LightningMunition" munitionamount=8 magazinesamount=0 />
+ </munitioncontainers>
+ </MunitionPickup>
+</Template>
+
+<Template name=mediummunitionpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediummunitionpickup baseclass=MunitionPickup>
+ <MunitionPickup
+ representation = "mediummunitionpickup"
+ activationType = "immediate"
+ durationType = "once"
+ >
+ <munitioncontainers>
+ <MunitionContainer munitiontype="LaserMunition" munitionamount=32 magazinesamount=0 />
+ <MunitionContainer munitiontype="FusionMunition" munitionamount=16 magazinesamount=0 />
+ <MunitionContainer munitiontype="LightningMunition" munitionamount=16 magazinesamount=0 />
+ <MunitionContainer munitiontype="SplitMunition" munitionamount=8 magazinesamount=0 />
+ <MunitionContainer munitiontype="RocketMunition" munitionamount=0 magazinesamount=2 />
+ <MunitionContainer munitiontype="MineMunition" munitionamount=0 magazinesamount=2 />
+ </munitioncontainers>
+ </MunitionPickup>
+</Template>
+
+<Template name=hugemunitionpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.59,0.30,0.16" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.47,0.24,0.13" material="Munition" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugemunitionpickup baseclass=MunitionPickup>
+ <MunitionPickup
+ representation = "hugemunitionpickup"
+ activationType = "immediate"
+ durationType = "once"
+ >
+ <munitioncontainers>
+ <MunitionContainer munitiontype="LaserMunition" munitionamount=64 magazinesamount=0 />
+ <MunitionContainer munitiontype="FusionMunition" munitionamount=32 magazinesamount=0 />
+ <MunitionContainer munitiontype="LightningMunition" munitionamount=32 magazinesamount=0 />
+ <MunitionContainer munitiontype="SplitMunition" munitionamount=16 magazinesamount=0 />
+ <MunitionContainer munitiontype="RocketMunition" munitionamount=0 magazinesamount=10 />
+ <MunitionContainer munitiontype="IceMunition" munitionamount=0 magazinesamount=10 />
+ <MunitionContainer munitiontype="FlameMunition" munitionamount=0 magazinesamount=10 />
+ <MunitionContainer munitiontype="GravityBombMunition" munitionamount=0 magazinesamount=10 />
+ <MunitionContainer munitiontype="MineMunition" munitionamount=0 magazinesamount=10 />
+ </munitioncontainers>
+ </MunitionPickup>
+</Template>
+
+<!-- Meta pickups: -->
+
+<Template name=usepickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="ArrowUp" scale=0.65 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=usemetapickup baseclass=MetaPickup>
+ <MetaPickup representation="use" metaType="use" />
+</Template>
+
+<Template name=droppickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="ArrowDown" scale=0.65 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=dropmetapickup baseclass=MetaPickup>
+ <MetaPickup representation="drop" metaType="drop" />
+</Template>
+
+<Template name=destroypickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Splash" scale=0.65 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=destroymetapickup baseclass=MetaPickup>
+ <MetaPickup representation="destroy" metaType="destroy" />
+</Template>
+
+<Template name=destroycarrierpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.6,0.⁰,0.8" material="Asterisk" scale=0.65 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=destroycarriermetapickup baseclass=MetaPickup>
+ <MetaPickup representation="destroycarrier" metaType="destroyCarrier" />
+</Template>
+
+<!-- DamageBoost pickups -->
+
+<Template name=smalldamageboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 >
+ <attached>
+ <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smalldamageboostpickup baseclass=DamageBoostPickup>
+ <DamageBoostPickup
+ representation = "smalldamageboostpickup"
+ duration = 10.0
+ damageMultiplier = 2.0
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=mediumdamageboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 >
+ <attached>
+ <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumdamageboostpickup baseclass=DamageBoostPickup>
+ <DamageBoostPickup
+ representation = "mediumdamageboostpickup"
+ duration = 10.0
+ damageMultiplier = 5.0
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=hugedamageboostpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 >
+ <attached>
+ <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugedamageboostpickup baseclass=DamageBoostPickup>
+ <DamageBoostPickup
+ representation = "hugedamageboostpickup"
+ duration = 10.0
+ damageMultiplier = 7.0
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+
+<!-- Speed pickups -->
+
+<Template name=smallspeedpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallspeedpickup baseclass=SpeedPickup>
+ <SpeedPickup
+ representation = "smallspeedpickup"
+ duration = 3.0
+ speedAdd = 0.0
+ SpeedMultiply = 1.8
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=mediumspeedpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumspeedpickup baseclass=SpeedPickup>
+ <SpeedPickup
+ representation = "mediumspeedpickup"
+ duration = 5.0
+ speedAdd = 0.0
+ SpeedMultiply = 0.1
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=hugespeedpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugespeedpickup baseclass=SpeedPickup>
+ <SpeedPickup
+ representation = "hugespeedpickup"
+ duration = 2.0
+ speedAdd = 0.0
+ SpeedMultiply = 3.0
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=smalljumppickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1,0,0" material="3arrowsup" scale=0.3 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smalljumppickup baseclass=SpeedPickup>
+ <SpeedPickup
+ representation = "smalljumppickup"
+ duration = 0.7
+ speedAdd = 50.0
+ SpeedMultiply = 1.0
+ activationType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<!-- Invisible pickups -->
+
+<Template name=smallinvisiblepickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.22,0.32,0.86" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.06,0.14,0.63" material="Eye" scale=0.5 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallinvisiblepickup baseclass=InvisiblePickup>
+ <InvisiblePickup
+ representation = "smallinvisiblepickup"
+ duration = 5.0
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=mediuminvisiblepickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.22,0.32,0.86" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.06,0.14,0.63" material="Eye" scale=0.7 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediuminvisiblepickup baseclass=InvisiblePickup>
+ <InvisiblePickup
+ representation = "mediuminvisiblepickup"
+ duration = 10.0
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=hugeinvisiblepickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.22,0.32,0.86" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="0.06,0.14,0.63" material="Eye" scale=0.9 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugeinvisiblepickup baseclass=InvisiblePickup>
+ <InvisiblePickup
+ representation = "hugeinvisiblepickup"
+ duration = 20.0
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=smallshrinkpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.35 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=smallshrinkpickup baseclass=ShrinkPickup>
+ <ShrinkPickup
+ representation = "smallshrinkpickup"
+ duration = 3.0
+ shrinkFactor = 2.5
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=mediumshrinkpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.55 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=mediumshrinkpickup baseclass=ShrinkPickup>
+ <ShrinkPickup
+ representation = "mediumshrinkpickup"
+ duration = 30.0
+ shrinkFactor = 5.0
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<Template name=hugeshrinkpickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,0,0" colour="1.0,0.55,1.0" material="Shrink" scale=0.75 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=hugeshrinkpickup baseclass=ShrinkPickup>
+ <ShrinkPickup
+ representation = "hugeshrinkpickup"
+ duration = 60.0
+ shrinkFactor = 10.0
+ activaionType = "immediate"
+ durationType = "continuous"
+ />
+</Template>
+
+<!-- Pickup Collection pickups -->
+
+<Template name=triplehealthspeedinvisibilitypickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.95,0.85,0.27" material="Sphere2" scale=0.1>
+ <attached>
+ <Billboard position="0,20,0" colour="0.36,0.81,0.10" material="Cross" scale=0.25 />
+ <Billboard position="-20,-10,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.25 />
+ <Billboard position="20,-10,0" colour="0.06,0.14,0.63" material="Eye" scale=0.35 />
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=triplehealthspeedinvisibilitypickup baseclass=PickupCollection>
+ <PickupCollection
+ representation = "triplehealthspeedinvisibilitypickup"
+ >
+ <pickupables>
+ <HealthPickup template=mediumhealthpickup />
+ <SpeedPickup template=mediumspeedpickup />
+ <InvisiblePickup template=mediuminvisiblepickup />
+ </pickupables>
+ </PickupCollection>
+</Template>
+
+<!-- Drone Pickup -->
+
+<Template name=droneTemplate>
+ <Drone name="Drone" mass= "50" linearDamping = "0.7" angularDamping = "0.99999" maxDistanceToOwner_=150 minDistanceToOwner_=75 maxShootingRange_=1000 primaryThrust_=250 auxilaryThrust_=250 rotationThrust_=50>
+ <attached>
+ <Model scale="1" mesh="drone.mesh"/>
+ </attached>
+ <collisionShapes>
+ <SphereCollisionShape position="0,0,0" radius=5 />
+ </collisionShapes>
+ <weaponslots>
+ <WeaponSlot position="0,0,0" />
+ </weaponslots>
+ <weaponsets>
+ <WeaponSet firemode=0 />
+ </weaponsets>
+ <weaponpacks>
+ <WeaponPack>
+ <links>
+ <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
+ </links>
+ <Weapon>
+ <attached>
+ <Model mesh="hs-w01.mesh" roll="195" position="0,1,0" scale=2 />
+ <Model mesh="hs-w01s.mesh" roll="195" position="0.1,0.5,0" scale=2 />
+ </attached>
+ <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=1.5708 material="Flares/point_lensflare" muzzleoffset=" 0.7, 1.5,-4" />
+ <HsW01 mode=0 munitionpershot=0 delay=0 damage=1.5708 material="Flares/point_lensflare" muzzleoffset="-0.9, 1.1,-4" />
+ </Weapon>
+ </WeaponPack>
+ </weaponpacks>
+ <munition>
+ <LaserMunition initialmagazines=2 maxmagazines=2 munitionpermagazine=10 replenishamount=1 replenishinterval=0.5/>
+ </munition>
+ </Drone>
+</Template>
+
+<Template name=dronepickupRepresentation>
+ <PickupRepresentation>
+ <spawner-representation>
+ <StaticEntity>
+ <attached>
+ <Billboard position="0,0,0" colour="0.96,0.35,0.02" material="Sphere2" scale=0.1>
+ <attached>
+ <Model scale="5" mesh="drone.mesh"/>
+ </attached>
+ </Billboard>
+ </attached>
+ </StaticEntity>
+ </spawner-representation>
+ </PickupRepresentation>
+</Template>
+
+<Template name=dronepickup baseclass=DronePickup>
+ <DronePickup representation=dronepickup droneTemplate=droneTemplate />
+</Template>
+
Modified: code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc
===================================================================
--- code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc 2018-05-24 11:43:38 UTC (rev 11981)
+++ code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRace.cc 2018-05-24 11:56:22 UTC (rev 11982)
@@ -141,7 +141,7 @@
c += 3;
}
- std::string message("Use headphones to hear the countdown! It is useful to start with a boost!");
+ std::string message("Use headphones to hear the countdown! Press W for forward acceleration, W+space bar for boost!");
this->getGametypeInfo()->sendAnnounceMessage(message);
ChatManager::message(message);
Modified: code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc
===================================================================
--- code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc 2018-05-24 11:43:38 UTC (rev 11981)
+++ code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.cc 2018-05-24 11:56:22 UTC (rev 11982)
@@ -106,7 +106,7 @@
}
return returnVec;
}
- void SpaceRaceController::endtheGame() const {
+ /*void SpaceRaceController::endtheGame() const {
SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype());
assert(gametype);
if (!gametype)
@@ -113,7 +113,7 @@
return;
gametype->end();
- }
+ }*/
/*
* called from 'findStaticCheckpoints'
* return how many ways go from the given Checkpoint to the last Checkpoint (of the Game)
@@ -185,7 +185,7 @@
}
}
- if(minNextRaceCheckPoint == nullptr) {endtheGame(); orxout()<<"nullptr found @181 SpaceRaceController" << endl;}
+ if(minNextRaceCheckPoint == nullptr) { orxout()<<"nullptr found @181 SpaceRaceController" << endl;}
return minNextRaceCheckPoint;
}
@@ -251,13 +251,13 @@
//conclusion: index=20 is not
if (checkpoint->getCheckpointIndex() == index){
//if(checkpoint == nullptr) orxout()<<"returned nullptr @line 234 SpaceRaceController"<<endl;
- orxout()<< "index of the checkpoint "<< index <<endl;
+ //orxout()<< "index of the checkpoint "<< index <<endl;
res = checkpoint;
return res;
}
}
- if(index>2 )
- this->endtheGame();
+ /* if(index>2 )
+ this->endtheGame();*/
return res;
}
Modified: code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.h
===================================================================
--- code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.h 2018-05-24 11:43:38 UTC (rev 11981)
+++ code/branches/RacingBots_FS18/src/modules/gametypes/SpaceRaceController.h 2018-05-24 11:56:22 UTC (rev 11982)
@@ -57,7 +57,7 @@
float distanceSpaceshipToCheckPoint(RaceCheckPoint*);
RaceCheckPoint* nextPointFind(RaceCheckPoint*);
RaceCheckPoint* adjustNextPoint();
- void endtheGame() const;
+ //void endtheGame() const;
std::vector<RaceCheckPoint*> findStaticCheckpoints(RaceCheckPoint*, const std::vector<RaceCheckPoint*>&);
std::vector<RaceCheckPoint*> staticCheckpoints();
More information about the Orxonox-commit
mailing list