forked from Mirrors/openclonk
parent
42cf57afb6
commit
124337a5b5
|
@ -190,10 +190,7 @@ public func OnMount(clonk)
|
|||
riderattach = AttachMesh(clonk, "main", "pos_tool1", Trans_Mul(Trans_Translate(-1000,2000*iDir,2000), Trans_Rotate(-90*iDir,1,0,0)));
|
||||
|
||||
//Modify picture transform to fit icon on clonk mount
|
||||
//clean pic transform rotations
|
||||
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(0,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0)));
|
||||
//apply the new one
|
||||
SetProperty("PictureTransformation", Trans_Mul(Trans_Translate(5000 * clonk->GetDir(),0,0), Trans_Rotate(-20,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0), Trans_Scale(700)));
|
||||
this.PictureTransformation = Trans_Mul(Trans_Translate(5000 * clonk->GetDir(),0,0), Trans_Rotate(-20,1,0,0), Trans_Rotate(0,0,0,1), Trans_Rotate(0,0,1,0), Trans_Scale(700));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -281,10 +278,14 @@ func OnProjectileHit()
|
|||
|
||||
func IsInventorProduct() { return true; }
|
||||
|
||||
private func DefaultPicTransform() { return SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(30,0,0,1),Trans_Rotate(-30,1,0,0),Trans_Scale(1300))); }
|
||||
private func DefaultPicTransform()
|
||||
{
|
||||
this.PictureTransformation = this.Prototype.PictureTransformation;
|
||||
}
|
||||
|
||||
func Definition(def) {
|
||||
DefaultPicTransform();
|
||||
public func Definition(def)
|
||||
{
|
||||
def.PictureTransformation = Trans_Mul(Trans_Translate(-3000, -1000, 0), Trans_Rotate(45,0,0,1),Trans_Rotate(-35,1,0,0),Trans_Scale(1200));
|
||||
}
|
||||
|
||||
local Collectible = true;
|
||||
|
|
Loading…
Reference in New Issue