diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/DefCore.txt b/planet/Objects.c4d/Items.c4d/Earth.c4d/DefCore.txt new file mode 100644 index 000000000..a957c0475 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/DefCore.txt @@ -0,0 +1,16 @@ +[DefCore] +id=ERTH +Version=4,10,0,0 +Category=C4D_Object +Width=6 +Height=6 +Offset=-3,-3 +Vertices=3 +VertexX=0,1,-1 +VertexY=1,-1,-1 +VertexFriction=100 +Mass=12 +Components=ILOA=1 +Collectible=1 +Fragile=1 +Rotate=1 diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/DescDE.txt b/planet/Objects.c4d/Items.c4d/Earth.c4d/DescDE.txt new file mode 100644 index 000000000..86c40bd69 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/DescDE.txt @@ -0,0 +1 @@ +Um transportfähige Erdklumpen auszugraben, während des Grabens erneut einmal auf 'Graben' klicken. diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/DescUS.txt b/planet/Objects.c4d/Items.c4d/Earth.c4d/DescUS.txt new file mode 100644 index 000000000..d090cd2d4 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/DescUS.txt @@ -0,0 +1 @@ +Hit 'dig' again while digging to create chunks that can be picked up. diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/Graphics.10.png b/planet/Objects.c4d/Items.c4d/Earth.c4d/Graphics.10.png new file mode 100644 index 000000000..e73b41763 Binary files /dev/null and b/planet/Objects.c4d/Items.c4d/Earth.c4d/Graphics.10.png differ diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/Script.c b/planet/Objects.c4d/Items.c4d/Earth.c4d/Script.c new file mode 100644 index 000000000..9e20fc586 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/Script.c @@ -0,0 +1,19 @@ +/*--- Earth ---*/ + +#strict 2 + +protected func Hit() +{ + CastPXS("Earth", 225, 18); + Sound("EarthHit*"); + RemoveObject(); + return 1; +} + +func IsAlchemContainer() { return true; } +func AlchemProcessTime() { return 120; } + +func Definition(def) { + SetProperty("Collectible", 1, def); + SetProperty("Name", "$Name$", def); +} \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblDE.txt b/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblDE.txt new file mode 100644 index 000000000..580bb93f0 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblDE.txt @@ -0,0 +1 @@ +Name=Erdklumpen diff --git a/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblUS.txt b/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblUS.txt new file mode 100644 index 000000000..48a3b6afe --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Earth.c4d/StringTblUS.txt @@ -0,0 +1 @@ +Name=Chunk of Dirt diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DefCore.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DefCore.txt new file mode 100644 index 000000000..f37e3f236 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DefCore.txt @@ -0,0 +1,20 @@ +[DefCore] +id=AXE1 +Version=4,9,5 +Category=C4D_Object|C4D_SelectMaterial|C4D_SelectKnowledge|C4D_SelectHomebase +MaxUserSelect=5 +Value=15 +Mass=20 +Width=10 +Height=9 +Offset=-5,-5 +Vertices=2 +VertexX=-4,3 +VertexY=3,-3 +VertexFriction=50,50 +Picture=10,0,64,64 +Components=WOOD=1;METL=1; +Rebuy=1 +Collectible=1 +Rotate=1 + \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescDE.txt new file mode 100644 index 000000000..96ffed972 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescDE.txt @@ -0,0 +1 @@ +Eine Axt, mit der man Bäume fällen kann. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescUS.txt new file mode 100644 index 000000000..4fc3212cf --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/DescUS.txt @@ -0,0 +1 @@ +An axe, used to chop trees. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Graphics.png b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Graphics.png new file mode 100644 index 000000000..8c60cbae5 Binary files /dev/null and b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Graphics.png differ diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Script.c b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Script.c new file mode 100644 index 000000000..bb854047a --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/Script.c @@ -0,0 +1,31 @@ +/*-- Axe --*/ + +#strict 2 + +private func Hit() +{ + Sound("RockHit"); + return 1; +} + +public func ControlUse(object pByClonk, int iX, int iY) +{ + var pTree; + if( pTree = FindObject(Find_AtPoint(iX, iY), Find_Func("IsTree") && Find_Func("IsStanding")) ) + { + pByClonk->SetCommand("Chop", pTree); + Sound("KnightConfirm*"); + } + else{ + if(pByClonk->GetAction() == "Chop") + pByClonk->SetAction("Idle"); + } + return 1; +} + +public func IsTool() { return 1; } + +func Definition(def) { + SetProperty("Collectible", 1, def); + SetProperty("Name", "$Name$", def); +} diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblDE.txt new file mode 100644 index 000000000..c657a9116 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblDE.txt @@ -0,0 +1 @@ +Name=Axt diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblUS.txt new file mode 100644 index 000000000..dac82b1a5 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Axe.c4d/StringTblUS.txt @@ -0,0 +1 @@ +Name=Axe diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DefCore.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DefCore.txt new file mode 100644 index 000000000..ed8fac8b3 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DefCore.txt @@ -0,0 +1,20 @@ +[DefCore] +id=HAMR +Version=4,9,5 +Category=C4D_Object|C4D_SelectMaterial|C4D_SelectKnowledge|C4D_SelectHomebase +MaxUserSelect=10 +Value=5 +Mass=15 +Width=12 +Height=8 +Offset=-6,-4 +Vertices=4 +VertexX=-5,4,2,5 +VertexY=2,4,-3,-3 +VertexFriction=80,80,80,80 +Components=WOOD=1;ROCK=1; +Picture=0,8,64,64 +Rebuy=1 +Collectible=1 +Rotate=1 + \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescDE.txt new file mode 100644 index 000000000..22ec01b01 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescDE.txt @@ -0,0 +1 @@ +Ein Hammer, mit dem man Konstruktionen errichten kann. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescUS.txt new file mode 100644 index 000000000..0e0349b2b --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/DescUS.txt @@ -0,0 +1 @@ +A hammer which you can use to build contructions. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Graphics.png b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Graphics.png new file mode 100644 index 000000000..3161cdb0b Binary files /dev/null and b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Graphics.png differ diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Script.c b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Script.c new file mode 100644 index 000000000..c1c3f4bf7 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/Script.c @@ -0,0 +1,51 @@ +/*-- Hammer --*/ + +#strict 2 + +private func Hit() +{ + Sound("RockHit"); + return 1; +} + +public func ControlUse(object pByClonk, int iX, int iY) +{ + // Stop clonk + pByClonk->SetComDir(COMD_Stop); + // Is the clonk able to build? + if (pByClonk && !pByClonk->GetPhysical("CanConstruct", PHYS_Current)) + { + PlayerMessage(pByClonk->GetController(), "$TxtCantConstruct$", this, pByClonk->GetName()); + return false; + } + // Create menu and fill it with the player's plans + CreateMenu(CXCN, pByClonk, this(), 1, "$TxtNoconstructionplansa$"); + var idType; var i = 0; + while (idType = GetPlrKnowledge(pByClonk->GetOwner(), 0, i++, C4D_Structure)) + AddMenuItem("$TxtConstructions$", "CreateConstructionSite", idType, pByClonk); + return 1; +} + +protected func CreateConstructionSite(idType) +{ + // Only when the clonk is standing and outdoors + if (Contained()->GetAction() != "Walk") return 0; + if (Contained()->Contained()) return 0; + // Check if the building can be build here + if (idType->~RejectConstruction(0, 10, Contained()) ) return 0; + // Set owner for CreateConstruction + SetOwner(Contained()->GetOwner()); + // Create construction site + var pSite; + if (!(pSite = CreateConstruction(idType, 0, 10, Contained()->GetOwner(), 1, 1,1))) return 0; + // Message + Message("$TxtConstructions$", Contained(), pSite->GetName()); + return 1; +} + +public func IsTool() { return 1; } + +func Definition(def) { + SetProperty("Collectible", 1, def); + SetProperty("Name", "$Name$", def); +} diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblDE.txt new file mode 100644 index 000000000..d51950475 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblDE.txt @@ -0,0 +1,4 @@ +TxtNoconstructionplansa=Keine Baupläne verfügbar +TxtConstructions=Konstruktion: %s +TxtCantConstruct=%s kann nicht bauen. +Name=Hammer \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblUS.txt new file mode 100644 index 000000000..675c88712 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Hammer.c4d/StringTblUS.txt @@ -0,0 +1,4 @@ +TxtNoconstructionplansa=No construction plans available +TxtConstructions=Construction: %s +TxtCantConstruct=%s can't build. +Name=Hammer \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DefCore.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DefCore.txt new file mode 100644 index 000000000..dae06b8a6 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DefCore.txt @@ -0,0 +1,20 @@ +[DefCore] +id=SHVL +Version=4,9,5 +Category=C4D_Object|C4D_SelectMaterial|C4D_SelectKnowledge|C4D_SelectHomebase +MaxUserSelect=5 +Value=16 +Mass=20 +Width=10 +Height=9 +Offset=-5,-5 +Vertices=2 +VertexX=-4,3 +VertexY=-4,3 +VertexFriction=50,50 +Picture=10,10,54,54 +Components=WOOD=1;METL=1; +Rebuy=1 +Collectible=1 +Rotate=1 + \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescDE.txt new file mode 100644 index 000000000..5706cd617 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescDE.txt @@ -0,0 +1 @@ +Eine Schaufel, mit der man weiche Materialien weggraben kann. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescUS.txt new file mode 100644 index 000000000..f3a08f346 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/DescUS.txt @@ -0,0 +1 @@ +A shovel, nice to dig soft materials. \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Graphics.png b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Graphics.png new file mode 100644 index 000000000..73e670542 Binary files /dev/null and b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Graphics.png differ diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Script.c b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Script.c new file mode 100644 index 000000000..912aeac46 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/Script.c @@ -0,0 +1,23 @@ +/*-- Shovel --*/ + +#strict 2 + +private func Hit() +{ + Sound("WoodHit"); + return 1; +} + +public func ControlUse(object pByClonk, int iX, int iY) +{ + pByClonk->SetCommand("Dig", 0, iX, iY); + Sound("KnightConfirm*"); + return 1; +} + +public func IsTool() { return 1; } + +func Definition(def) { + SetProperty("Collectible", 1, def); + SetProperty("Name", "$Name$", def); +} \ No newline at end of file diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblDE.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblDE.txt new file mode 100644 index 000000000..4d940ff82 --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblDE.txt @@ -0,0 +1 @@ +Name=Schaufel diff --git a/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblUS.txt b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblUS.txt new file mode 100644 index 000000000..6a0d850ee --- /dev/null +++ b/planet/Objects.c4d/Items.c4d/Tools.c4d/Shovel.c4d/StringTblUS.txt @@ -0,0 +1 @@ +Name=Shovel