Author Topic: Simplified/Limited Vehicle Spawn Brick  (Read 1327 times)

Let's say you're hosting a racing minigame or gamemode, but you want to allow players to select the vehicle and it's color easier, I thought of the following, a modified vehicle spawn brick with a custom UI, that allows only the car selected by the gamemode/host in the list, with that the player can't choose something that is not fitting for the race (Example: You can event the brick choosing which vehicles can be spawned in, the ones which aren't chosen won't show up in it) And a button for Color, choosing a color from the colorset of the server, and maybe if possible, allowing the player to use the RGB Sliders to create a color for the car, once it's done he press Spawn and the vehicle is ready to use.

If possible I'll try to make a UI concept in here later, but I saw that guy who wanted to make an updated version of the speedkart gamemode, and I believe having this as an option would simplify things, so you don't have to event every single button and color bar on that wall next to you incase you want to add more karts. (I did that before when I hosted the speedkart gamemode with one new kart, and it was hell to event every single brick, in every single spawn, in every single track, just to add an extra kart)
« Last Edit: December 08, 2016, 09:40:14 AM by Filipe »

This would be very helpful for those of us (including myself) who have tried to make a racing minigame yet have absolutely no idea how to get a certain set of vehicles in a gamemode. For example, I was going to host a Dirt 3 style game of infection (this was before I had Dirt 3 and even before I found out my computer doesn't do well with Dirt 3 multiplayer) and I was going to use some rally cars, the Fiesta (that you made) and one other one I can't remember the name of.

However I was going to try and get the vehicles into the gamemode (as I was done with messing around with the map) but I couldn't figure out how to get the cars into the gamemode. So as I said earlier, this would be brilliant for those who don't know the first thing about eventing (me).

As for how you would execute this idea is far beyond me and you probably get a more helpful response from maybe a scripter. I would like to ask how big would the bricks be? And would there be different sizes? You know like the 2x2 vehicle spawn brick (I don't remember the pack for it) and other sizes from the regular vehicle spawner.

Oh yes I forgot to tell, the player can open the menu of the brick by clicking it, and if he wrench it, the events button will be unlocked allowing the player to modify it, that is useful so we don't have to give wrenches to everybody in the minigame or the gamemode.

Also the brick should be the same size of the normal one, and maybe a smaller one too just incase.
« Last Edit: December 09, 2016, 09:06:40 AM by Filipe »

probably just make it an output event

input > self > addVehicleMenu [vehicle]

then that would have a dropdown of the different vehicles
stacking multiple together would add more vehicles to the menu that comes up

then the rest would be handled in the output event, pushing the GUI to the client (or if they don't have it, text based selection?), which would have the list of vehicles and the color sliders


it'd be nicer if the [vehicle] was a list with checkboxes, but I don't think that'd be easy to implement

What if you just did it in a hacky way, use that event idea, show the normal vehicle spawn menu, if a player tries spawning a vehicle that is not allowed just add a message telling them that. Something similar to how /boombox, /stereo, and /setmusic does their thing with the music gui.

Maybe on top of that, enable the paint can and let people color their vehicle completely making the annoying speedkart spawn areas uneeded.

This wouldn't require any client mod as a result I think.


EDIT: I'm making progress on this. Hopefully I'll have it ready soon :)

EDIT2: It's done. I didn't to anything with colors though, that'll have to be a separate add-on. I'm thinking it should be just simply spraying the vehicle with a paintcan, but bypassing trust. I'll make a topic for the speedkart selector real soon.

EDIT3: https://forum.blockland.us/index.php?topic=305521
« Last Edit: December 10, 2016, 04:52:48 PM by Crispy_ »

What if you just did it in a hacky way, use that event idea, show the normal vehicle spawn menu, if a player tries spawning a vehicle that is not allowed just add a message telling them that. Something similar to how /boombox, /stereo, and /setmusic does their thing with the music gui.

Maybe on top of that, enable the paint can and let people color their vehicle completely making the annoying speedkart spawn areas uneeded.

This wouldn't require any client mod as a result I think.


EDIT: I'm making progress on this. Hopefully I'll have it ready soon :)

EDIT2: It's done. I didn't to anything with colors though, that'll have to be a separate add-on. I'm thinking it should be just simply spraying the vehicle with a paintcan, but bypassing trust. I'll make a topic for the speedkart selector real soon.

EDIT3: https://forum.blockland.us/index.php?topic=305521
Well it's very incomplete compared to what I originally suggested but thanks anyway
« Last Edit: December 11, 2016, 08:04:10 PM by Filipe »

It forces players to only spawn speedkarts, and I've made a new server script that lets players color the karts. Should be good now.

https://forum.blockland.us/index.php?topic=305570.0

I will not make a special UI because that requires client mods.