Author Topic: Per client item spawn limits  (Read 842 times)

one problem with large base community builds is that people like to spawn items in their build. (fort wars, community RPS, etc)

this wouldn't be a problem if items didn't cause a huge frame drop. especially when you have 40+ users with builds at the same time.

I'm thinking of a script that sets everyone's item limit to 1 (or rtb pref option) and you can give certain people leverage on how many items they can spawn such as /itemlimit trog 5 let's me be able to spawn 5 items

You know there's a per player item limit in advanced settings right

Figure out how that works, increasing the limit for specific clients should be easy

You know there's a per player item limit in advanced settings right

Figure out how that works, increasing the limit for specific clients should be easy
im aware of the per player limit. but I don't want to host a server only allowing people 1 item spawn and not being able to do anything about it

It's possible to do this but it shouldn't be released if doing so because it will most likely do a hack to update the quota objects; although, it depends on how you do this. I have no idea what I was doing here.
« Last Edit: February 22, 2016, 04:23:32 PM by Kyuande »

It's possible to do this but it shouldn't be released if doing so because it will most likely do a hack to update the quota objects; although, it depends on how you do this.
Why would you even think this Viso? You could easily do so and it wouldn't be hacky at all.

I'm obviously doing it wrong then. I remember updating all the variables and it still did not work correctly.

Edit: Now I just figured out how to do this in a very easy way, I really need to stop posting assumes.
« Last Edit: February 22, 2016, 04:26:30 PM by Kyuande »

I'm obviously doing it wrong then.
Well couldn't you just change the global variable? And if not that then you could just package the server command for spawning an item on a brick and prevent the item from spawning if the person has too many items spawned.

will changing the $pref of player item spawn limit ingame update it ingame?

will changing the $pref of player item spawn limit ingame update it ingame?
no. same goes for schedules and projectile limits

Take Pref:: out, that's your result

In my eyes, it's preferable to set an itemCount variable to the client rather than use the prefs because suppose you want every other player to have 1 item but you're spreading items around the map. It would be impossible.

And have that value saved when the client exits the game and reload when it enters to avoid exploit. And I'd say use an int rather than a bool incase you later allow more than 1 item at a time.