lifespan fix
This commit is contained in:
parent
2bcee2fed9
commit
a4bae91c18
@ -181,7 +181,6 @@ private function bool IsUID(String ID)
|
|||||||
function bool CheckRelevance(Actor Other)
|
function bool CheckRelevance(Actor Other)
|
||||||
{
|
{
|
||||||
local bool SuperRelevant;
|
local bool SuperRelevant;
|
||||||
local KFDroppedPickup DroppedPickup;
|
|
||||||
|
|
||||||
SuperRelevant = super.CheckRelevance(Other);
|
SuperRelevant = super.CheckRelevance(Other);
|
||||||
|
|
||||||
@ -191,15 +190,14 @@ function bool CheckRelevance(Actor Other)
|
|||||||
return SuperRelevant;
|
return SuperRelevant;
|
||||||
}
|
}
|
||||||
|
|
||||||
DroppedPickup = KFDroppedPickup(Other);
|
// otherwise modify dosh or weapon lifespan
|
||||||
|
if (KFDroppedPickup_Cash(Other) != None)
|
||||||
// otherwise modify weapon lifespan
|
|
||||||
if (DroppedPickup != None)
|
|
||||||
{
|
{
|
||||||
if (KFDroppedPickup_Cash(DroppedPickup) != None && DoshLifespan != 0)
|
if (DoshLifespan != 0) Other.Lifespan = float(DoshLifespan);
|
||||||
DroppedPickup.Lifespan = DoshLifespan;
|
}
|
||||||
else if (WeapLifespan != 0)
|
else if (KFDroppedPickup(Other) != None)
|
||||||
DroppedPickup.Lifespan = WeapLifespan;
|
{
|
||||||
|
if (WeapLifespan != 0) Other.Lifespan = float(WeapLifespan);
|
||||||
}
|
}
|
||||||
|
|
||||||
return SuperRelevant;
|
return SuperRelevant;
|
||||||
|
Loading…
Reference in New Issue
Block a user