fixed bug with two grapplers. Shooting the second in the air while hanging on the first doesn't disconnect the rope now

Richard Gerum 2010-12-04 20:38:59 +01:00
parent 959c0d4322
commit 4651341c5f
2 changed files with 6 additions and 3 deletions

View File

@ -91,7 +91,7 @@ public func MaxLengthReached()
{
for(var i = 0; i < ParticleCount; i++)
particles[i][1] = particles[i][0][:];
DrawIn();
DrawIn(1);
}
}
@ -121,7 +121,7 @@ func FxDrawInTimer()
}
}
func DrawIn()
func DrawIn(fNoControl)
{
DrawingIn = 1;
if(!GetEffect("DrawIn", this))
@ -133,7 +133,7 @@ func DrawIn()
ConnectPull();
var clonk = objects[1][0];
if(clonk->Contained()) clonk = clonk->Contained();
RemoveEffect("IntGrappleControl", clonk);
if(!fNoControl) RemoveEffect("IntGrappleControl", clonk);
}
}

View File

@ -2,6 +2,9 @@
Icon=37
Title=GrappleRace
[Definitions]
Definition1=Objects.c4d
[Game]
Goals=Goal_Parkour