From cb35ace28f40fcf056c8bd4386fcc28f9deb9301 Mon Sep 17 00:00:00 2001 From: inklesspen1scripter Date: Tue, 7 Jul 2020 22:59:38 +0300 Subject: [PATCH] Bolts&Arrows cleanup on wave start --- ServerExtMut/Classes/ServerExtMut.uc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ServerExtMut/Classes/ServerExtMut.uc b/ServerExtMut/Classes/ServerExtMut.uc index 5d17f96..51d1fcc 100644 --- a/ServerExtMut/Classes/ServerExtMut.uc +++ b/ServerExtMut/Classes/ServerExtMut.uc @@ -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() {