Breakable Bricks
Bricks that break apart when you shoot them!
Breakable Brick Packs:
Modding SupportDOWNLOADChangelogVersion 5Version 4Version 3Version 2Version 1Mirror 1:
Mediafire - Direct Download (Version 6)
Mirror 2:
Mediafire - Spammy Ad Page (Version 6)
This pack contains a breakable version of every default brick in the "Bricks" and "Plates" tabs of the Brick Selector menu.
Except for the prints, of course.
When any of these bricks are hit by any projectile, they'll split apart into smaller breakable bricks.
They will only work if you shoot them or if someone else shoots them in a minigame with Brick Damage enabled.
ChangelogBack to TopVersion 6:
- Breakable resetting added.
- Reset with minigame option added.
- Minigames own explosions and cancel them before resetting breakable bricks.
Version 5:
- Event copying has been added.
- Effects copying has been added.
- createBrick is now deprecated - use breakBrickSpecial instead.
Version 4:
- Breakable bricks are no longer fakekilled by explosions
- Explosion damage can now be scaled - choose from linear or cubic.
- Event explosions and explosive weapons now work correctly.
- Added /cement command and an option to make it admin-only.
- Added /cementAll command - SA/host only.
- Added /clearBreakableBricks command - SA/host only.
Version 3:
- Added optional impact damage - this uses the explosion radius cap.
- Improved explosion calculation so that large explosions don't take hours.
Version 2:
- Fixed an error with the breakable 1x16F brick.
- Added optional explosion damage and an explosion radius cap.
Breakable BaseplatesBack to TopThese are the default baseplates, except breakable.
They're under the Breakable category in the Baseplate tab.
Mirror 1:
Google - Direct DownloadMirror 2:
Mediafire - Direct DownloadMirror 3:
Mediafire - Spammy Ad PageBreakable CubesBack to TopThese are the Large Cubes, except breakable.
They're under the Breakable category in the Baseplate tab.
Mirror 1:
Google - Direct DownloadMirror 2:
Mediafire - Direct DownloadMirror 3:
Mediafire - Spammy Ad PageBreakable RoundsBack to TopThese are some of the Rounds, except breakable.
They're under the Breakable category in the Rounds tab.
Mirror 1:
Google - Direct DownloadMirror 2:
Mediafire - Direct DownloadMirror 3:
Mediafire - Spammy Ad PageModding SupportBack to TopMaking a brick breakable is easy. Breaking it up isn't always as simple.
Here's what you need to have.
datablock fxDtsBrickData(brickXData)
{
breakableBrick = 1;
unbreakableEquiv = "brickYData"; //If brickYData doesn't exist, don't worry. It won't break anything.
};
function brickXData::breakAt(%data, %brick, %breakAtPos)
{
//Breaking code here
//There are two functions you can use. One is the premade breakBrick:
//breakBrick(%brick, %breakIntoData, %relativePosList, %breakAtPos, %angleID);
//breakBrickSpecial(%brick, %data, %breakAtPos); (V5's replacement for createBrick)
//The %data is a tab-delimited list of the following data.
//...%angleID TAB %breakIntoData SPC %relativePosItem SPC %angleID TAB %breakintoData...
//
//createBrick(%brick.getGroup(), %breakIntoData, %placePos, %colorID, %angleID); (Deprecated)
//Don't worry about whether or not these functions exist. They're all part of the mod,
//so either they'll already exist or your ::breakAt function will never be called.
}
Here's an example for you.
datablock fxDtsBrickData(brickBreakable1x1Data : brick1x1Data)
{
breakableBrick = 1;
category = "Breakable";
subcategory = "1x";
uiName = "1x1 Breakable";
unbreakableEquiv = "brick1x1Data";
};
function brickBreakable1x1Data::breakAt(%data, %brick, %pos)
{
breakBrick(%brick, brickBreakable1x1fData.getID(), "0 0 -0.2\t0 0 0\t0 0 0.2", %pos);
}