feat: integrate KFWeaponDespawn

This commit is contained in:
GenZmeY 2021-04-01 00:27:53 +03:00
parent 6a8478b575
commit 20153643ef

View File

@ -93,6 +93,31 @@ function AddMutator(Mutator Mut)
Super.AddMutator(Mut);
}
function bool CheckRelevance(Actor Other)
{
local bool SuperRelevant;
local KFDroppedPickup PlayerWeap;
SuperRelevant = super.CheckRelevance(Other);
// if this actor is going to be destroyed, return now
if (!SuperRelevant)
{
return SuperRelevant;
}
PlayerWeap = KFDroppedPickup(Other);
// otherwise modify weapon lifespan
if (PlayerWeap != None)
{
PlayerWeap.Lifespan = 2147483647;
return SuperRelevant;
}
return SuperRelevant;
}
defaultproperties
{
SteamIDLen=17