From 9f2c60c94e313a1e5cd112a944dcf77f21da4f97 Mon Sep 17 00:00:00 2001 From: David Dormagen Date: Fri, 25 Dec 2015 19:13:06 +0100 Subject: [PATCH] adjusted some more PictureTransformation properties To either increase the size of the item, center it, or prevent it from going out of the bounding box. --- .../Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/Script.c | 2 +- planet/Objects.ocd/Items.ocd/Weapons.ocd/Bow.ocd/Script.c | 5 +++-- planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c | 5 +++-- .../Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/Script.c | 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/Script.c index 93d35612f..462051b7d 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/Script.c @@ -261,7 +261,7 @@ public func IsInventorProduct() { return true; } public func Definition(proplist def) { - SetProperty("PictureTransformation", Trans_Mul(Trans_Translate(-700, 400), Trans_Scale(1150), Trans_Rotate(180, 0, 1, 0), Trans_Rotate(-30, -1, 0, -1)), def); + def.PictureTransformation = Trans_Mul(Trans_Translate(-2500, 1000),Trans_Scale(1800),Trans_Rotate(-60,1,-1,1), Trans_Rotate(180, 0, 1, 0)); } local Name = "$Name$"; diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Bow.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Bow.ocd/Script.c index 2b1d4cb05..900bf7619 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Bow.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Bow.ocd/Script.c @@ -223,8 +223,9 @@ func Deselection() public func IsWeapon() { return true; } public func IsArmoryProduct() { return true; } -func Definition(def) { - SetProperty("PictureTransformation",Trans_Mul(Trans_Translate(-2000,-3000,-2000),Trans_Rotate(180,0,1,0),Trans_Rotate(-25,1,0,1)),def); +func Definition(def) +{ + def.PictureTransformation = Trans_Mul(Trans_Translate(-4000,-2000,4000),Trans_Rotate(180,0,1,0),Trans_Rotate(-45,0,0,1)); } local Name = "$Name$"; diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c index 355197823..8c839a9e3 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/Script.c @@ -235,8 +235,9 @@ func DoStrike(clonk, angle) public func IsWeapon() { return true; } public func IsArmoryProduct() { return true; } -func Definition(def) { - SetProperty("PictureTransformation",Trans_Rotate(-30,0,0,1),def); +func Definition(def) +{ + def.PictureTransformation = Trans_Mul(Trans_Translate(-4500, -2000, 2000), Trans_Rotate(45,0,0,1)); } local Collectible = 1; diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/Script.c index eac758b00..5b2c71045 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/Script.c @@ -191,8 +191,9 @@ public func IsArmoryProduct() { return true; } -func Definition(def) { - SetProperty("PictureTransformation",Trans_Mul(Trans_Translate(1500,0,-1500),Trans_Rotate(170,0,1,0),Trans_Rotate(30,0,0,1)),def); +func Definition(def) +{ + def.PictureTransformation = Trans_Mul(Trans_Translate(-3000, 1000, 1500),Trans_Rotate(170,0,1,0),Trans_Rotate(30,0,0,1)); } local Name = "$Name$";