Author Topic: Build To Survive - GUI on display  (Read 4926 times)

The temporary client

Description
This is a survival-based mod centred around teamwork and free building.
The goal is to build yourself a base and hide in it from a selection of random disaster scripts that I wrote on the toilet.

You get points for surviving, and lose all of these points either upon dying or upon the server crashing due to a pure virtual function call. Build something sturdy - when a brick is blown up in this mode, it is permanently destroyed.

Some GUI



Screenshots of people's terrible bases







Extensibility
There's a cool system for adding your own disasters.
Code: [Select]
function rocketDisaster() {
    // spawn rocket in relation to a player 100 TUs above them with random offset
    %clientCount = ClientGroup.getCount();
    if(%clientCount > 0) {
        %client = ClientGroup.getObject(getRandom(0, %clientCount-1));
        
        %player = %client.player;
        
        if(isObject(%player)) {
            %playerPos = %player.getPosition();
            %rocketBaseSpawnPos = vectorAdd(%playerPos, getRandom(-100, 100) SPC getRandom(-100, 100) SPC getRandom(50, 140));
            
            %proj = new projectile() {
                datablock = CannonBallProjectile;
                
                initialposition = %rocketBaseSpawnPos;
                initialvelocity = getRandom(-10, 10) SPC getRandom(-10, 10) SPC -40;
                
                client = %client;
            };
            
            %scaleFac = getRandomF(0, 3.5);
            
            %proj.setScale(%scaleFac SPC %scaleFac SPC %scaleFac);
            missionCleanup.add(%proj);
        }
    }
    
    $Disasters::CurrentDisasterLoop = schedule(1000, 0, rocketDisaster);
}

registerDisaster("A Barage Of Meteorites", 40, "rocketDisaster");
« Last Edit: December 14, 2015, 10:47:43 AM by chrisbot6 »

is there a time limit as to how long before you get massacred by bullets/lava/horses/zombies/yourmom/badspot/toilets/somethingdeadly while you're building something?


is there a time limit as to how long before you get massacred by bullets/lava/horses/zombies/yourmom/badspot/toilets/somethingdeadly while you're building something?
yes.

Is it online, and if not do you have an estimate as to when it will be?

Is it online, and if not do you have an estimate as to when it will be?
tomorrow evening.

hmmm interesting.......

sounds extremely cool, but you probably should disable Brick_LargeCubes

sounds extremely cool, but you probably should disable Brick_LargeCubes
And ModTer

Server's been up again.

Today's grand total for pure virtual function call crashes: 8
« Last Edit: December 10, 2015, 04:36:25 PM by chrisbot6 »

Are we allowed to buildbot forts? I was kinda ticked when the acid rain single-handedly destroyed my entire fort

Server's been up again.

Today's grand total for pure virtual function call crashes: 8
downgrade to r1967

downgrade to r1967
Seems to be the only solution to take away the pure virtual calls.

Seems to be the only solution to take away the pure virtual calls.
or update, now that it's fixed