feat: integrate KFWeaponDespawn
This commit is contained in:
parent
6a8478b575
commit
20153643ef
@ -93,6 +93,31 @@ function AddMutator(Mutator Mut)
|
|||||||
Super.AddMutator(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
|
defaultproperties
|
||||||
{
|
{
|
||||||
SteamIDLen=17
|
SteamIDLen=17
|
||||||
|
Loading…
Reference in New Issue
Block a user