[7648] | 1 | <LevelInfo |
---|
| 2 | name = "Presentation XI" |
---|
| 3 | description = "1st Presentation level for Orxonox Convention XI" |
---|
| 4 | tags = "presentation" |
---|
| 5 | /> |
---|
| 6 | |
---|
[7027] | 7 | <?lua |
---|
| 8 | include("stats.oxo") |
---|
[7679] | 9 | include("HUDTemplates3.oxo") |
---|
[7027] | 10 | ?> |
---|
| 11 | |
---|
| 12 | <?lua |
---|
[7679] | 13 | include("templates/lodInformation.oxt") |
---|
| 14 | include("templates/spaceshipAssff.oxt") |
---|
| 15 | include("templates/spaceshipPirate.oxt") |
---|
| 16 | include("templates/spaceshipSwallow.oxt") |
---|
| 17 | include("templates/pickupRepresentationTemplates.oxt") |
---|
[7027] | 18 | ?> |
---|
| 19 | |
---|
| 20 | <Level |
---|
| 21 | name = "Sample" |
---|
[7102] | 22 | description = "Just a few tests" |
---|
[7099] | 23 | gametype = TeamDeathmatch |
---|
[7027] | 24 | > |
---|
[7046] | 25 | <templates> |
---|
| 26 | <Template link=lodtemplate_default /> |
---|
| 27 | </templates> |
---|
[8706] | 28 | <?lua include("includes/notifications.oxi") ?> |
---|
[7046] | 29 | |
---|
[7027] | 30 | <Scene |
---|
| 31 | ambientlight = "0.8, 0.8, 0.8" |
---|
| 32 | skybox = "Orxonox/Starbox" |
---|
| 33 | > |
---|
| 34 | |
---|
| 35 | <?lua |
---|
| 36 | include("includes/pickups.oxi") |
---|
| 37 | ?> |
---|
| 38 | |
---|
| 39 | <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" /> |
---|
[7101] | 40 | <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipswallow /> |
---|
[7027] | 41 | |
---|
[7032] | 42 | <Billboard position="12.5, -30, -500" material="Banners/Pickups" scale="0.5"/> |
---|
[7102] | 43 | <Billboard position="500, -30, -500" material="Banners/Drone" scale="0.5"/> |
---|
| 44 | <EventDispatcher> |
---|
| 45 | <targets> |
---|
| 46 | <EventTarget target=pirate /> |
---|
| 47 | </targets> |
---|
| 48 | <events> |
---|
| 49 | <activity> |
---|
| 50 | <DistanceTrigger position="500, -50, -500" distance=20 target="SpaceShip" stayactive=true /> |
---|
| 51 | </activity> |
---|
| 52 | </events> |
---|
| 53 | </EventDispatcher> |
---|
| 54 | |
---|
| 55 | <Billboard position="1000, -30, -500" material="Banners/Formation" scale="0.5"/> |
---|
| 56 | <Billboard position="1000, -50, -500" material="Examples/Flare" scale="0.5"/> |
---|
| 57 | <EventDispatcher> |
---|
| 58 | <targets> |
---|
| 59 | <EventTarget target=formation /> |
---|
| 60 | </targets> |
---|
| 61 | <events> |
---|
| 62 | <activity> |
---|
| 63 | <DistanceTrigger position="1000, -50, -500" distance=20 target="SpaceShip" stayactive=true /> |
---|
| 64 | </activity> |
---|
| 65 | </events> |
---|
| 66 | </EventDispatcher> |
---|
| 67 | |
---|
| 68 | <SpaceShip position="500,0,-1500"> |
---|
| 69 | <templates> |
---|
| 70 | <Template link=spaceshippirate /> |
---|
| 71 | </templates> |
---|
| 72 | <controller> |
---|
| 73 | <AIController team=1 active=false name=pirate formationFlight=false passive=false /> |
---|
| 74 | </controller> |
---|
[7099] | 75 | </SpaceShip> |
---|
[7032] | 76 | |
---|
[7102] | 77 | |
---|
| 78 | <?lua |
---|
| 79 | for i = 1, 10, 1 do |
---|
| 80 | ?> |
---|
| 81 | <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> |
---|
| 82 | <templates> |
---|
| 83 | <Template link=spaceshippirate /> |
---|
| 84 | </templates> |
---|
| 85 | <controller> |
---|
| 86 | <AIController formationFlight=true passive=true team=0 name=formation active=false /> |
---|
| 87 | </controller> |
---|
| 88 | </SpaceShip> |
---|
| 89 | <?lua end ?> |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | <?lua |
---|
| 93 | for i = 1, 10, 1 do |
---|
| 94 | ?> |
---|
| 95 | <SpaceShip position="<?lua print(5000 + math.random() * 4000 - 2000) ?>,<?lua print(0 + math.random() * 2000 - 1000) ?>,<?lua print(math.random() * 2000 - 1000) ?>"> |
---|
| 96 | <templates> |
---|
| 97 | <Template link=spaceshipassff /> |
---|
| 98 | </templates> |
---|
| 99 | <controller> |
---|
| 100 | <AIController formationFlight=true passive=true team=1 name=formation active=false/> |
---|
| 101 | </controller> |
---|
| 102 | </SpaceShip> |
---|
| 103 | <?lua end ?> |
---|
| 104 | |
---|
[7099] | 105 | <PickupSpawner position="500,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> |
---|
[7042] | 106 | <pickup> |
---|
| 107 | <DronePickup template=dronepickup /> |
---|
| 108 | </pickup> |
---|
| 109 | </PickupSpawner> |
---|
| 110 | |
---|
[7027] | 111 | <!-- Shield pickups --> |
---|
| 112 | |
---|
| 113 | <PickupSpawner position="-25,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> |
---|
| 114 | <pickup> |
---|
| 115 | <ShieldPickup template=hugeshieldpickup /> |
---|
| 116 | </pickup> |
---|
| 117 | </PickupSpawner> |
---|
| 118 | |
---|
| 119 | <!-- Health pickups --> |
---|
| 120 | |
---|
[7096] | 121 | <PickupSpawner position="0,-75,-500" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> |
---|
[7027] | 122 | <pickup> |
---|
| 123 | <HealthPickup template=hugehealthpickup /> |
---|
| 124 | </pickup> |
---|
| 125 | </PickupSpawner> |
---|
| 126 | |
---|
| 127 | <!-- Speed pickups --> |
---|
| 128 | |
---|
[7096] | 129 | <PickupSpawner position="25,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> |
---|
[7027] | 130 | <pickup> |
---|
| 131 | <SpeedPickup template=hugespeedpickup /> |
---|
| 132 | </pickup> |
---|
| 133 | </PickupSpawner> |
---|
| 134 | |
---|
[7096] | 135 | <PickupSpawner position="50,-50,-500" triggerDistance="10" respawnTime="10" maxSpawnedItems="99"> |
---|
[7027] | 136 | <pickup> |
---|
| 137 | <SpeedPickup template=smalljumppickup /> |
---|
| 138 | </pickup> |
---|
| 139 | </PickupSpawner> |
---|
| 140 | |
---|
| 141 | <!-- Invisible pickups --> |
---|
| 142 | |
---|
[7096] | 143 | <PickupSpawner position="0,-50,-500" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"> |
---|
[7027] | 144 | <pickup> |
---|
| 145 | <InvisiblePickup template=hugeinvisiblepickup /> |
---|
| 146 | </pickup> |
---|
| 147 | </PickupSpawner> |
---|
| 148 | |
---|
| 149 | <!-- PickupRepresentation for the pickup below, since it is not a standard pickup provided by pickups.oxi --> |
---|
| 150 | <PickupRepresentation |
---|
| 151 | pickupName = "Medium Health Pack" |
---|
| 152 | pickupDescription = "Once used adds a medium amout of health to the ship." |
---|
| 153 | spawnerTemplate = "mediumhealthpickupRepresentation" |
---|
| 154 | inventoryRepresentation = "MediumHealth" |
---|
| 155 | > |
---|
| 156 | <pickup> |
---|
| 157 | <HealthPickup health=50 activationType="onUse" durationType="once" /> |
---|
| 158 | </pickup> |
---|
| 159 | </PickupRepresentation> |
---|
| 160 | |
---|
[7096] | 161 | <PickupSpawner position="25,-75,-500" respawnTime="60" triggerDistance="20" maxSpawnedItems="5"> |
---|
[7027] | 162 | <pickup> |
---|
| 163 | <HealthPickup health=50 activationType=onUse durationType=once /> |
---|
| 164 | </pickup> |
---|
| 165 | </PickupSpawner> |
---|
| 166 | |
---|
| 167 | </Scene> |
---|
| 168 | </Level> |
---|