FAQ  •  Register  •  Login

RET - Retrievix - CrazyLinuxNerd - 2/25 Players

<<

CrazyLinuxNerd

User avatar

Posts: 40

Joined: Mon Feb 07, 2011 4:43 pm

Location: England

Post Sun Oct 30, 2011 2:51 am

RET - Retrievix - CrazyLinuxNerd - 2/25 Players

Hey guys!

Right, this map was made a long time ago, and it would seem I forgot to release it! Good job too though, the level gen script wasn't exactly in good condition when I left it, I'm surprised the level was still working on my server... but non-the-less I've fixed it and level is fully functional. I also changed a few things, added a bit more randomitiys (is that a word?). So it's not exactly the same as v0.3 that you have all used :-). I've also included an option in the level gen to disable asteroids. This is handy for those of you who do not like them.

Please be aware, the levelgen script is required, and the level will be unusable without it.

--
NOTE
--
For those unaware of how to disable the asteroids.. open the levelgen file in your favourite editor, find "Asteroids = 1". Change to 0 for no asteroids, and change to 1 to enable asteroids.

--
Details:
--
Type: RET
Name: Retrievix
Version: 1.0
Levelgen Script: retrievix.levelgen
Levelgen Version: 1.1
Gametime: 10:00
Score to Win: 15
Min Players: 2
Max Players: 25
Engineer: No
Tested with:
Latest Bitfighter as of 30/10/11

retrievix.level:
  Code:
RetrieveGameType 10.000 15
LevelName Retrievix
LevelDescription Hint: Defend the flags you capture
LevelCredits CrazyLinuxNerd
Script retrievix.levelgen
GridSize 155
MinPlayers 2
MaxPlayers 25
Specials
Team Blue 0 0 1
Team Red 1 0 0
BarrierMaker 50 -25 -22  -25 -2  -7 -2  -7 -22.5  -25 -22.5  -25 -15
BarrierMaker 20 -11 -22.5  -11 -20  -12 -19.5  -14 -19.5
BarrierMaker 20 -21 -22.5  -21 -20  -20.5 -19.5  -18 -19.5
BarrierMaker 20 -15 -19.5  -17 -19.5
BarrierMaker 20 -21 -21.2  -20.4 -21.2  -20.2 -21.3
BarrierMaker 20 -19.9 -21.5  -19.8 -21.6  -19.8 -22.5
BarrierMaker 40 -25 -18  -16.4 -18
BarrierMaker 40 -7 -17  -9.5 -17
BarrierMaker 40 -25 -16  -16.5 -16
BarrierMaker 40 -15.5 -18  -7 -18
BarrierMaker 40 -22.5 -17  -25 -17
BarrierMaker 40 -10.5 -17  -21.5 -17
BarrierMaker 40 -15.5 -16  -15.5 -16  -7 -16
BarrierMaker 20 -11 -2  -11 -4.5  -12 -5  -14 -5
BarrierMaker 20 -21 -2  -21 -4.5  -20.5 -5  -18 -5
BarrierMaker 20 -15 -5  -17 -5
BarrierMaker 20 -21 -3.3  -20.4 -3.3  -20.2 -3.2
BarrierMaker 20 -19.9 -3  -19.8 -2.9  -19.8 -2
BarrierMaker 40 -25 -6.5  -16.4 -6.5
BarrierMaker 40 -7 -7.5  -9.5 -7.5
BarrierMaker 40 -25 -8.5  -16.5 -8.5
BarrierMaker 40 -15.5 -6.5  -7 -6.5
BarrierMaker 40 -22.5 -7.5  -25 -7.5
BarrierMaker 40 -10.5 -7.5  -21.5 -7.5
BarrierMaker 40 -15.5 -8.5  -15.5 -8.5  -7 -8.5
BarrierMaker 30 -15 -9.5  -15 -10.5  -17 -10.5
BarrierMaker 30 -17 -15  -17 -14  -15 -14
BarrierMaker 30 -18.5 -11  -19.5 -10.5
BarrierMaker 30 -22 -12  -21.5 -11.5
BarrierMaker 30 -23 -15  -24 -14
BarrierMaker 30 -19 -15  -21 -13.5
BarrierMaker 30 -13.5 -13  -11.5 -11
BarrierMaker 30 -9.5 -14  -11.5 -12.5
BarrierMaker 30 -8.5 -11.5  -10 -9.5
BarrierMaker 30 -15 -13  -17 -11.5
BarrierMaker 30 -9 -15.5  -8 -13.5
BarrierMaker 30 -14 -10.5  -11.5 -9.5
BarrierMaker 30 -11.5 -15  -12.5 -13.5
BarrierMaker 30 -20 -13  -18.5 -12
BarrierMaker 30 -24 -11  -22.5 -9.5
BarrierMaker 50 -17.5 -22.5  -17.5 -24  -14.5 -24  -14.5 -22.5
GoalZone 0 -17 -22  -16.5 -22  -16.5 -21.5  -17 -21.5
GoalZone 0 -15.5 -22  -15 -22  -15 -21.5  -15.5 -21.5
GoalZone 0 -15.5 -20.6  -15 -20.6  -15 -20.1  -15.5 -20.1
GoalZone 0 -17 -20.6  -16.5 -20.6  -16.5 -20.1  -17 -20.1
GoalZone 0 -16.2 -21.3  -15.7 -21.3  -15.7 -20.8  -16.2 -20.8
LoadoutZone 0 -20.9355 -22.3387  -19.8645 -22.3387  -19.8645 -21.6267  -19.9456 -21.5456  -20.2289 -21.3577  -20.4152 -21.2645  -20.9355 -21.2645
GoalZone 1 -17 -2.5  -16.5 -2.5  -16.5 -3  -17 -3
GoalZone 1 -15.5 -2.5  -15 -2.5  -15 -3  -15.5 -3
GoalZone 1 -15.5 -3.9  -15 -3.9  -15 -4.4  -15.5 -4.4
GoalZone 1 -17 -3.9  -16.5 -3.9  -16.5 -4.4  -17 -4.4
GoalZone 1 -16.2 -3.2  -15.7 -3.2  -15.7 -3.7  -16.2 -3.7
LoadoutZone 1 -20.9355 -2.16129  -19.8645 -2.16129  -19.8645 -2.87328  -19.9456 -2.95438  -20.2289 -3.14229  -20.4152 -3.23548  -20.9355 -3.23548
Teleporter -11.8 -21.7  -7.5 -22
Teleporter -11.8 -2.8  -7.5 -2.5
TextItem -1 -17.2 -23.5  -16.2 -23.5  38 Retrievix
TextItem -1 -16 -23.1  -14.7 -23.1  20 By CrazyLinuxNerd
Spawn 0 -20.5 -20
ForceFieldProjector 0 -17 -19.5  0
ForceFieldProjector 0 -15 -19.5  0
Spawn 1 -20.5 -4.5
ForceFieldProjector 1 -17 -5.00002  0
ForceFieldProjector 1 -15 -5.00001  0
ForceFieldProjector -1 -16.5 -8.50002  0
ForceFieldProjector -1 -22.5 -7.50002  0
ForceFieldProjector -1 -10.5 -7.50001  0
ForceFieldProjector -1 -16.4 -6.50002  0
ForceFieldProjector -1 -16.4 -18  0
ForceFieldProjector -1 -22.5 -17  0
ForceFieldProjector -1 -10.5 -17  0
ForceFieldProjector -1 -16.5 -16  0
Turret -1 -16 -2.161  0
Turret -1 -16 -22.338  0
Turret -1 -15.9995 -10.403  0
Turret -1 -16 -14.096  0
Turret -1 -7.161 -12.4997  0
Turret -1 -24.838 -12.5  0
Spawn 0 -12 -20
Spawn 1 -12 -4.5
Turret -1 -13.5 -5.064  0
Turret -1 -18.5 -5.064  0
Turret -1 -13.5 -19.435  0
Turret -1 -18.5 -19.435  0
Spawn 0 -19 -22
Spawn 1 -19 -3


retrievix.levelgen:
  Code:
Asteroids = true;
scriptactive = true;

dev = false;

sdev = false;

scriptinfo = true;


FlagSpawn = math.random(2)

RandomizeSpecialItems = math.random(0, 4)







function lvlinfo()

    if(dev) then

        levelgen:addItem("TextItem", -1, -16.4, -23.3,  -15.4, -23.3,  25, "Version 1.0dev")

        levelgen:addItem("TextItem", -1, -16, -23,  -15, -23,  11, "Warning: This version of")

        levelgen:addItem("TextItem", -1, -16, -22.9,  -14.8, -22.9,  12, "the Level is a dev version")

        levelgen:addItem("TextItem", -1, -16, -22.8,  -14.7, -22.8,  11, "and may contain bugs, and be")

        levelgen:addItem("TextItem", -1, -16, -22.7,  -15.2, -22.7,  10, "updated at any Point!")

    else

        levelgen:addItem("TextItem", -1, -16.4, -23.3,  -15.4, -23.3,  25, "Version 1.0")

    end



    if(scriptinfo) then

        levelgen:addItem("TextItem", -1, -17.3, -23,  -16.3, -23,  14, "LevelGen Informaton:")

        levelgen:addItem("TextItem", -1, -17.3, -22.9,  -16.4, -22.9,  11, "Name: Retrievix Script")

        if(sdev) then

            levelgen:addItem("TextItem", -1, -17.3, -22.8, -16.8, -22.8,  12, "Version: 1.1dev")

        else

            levelgen:addItem("TextItem", -1, -17.3, -22.8,  -16.8, -22.8,  12, "Version: 1.1")

        end

    end



    if not (Asteroids) then

        levelgen:addItem("TextItem", -1, -16.1396, -23.5,  -14.8, -23.5,  27, "(No Asteroids)")

    end

end



if (scriptactive) then

    lvlinfo()

   

    if(FlagSpawn == 2) then

        levelgen:addItem("FlagItem", -1, -23.6, -14.7)

        levelgen:addItem("FlagItem", -1, -23.5, -10)

        levelgen:addItem("FlagItem", -1, -17.5, -12.5)

        levelgen:addItem("FlagItem", -1, -8, -15)

        levelgen:addItem("FlagItem", -1, -8.5, -10.5)

    else

        levelgen:addItem("FlagItem", -1, -11.5, -14)

        levelgen:addItem("FlagItem", -1, -12, -12)

        levelgen:addItem("FlagItem", -1, -23, -10.5)

        levelgen:addItem("FlagItem", -1, -15.5, -12)

        levelgen:addItem("FlagItem", -1, -20.5, -14.5)

    end

   

    if(RandomizeSpecialItems == 2) then

        levelgen:addItem("EnergyItem", -7.5, -8,  20)

        levelgen:addItem("EnergyItem", -7.5, -18.5,  20)

        levelgen:addItem("RepairItem", -19.6, -22.2,  20)

        levelgen:addItem("RepairItem", -19.6, -2.3,  20)

        levelgen:addItem("EnergyItem", -7.5, -6,  20)

        levelgen:addItem("RepairItem", -24.5, -7, 20)

        levelgen:addItem("EnergyItem", -24.5, -17.5,  20)

        levelgen:addItem("RepairItem", -7.5, -17.5,  20)

    elseif(RandomizeSpecialItems == 3) then

        levelgen:addItem("EnergyItem", -7.5, -7,  20)

        levelgen:addItem("EnergyItem", -24.5, -18.5,  20)

        levelgen:addItem("RepairItem", -19.6, -22.2,  20)

        levelgen:addItem("RepairItem", -19.6, -2.3,  20)

        levelgen:addItem("EnergyItem", -24.5, -6,  20)

        levelgen:addItem("RepairItem", -24.5, -8,  20)

        levelgen:addItem("EnergyItem", -7.5, -16.5,  20)

        levelgen:addItem("RepairItem", -24.5, -17.5,  20)

    elseif(RandomizeSpecialItems == 4) then

        levelgen:addItem("EnergyItem", -7.5, -15.5,  20)

        levelgen:addItem("EnergyItem", -20.8, -21, 20)

        levelgen:addItem("RepairItem", -19.6, -22.2, 20)

        levelgen:addItem("RepairItem", -19.6, -2.3, 20)

        levelgen:addItem("EnergyItem", -20.8, -3.5,  20)

        levelgen:addItem("RepairItem", -24.5, -15.5,  20)

        levelgen:addItem("EnergyItem", -24.5, -9,  20)

        levelgen:addItem("RepairItem", -7.5, -9,  20)

    else

        levelgen:addItem("EnergyItem", -24.5, -22,  20)

        levelgen:addItem("EnergyItem", -24.5, -2.5,  20)

        levelgen:addItem("EnergyItem", -7.5, -17.5,  20)

        levelgen:addItem("EnergyItem", -24.5, -7,  20)

        levelgen:addItem("RepairItem", -7.5, -7,  20)

        levelgen:addItem("RepairItem", -24.5, -17.5,  20)

        levelgen:addItem("RepairItem", -19.6, -2.3,  20)

        levelgen:addItem("RepairItem", -19.6, -22.2,  20)

    end



    if(Asteroids) then

        levelgen:addItem("AsteroidSpawn", -5.5, -6,  20)

        levelgen:addItem("AsteroidSpawn", -5.5 ,-8.5,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -11,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -13.5,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -16,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -18.5,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -3.5,  20)

        levelgen:addItem("AsteroidSpawn",-5.5, -20.5,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -6.5,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -9,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -11.5,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -14,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -16.5,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -19,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -4,  20)

        levelgen:addItem("AsteroidSpawn",-26.5, -21,  20)

        levelgen:addItem("AsteroidSpawn",-8.5, -0.5,  20)

        levelgen:addItem("AsteroidSpawn",-11.5, -0.5,  20)

        levelgen:addItem("AsteroidSpawn",-14.5, -0.5,  20)

        levelgen:addItem("AsteroidSpawn",-17.5, -0.5, 20)

        levelgen:addItem("AsteroidSpawn",-20.5, -0.5,  20)

        levelgen:addItem("AsteroidSpawn",-23, -0.5,  20)

        levelgen:addItem("AsteroidSpawn",-8.5, -24.5,  20)

        levelgen:addItem("AsteroidSpawn",-11.5, -24.5,  20)

        levelgen:addItem("AsteroidSpawn",-14.5, -24.5,  20)

        levelgen:addItem("AsteroidSpawn",-17.5, -24.5,  20)

        levelgen:addItem("AsteroidSpawn",-20.5, -24.5,  20)

        levelgen:addItem("AsteroidSpawn",-23, -24.5,  20)

        levelgen:addItem("Asteroid", -22.5, -21.5 )

        levelgen:addItem("Asteroid", -23.5, -19.5 )

        levelgen:addItem("Asteroid", -22.5, -3)

        levelgen:addItem("Asteroid", -23.5, -5)

    end

else

        levelgen:addItem("TextItem", -1, -17.3, -23,  -16.3, -23,  14, "LevelGen Disabled!")

end


Changelog:
- v0.3:
-- Original Level... full of bugs etc.
-- Initial levelgen
- v1.0:
-- First release
-- Fixed Turret bug.
-- Added more spawn points
-- Added option to disable asteroids (levelgen)
-- Randomized Energy, and Repair Items (levelgen)
-- Various Code cleanups and bug fixes (levelgen)
-v1.0/v1.1
-- Levelgen Only: Clean up code

Enjoy! :mrgreen:
Last edited by CrazyLinuxNerd on Fri Nov 04, 2011 2:42 pm, edited 2 times in total.
<<

karamazovapy

Posts: 1567

Joined: Tue Feb 23, 2010 7:52 pm

Post Fri Nov 04, 2011 8:46 am

Re: RET - Retrievix - CrazyLinuxNerd - 2/25 Players

The barriers reduce the risk of flag trading in a 5-flag retrieve, but I think I see this one ending 3-2 most games.

Return to Retrieve

Who is online

Users browsing this forum: No registered users and 4 guests