Bolts&Arrows cleanup on wave start

This commit is contained in:
inklesspen1scripter 2020-07-07 22:59:38 +03:00
parent 847c8b3cff
commit cb35ace28f

View File

@ -465,6 +465,7 @@ function CheckWave()
function NotifyWaveChange()
{
local ExtPlayerController ExtPC;
local KFProj_RicochetStickBullet KFBolt;
if( bRespawnCheck )
{
@ -484,6 +485,13 @@ function NotifyWaveChange()
foreach WorldInfo.AllControllers(class'ExtPlayerController',ExtPC)
ExtPC.bSetPerk = false;
}
foreach WorldInfo.AllActors(class'KFProj_RicochetStickBullet', KFBolt)
{
if(KFProj_Bolt_CompoundBowSharp(KFBolt) != none ||
KFProj_Bolt_Crossbow(KFBolt) != none)
KFBolt.Destroy();
}
}
function SetupWebAdmin()
{