Backported changes from experimental branch.
Fixed crash on screen flashes due to misuse of StaticEventHandler.Find instead of EventHandler.Find (oops).
This commit is contained in:
parent
691fb8cee6
commit
d69eaa682f
8 changed files with 60 additions and 18 deletions
|
|
@ -264,10 +264,10 @@ Class BioGel : Actor
|
|||
for ( int i=0; i<numpt; i++ )
|
||||
{
|
||||
Vector3 pvel = (FRandom[GES](-1,1),FRandom[GES](-1,1),FRandom[GES](-1,1)).unit()*FRandom[GES](1,3);
|
||||
Vector3 spos = pos;
|
||||
if ( atplane == 1 ) spos += Normal*2;
|
||||
Vector3 spos = pos+normal*2*scale.x;
|
||||
let s = Spawn("BioSpark",spos);
|
||||
s.vel = pvel;
|
||||
if ( normal != (0,0,0) ) s.vel += normal*2;
|
||||
}
|
||||
}
|
||||
if ( deadtimer <= -1 ) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue