Author Topic: Breakable Bricks (V6) [Baseplates, Cubes & Rounds]  (Read 12549 times)

-snip-

I would have added recombinatorial capability, except that you quickly get into the realm of brickloss. It's not (easily) possible to know what the best combination is (AKA: lowest brickcount) without ending up bringing most servers to their knees. Trench Digging did it the best way possible, for instance, and yet you can still end up with it recombining bricks in ways that just won't work.

I would have added recombinatorial capability, except that you quickly get into the realm of brickloss. It's not (easily) possible to know what the best combination is (AKA: lowest brickcount) without ending up bringing most servers to their knees. Trench Digging did it the best way possible, for instance, and yet you can still end up with it recombining bricks in ways that just won't work.

Right, forgot trench mod still messes up brick combinations. I guess we'll just have to use this sparingly. Is there anyway we could use this for custom bricks, such as the vertical plates?

Yes. The only requirements are that your brick datablock has "breakableBrick" set to one and a "breakAt" function to split it.

Code: (Breakable 1x1) [Select]
datablock fxDtsBrickData(brickBreakable1x1Data : brick1x1Data)
{
breakableBrick = 1;
category = "Breakable";
subcategory = "1x";
uiName = "1x1 Breakable";
};

function brickBreakable1x1Data::breakAt(%data, %brick, %pos)
{
breakBrick(%brick, brickBreakable1x1fData.getID(), "0 0 -0.2\t0 0 0\t0 0 0.2", %pos);
}

The breakBrick function is designed to be able to easily split up a brick into other bricks.
breakBrick(%brickToSplit, %splitData, %relativeBrickPosList, %splitPos);
The %splitPos is used to split the %splitData again.

Alright, thanks.

Also, what about that fakekill part I talked about? I'm not sure if it's possible, since the brick would have to break apart into 3 plates before you shot it, and then the plate you shot would be fakekilled by the projectile, and then before it respawned the brick, it would be destroyed permanently. Is there another way that would be possible?

Oh so these are custom bricks, I was expecting a sort of hacky mod that turns all bricks into breakable bricks.

Holy stuff nostalgia. My buddy Meelo on ROBLOX made something like this years ago and it was the stuff. This'll hopefully be just as fun to play around with, good work~

Holy stuff nostalgia. My buddy Meelo on ROBLOX made something like this years ago and it was the stuff. This'll hopefully be just as fun to play around with, good work~

>teacher
>playing roblox

brb killing self


I enabled it but I cant find it in the brick menu. Where is it?
« Last Edit: July 27, 2012, 03:01:20 PM by Mr Man »

Well forget.
This sounds amazing, yet for some reason, I put it in my addons folder, and it just didn't work.
I start a game, and even though i've enabled it, for some reason it doesn't show up anywhere under any of the categories. :/

It only works in mini
Also it use Default bricks in plates and bricks

I enabled it but I cant find it in the brick menu. Where is it?

Same problem. :(

It only works in mini
Also it use Default bricks in plates and bricks

I opened a minigame,
allowed building and everything else,
made sure its enabled in addons.
Used defualt bricks, shot then with default gun.
Still.
Nothing.
WTF MAN.

>teacher
>playing roblox
brb killing self
here i am playing blockland too right now
what