forked from Mirrors/openclonk
Fixed carry heavies attaching at wrong point whilst scaling/hangling etc.
parent
67e11130cd
commit
3ba7c3477f
|
@ -23,6 +23,14 @@ local controllable;
|
|||
public func GetCarryMode(clonk) { return CARRY_BothHands; }
|
||||
public func GetCarryPhase() { return 700; }
|
||||
|
||||
public func GetCarryTransform(clonk)
|
||||
{
|
||||
if(GetCarrySpecial(clonk))
|
||||
return Trans_Translate(0, 0, -6500);
|
||||
|
||||
return Trans_Translate(-1500, 0, 0);
|
||||
}
|
||||
|
||||
protected func Construction()
|
||||
{
|
||||
//flight length
|
||||
|
|
|
@ -12,6 +12,14 @@ local crateanim;
|
|||
public func GetCarryMode(clonk) { return CARRY_BothHands; }
|
||||
public func GetCarryPhase() { return 800; }
|
||||
|
||||
public func GetCarryTransform(clonk)
|
||||
{
|
||||
if(GetCarrySpecial(clonk))
|
||||
return Trans_Translate(0, 3500, -6500);
|
||||
|
||||
return Trans_Translate(-1500, 0, 0);
|
||||
}
|
||||
|
||||
protected func Construction()
|
||||
{
|
||||
crateanim = PlayAnimation("Open", 1, Anim_Linear(0, 0, 1, 20, ANIM_Hold), Anim_Const(1000));
|
||||
|
|
Loading…
Reference in New Issue