The modter build restriction works great for gamemodes with public bricks. So if you make a map like my toystore it now functions like a classic interior map.
It would be great to see more ModTer-based maps be created, especially with the release of the restriction script. =) There were at least two or more others made a while back as well.
Does the ModTer restriction prevent you from building in Zone Bricks or Water bricks?
It currently only supports ModTer, but it can easily be modified to support zones and water bricks.
if(!isObject(%tmpBr = %client.player.tempbrick))
return;
ffs, stop this. Just because the temp brick does not exist, does not necessarily mean the function should do nothing.
If you want this to support bricks planted by the duplicator and other building tools, you should package FxDtsBrick::plant(this) instead. If it shouldn't be placed, don't call the parent and return 1.
The build restriction add-on was made before the package for PTG was finalized, and that I simply forgot to update the build restriction package to adopt the fix included with PTG. Also, there's no reason to change the packaged function from "SERVERCMDPlantBrick" to "fxDtsBrick::onPlant" or "fxDtsBrick::Plant". Lord Tony requested for the brick not to be planted and then destroyed if it fails the restriction - for various reasons, which does work better.
The actual brick is created and exists before "fxDtsBrick::onPlant" and "fxDtsBrick::Plant" are called, so using "SERVERCMDPlantBrick" works just fine prior to having the brick exist. Also, calling the parent and terminating the function for "SERVERCMDPlantBrick" (if the temp brick doesn't exist) should allow both add-ons to work just fine.