Add distant item glows.
This commit is contained in:
parent
8ae651d1da
commit
8f4630ae8b
24 changed files with 164 additions and 87 deletions
|
|
@ -165,6 +165,22 @@ Class SWWMRespawnTimer : Actor
|
|||
}
|
||||
}
|
||||
|
||||
Mixin Class SWWMPickupGlow
|
||||
{
|
||||
override Inventory CreateTossable( int amt )
|
||||
{
|
||||
let ret = Super.CreateTossable(amt);
|
||||
// reattach our glow if we became a pickup
|
||||
if ( (ret == self) && (PickupFlash is 'SWWMPickupFlash') && swwm_itemglows )
|
||||
{
|
||||
let p = Spawn(PickupFlash,Vec3Offset(0,0,16));
|
||||
p.target = self;
|
||||
p.SetStateLabel("Pickup");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Mixin Class SWWMRespawn
|
||||
{
|
||||
override void Hide()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue