Author Topic: Buildable vehicles that wouldn't lag.  (Read 4339 times)

I'd like to say it is possible to build your own vehicles but they would have to be DTS objects. I sort of spoke to Kaje on this when he made that lego car base.

If you can find a way to make a lego car base and script it to mount special DTS bricks you will be able to make this possible.





Since people will be building their own cars they would probably prefer their own mount points. If you could model this brick chair and include a mount point on it whenever you plant this chair on a car base the player will be able to sit on it. (in the order it was placed) RTB or TBM had a similiar system where you could mount yourself on a brick chair.



Through console commands you could be able to do things like mount a tank cannon to a jeep. If you had specially scripted bricks this could had been taken care of without the need for the console.

You may need to label each stud as a mount point so try not to make big car bases.
« Last Edit: April 15, 2012, 08:33:42 PM by Lord Tony³ »




I do love the mount point idea thing.
/support


I don't know how to script or model but still /support anyway

The way Truce did it is essentially the only way to do it.

How it works:
- You plant a bunch of bricks and the car base and whatever.
- It then grabs all the attached bricks (as in the Duplicator) and saves their relative positions then creates a DTS shape for each brick, and removes the actual bricks.
- The positions are then preserved relative to the vehicle's position and rotation manually using a scheduled tick.

This is the only way to do fully buildable vehicles. There's literally three places here that 95% of the community yells lag at the very mention of (duplicator, DTS shapes, schedules) so that might be a bit of a red flag aye


The way this would be done (I think) if it were implemented in the engine would be localized octrees. So when you plant a brick onto the car it's loaded into the car's octree rather than the global one we build on normally, and when the car moves it's all relative to the car. Essentially like building a single model out of the bricks, or shape compositing or whatever else you'd like to call it. It'd be a hell of a lot of work.

And then there's the issue of complex collision shapes - unless we move fully over to Bullet physics the collisions will be a huge overhead unless it generates approximate shapes which has potential to be buggy as forget. Even then I'm not sure Bullet plays nice with non-convex-hulls so if you had a vehicle shaped like a U the empty part between the tails might be physically solid unless it uses multiple collision shapes.

There's a stuffload of issues no matter how you do it, and several metric forgettonnes of work.

I did this once.
My math was just so off

what about mounting bots that look like bricks to it? similar to the tank turret

what about mounting bots that look like bricks to it? similar to the tank turret

Horse ray.




When you use a horse ray on a tank turret it turns into a horse. Now do that with tiny bot bricks.