Author Topic: Build in Mining mod  (Read 3538 times)

Is it possible to get rid of the, ".03331" so it's just 10.0?
so that you can use the brick gun...
It was a example. Not the real script.

I was just asking. If it was like that, would it be possible to get it so it was only 10.0, and not the 10.03331?

i was on a  mining server it had build tables with food script that makes it possible

Its definately possible to add pre-selected stuff to a mining server.
But allowing a freebuild-like setup wont work.

Im working on something where you can place 4x4 cubes using a custom tool, and eventually build stuff - but its still only the basic 4x4 cubes.

The misalignment occurs when bricks are rotated at 90 or -90 degrees. Or should I say AREN'T rotated at 90 or -90 degrees. They are actually rotated (-)90.0002 degrees, and (most likely not coincidentally) this is the same as the error produced when torque converts between radians and degrees.

Place 4 bricks each rotated 90 degrees more than the other, and look at <thebrick>.rotation for each
Then look at what is returned by mradtodeg(mdegtorad(90))
WOAH! IT'S THE SAME!

Floating bricks, buried bricks, overlapping bricks, etc. can be checked via containers and raycasts.

Now I'm not saying that you should reinvent the wheel, I'm just saying that it's possible (as far as I can tell atleast. That said, ::plant() may be in the engine and not written in torquescript, in which case the reason it's there is because it does things which are not exposed to us via torquescript, so we should call it regardless).

Its definately possible to add pre-selected stuff to a mining server.
But allowing a freebuild-like setup wont work.

Im working on something where you can place 4x4 cubes using a custom tool, and eventually build stuff - but its still only the basic 4x4 cubes.
This now works.
You can join my mining server and use the 'Cement placer' to place blocks.

But allowing freebuild within the mining mod will cause too many problems.  All it takes is for somebody to place a brick at the top of a long shaft, then hammer or undo the brick, and then everything in the shaft below will be chainkilled... leaving any players falling forever and very pissed off.  Im gonna pass on that one.

Sadly enough, I don't have an internet connection that will allow me to join a server...