Traits changes

Rack'em Up doesn't reducing when miss anymore
Trait "MedicPistol" replacing (don't removing) 9mm from default inventory so players with this trait will spawn with medic pistol in hands
Optimized code of Rack'em Up trait
This commit is contained in:
inklesspen1scripter
2020-07-07 20:49:25 +03:00
parent 8d6223ada3
commit 847c8b3cff
5 changed files with 28 additions and 37 deletions

View File

@ -83,7 +83,6 @@ function PostBeginPlay()
local Object O;
local string S;
local bool bLock;
local CustomZedXPStruct zedxp;
Super.PostBeginPlay();
if( WorldInfo.Game.BaseMutator==None )
@ -260,13 +259,15 @@ function PostBeginPlay()
if( bDumpXMLStats )
FileOutput = Spawn(class'ExtXMLOutput');
UpdateCustomZedXPArray()
UpdateCustomZedXPArray();
// Causes bugs
// SetTimer(0.1,'CheckPickupFactories')
}
function UpdateCustomZedXPArray()
{
local int i;
local CustomZedXPStruct zedxp;
CustomZedXPArray.Length = 0;
// Custom XP for custom zeds
for(i=0;i<CustomZedXP.Length;i++)