So you want to be spoonfed some code, is that it? OK, here you go:
Code: Select all
class Moon3Fix extends Moon3;
simulated function PostBeginPlay()
{
Super.PostBeginPlay();
RecalculatePrePivot();
}
simulated function Tick(float Delta)
{
Super.Tick(Delta);
RecalculatePrePivot();
}
simulated function RecalculatePrePivot()
{
local vector v;
v.Y = 1000.0 * DrawScale;
PrePivot = v >> Rotation;
}
This is just one way of doing it, and doesn't completely account for online play, as ideally you want to run these updates on the client alone, which would be achieved by a RemoteRole to ROLE_SimulatedProxy, some role and network mode checks, and perhaps a few more changes I am not going to look at right now.
But this is the gist of it.
Other solutions would be to simply export and reimport the mesh with what you deem to be the right center and rotation, or to go completely rocket science with it and building a native module to simply change this mesh in runtime in some way so that it gets centered, which would break existing maps relying on this in the process just so you could "fix" it.
But then again, this deco is simply just a spherical mesh for a single purpose, something you can recreate and import in seconds, so I don't even get the whole fuss about it.
From there, you want to see stuff of mine and what I have fixed and whatnot in order to prove myself to you somehow?
Yes, I could, but it's not gonna happen, that's not how things work, nor should for that matter.
There are plenty of active members in this very forum who never have shown anything of their own here specifically, but it doesn't mean they never did anything, and their contributions for any discussion are just as valuable as anyone who have shown something, and some of them might have contributed far more to the game than you think of them.
Thus, no one at all has to give you evidence of anything other than the kind that's expected during a discussion, such as this one.
You couldn't wrap your head why this deco was like this, and it was explained to you by me, and proved so by Barbie with actual map references, and ironically after all your rambling your own proposed solution is actually much worse, complicated, inefficient and hackish for the sole purpose of this specific decoration, and ironically you don't realize this yourself, since you're missing the whole overall context of why it was created in the first place.
It could be done without offsetting the center, in a very clean way that didn't involve movers at all whatsoever, even because this isn't what movers were created for.
But I will leave up to you to figure it out since you're so competent compared to everyone else apparently, and since I pretty much gave the solution away for this twice already if you didn't realize it.