Author Topic: Disabling brick ownership  (Read 1961 times)

If there isn't already a way to do this, I need a script that disables brick ownership completely. I'm hosting a dedicated server, and I have a problem with item/vehicle spawns stop functioning in mini-game after the builder leaves, so I'd like it if the hosting computer could take over all bricks somehow.

Trigun knows about this stuff, try PMing him.

There are a few ways you can do this. The best way would probably be to re-assign existing bricks into your brick group when the owner leaves, however if they don't have your build trust they won't be able to build on them when they get back which would suck. Depending on how many bricks they have, this may also cause a little bit of lag when the player leaves.

Second option is to assign bricks directly to your brickgroup on placement which probably is a less efficient method. So I assume you'd like to go with the first option, If so i can whip something up pretty quick.

The way Trigun had it is the bricks are actually owned by a brickgroup that belongs to no real player.

Thats not really going to be very secure, if Jorgur wanted a system like that, he'd set the public domain timeout to 0 or something.

Would the $trustlevel::something variables be useful in this?

Ephi, it had a fake ID, so people needed trust which is given by an admin, to build, break, etc.
Since it was also the owner of the minigame, no one needed trust to use vehicles and such.

An important thing to note is that I (the Super Admin, but technically not the host) should be able to leave the game, meaning the bricks can't be assigned to me. If the dedicated server has it's own ID (it can own bricks without being a player), then I'm probably going with Ephi's first suggestion. If bricks can only be assigned to an actual player, then this "fake ID" might be a thing.

By the way, I'd like to be able to change the brick ownership (at least of my own bricks) by a chat command as well as when I leave.

Quote
it had a fake ID, so people needed trust which is given by an admin, to build, break, etc.
This would be nice, that people could build on the bricks if they had the trust of any admin.
« Last Edit: October 03, 2008, 02:56:29 AM by Jorgur »

You've left the server before and we've been able to use your bricks, is that part of the default minigame thing?

you could always save the build with Save Ownership unchecked, then reload it. and all the bricks will be under your group. I believe.

You've left the server before and we've been able to use your bricks, is that part of the default minigame thing?

For the default minigame system, I assigned the brickgroup of the minigame's owner and the minigame's owner to the minigame itself so that it would always register the bricks the owner made as 'Included' and usable. (Use All Players' Bricks was foced on in a default minigame)

This doesn't seem to work in my TDM port...

Are you using the Default Minigame button in the TDM menu or Aloshi's /command?

The button....hold on for a minute while I test it again...

Ok, I did a test and I found out that the dedicated minigame button works almost fine.
When a non-admin player builds something, and leaves all of his item spawns will still work except for grenade spawns, and possibly some more.
Anyway, when I, the super admin built and left, all item spawns seemed to work normally.

I'm also I little sad about not being able to change the mini-game color from green, but that's just minor.


Conclusion:
I can leave the game, if I take over ownership of bricks with destroy -> load without brick ownership beforehand.
If I do not do this, the grenade spawns will stop working after the builder leaves (given I'm using Default Minigame). I'm not sure if this is only in v9, but I doubt it a little.

I could really use a quick fix to this problem, so grenade spawns would work normally even when the non-admin player who built it leaves the game.
« Last Edit: October 04, 2008, 09:47:25 AM by Jorgur »