Habe eine neue Version von SafetyWeight gemacht. Neues Modell und neue Texturen.
Die Animationen werden über selbstgemachte skript ausgefürth.
Mein Problem ist jetzt das die Ingame positionen nicht stimmen wie auf dem Bild zu sehen ist, die GE werte für Rotation passen mit der Script.
Kann mir jemand da weiter helfen?
Teil des scripts das für die rotation verantwortlich ist:
Code: Select all
if self:getIsActiveForInput() then
if InputBinding.hasEvent(InputBinding.movePanels) then
g_client:getServerConnection():sendEvent(BumbGewichtEvent:new(self, self.GewichtState + 1 ));
end;
end;
if self.newGewichtState then
self.newGewichtState = nil;
if self.GewichtState == 0 then
setRotation(self.panelRight1, 0, 0, 0);
setRotation(self.panelRight2, 0, 0, 0);
setRotation(self.panelLeft1, 0, 0, 0);
setRotation(self.panelLeft2, 0, 0, 0);
elseif self.GewichtState == 1 then
setRotation(self.panelRight1, 0, -8.213, 0);
setRotation(self.panelRight2, 0, -25.966, 0);
setRotation(self.panelLeft1, 0, 8.213, 0);
setRotation(self.panelLeft2, 0, 25.966, 0);
elseif self.GewichtState == 2 then
setRotation(self.panelRight1, 0, -17.084, 0);
setRotation(self.panelRight2, 0, -57.246, 0);
setRotation(self.panelLeft1, 0, 17.084, 0);
setRotation(self.panelLeft2, 0, 57.246, 0);
elseif self.GewichtState == 3 then
setRotation(self.panelRight1, 0, 19.07, 0);
setRotation(self.panelRight2, 0, 39.351, 0);
setRotation(self.panelLeft1, 0, -19.07, 0);
setRotation(self.panelLeft2, 0, -39.351, 0);
elseif self.GewichtState == 4 then
setRotation(self.panelRight1, 0, 9.794, 0);
setRotation(self.panelRight2, 0, 20.155, 0);
setRotation(self.panelLeft1, 0, -9.794, 0);
setRotation(self.panelLeft2, 0, -20.155, 0);
elseif self.GewichtState == 5 then
setRotation(self.panelRight1, 0, 0, 0);
setRotation(self.panelRight2, 0, 0, 0);
setRotation(self.panelLeft1, 0, 0, 0);
setRotation(self.panelLeft2, 0, 0, 0);
self.GewichtState = 0;
end;
end;