Tweak dropping from menu after last change.
This commit is contained in:
parent
e35f78035e
commit
08fdb7a6d7
2 changed files with 9 additions and 4 deletions
|
|
@ -414,8 +414,13 @@ extend Class SWWMHandler
|
|||
}
|
||||
if ( amt > i.Amount ) amt = i.Amount;
|
||||
let drop = players[e.Args[0]].mo.DropInventory(i,amt);
|
||||
// add some random velocity so multiple drops don't get bunched together
|
||||
if ( drop ) drop.vel += (Actor.RotateVector((FRandom[Junk](-1.5,.5),FRandom[Junk](-2.5,2.5)),players[e.Args[0]].mo.angle),FRandom[Junk](2.,5.));
|
||||
// randomize movement direction so multiple drops don't get bunched together
|
||||
if ( drop )
|
||||
{
|
||||
Vector2 vel2d = drop.vel.xy;
|
||||
drop.vel.xy = Actor.RotateVector(vel2d,FRandom[Junk](-15,15));
|
||||
drop.vel.xy *= FRandom[Junk](.9,1.1);
|
||||
}
|
||||
if ( e.Args[0] == consoleplayer )
|
||||
{
|
||||
let t = new("MenuTransaction");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue