Bolts&Arrows cleanup on wave start
This commit is contained in:
parent
847c8b3cff
commit
cb35ace28f
@ -465,6 +465,7 @@ function CheckWave()
|
|||||||
function NotifyWaveChange()
|
function NotifyWaveChange()
|
||||||
{
|
{
|
||||||
local ExtPlayerController ExtPC;
|
local ExtPlayerController ExtPC;
|
||||||
|
local KFProj_RicochetStickBullet KFBolt;
|
||||||
|
|
||||||
if( bRespawnCheck )
|
if( bRespawnCheck )
|
||||||
{
|
{
|
||||||
@ -484,6 +485,13 @@ function NotifyWaveChange()
|
|||||||
foreach WorldInfo.AllControllers(class'ExtPlayerController',ExtPC)
|
foreach WorldInfo.AllControllers(class'ExtPlayerController',ExtPC)
|
||||||
ExtPC.bSetPerk = false;
|
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()
|
function SetupWebAdmin()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user