forked from Mirrors/openclonk
Unbroke Dolphin Jump, fixed cloud vertices.
parent
fcc963d419
commit
b08df69f26
|
@ -131,7 +131,7 @@ private func DolphinJump()
|
|||
if(!InLiquid()) return 0;
|
||||
if(GBackSemiSolid(0,-1)) return 0;
|
||||
// Nicht wenn deaktiviert (z.B. Ohnmacht)
|
||||
if (GetID()->GetActMapVal("ObjectDisabled", GetAction())) return false;
|
||||
if (GetActMapVal("ObjectDisabled", GetAction())) return false;
|
||||
// herausspringen
|
||||
SetPosition(GetX(),GetY()-1);
|
||||
SetAction("Jump");
|
||||
|
|
|
@ -16,13 +16,13 @@ Width=128
|
|||
|
||||
Height=64
|
||||
|
||||
Offset=-64,-32
|
||||
Offset=-110,-55
|
||||
|
||||
Vertices=2
|
||||
Vertices=3
|
||||
|
||||
VertexX=-40,40
|
||||
VertexX=-40,40,0
|
||||
|
||||
VertexY=0,0
|
||||
VertexY=0,0,40
|
||||
|
||||
Mass=1
|
||||
|
||||
|
|
|
@ -25,7 +25,12 @@ protected func Initialize()
|
|||
if(iGraphics == 3) SetGraphics("2");
|
||||
DoCon(iGrowth);
|
||||
SetAction("Fly");
|
||||
while(MaterialDepthCheck(GetX(),GetY(),"Sky",180)!=true) SetPosition(GetX(),GetY()-1);
|
||||
|
||||
//Push low flying clouds up to proper height
|
||||
while(MaterialDepthCheck(GetX(),GetY(),"Sky",180)!=true)
|
||||
{
|
||||
SetPosition(GetX(),GetY()-1);
|
||||
}
|
||||
}
|
||||
|
||||
public func Precipitation()
|
||||
|
|
Loading…
Reference in New Issue