Skip to content
Permalink
Browse files
Fixed super zeds not replacing the default zeds
This bug occured in kf update 1061

Updated release version
  • Loading branch information
scaryghost committed Nov 4, 2014
1 parent 46cb398 commit ccc33bb0715a63fda1921eca05f3029d9b59e529
Showing 2 changed files with 12 additions and 4 deletions.
@@ -92,9 +92,11 @@ function PostBeginPlay() {
Destroy();
return;
}

if (KF.MonsterCollection == class'KFGameType'.default.MonsterCollection) {
KF.MonsterCollection= class'SZMonstersCollection';
}

AddToPackageMap("SuperZombieMut");

PP= spawn(class'PoisonedPawns');
@@ -120,8 +122,10 @@ function PostBeginPlay() {
for(i= 0; i < mcCaps.Length; i++) {
for(k= 0; k < replCaps.Length; k++) {
if (replacementArray[k].bReplace && InStr(mcCaps[i], replCaps[k]) != -1) {
log("SuperZombies - Replacing"@KF.MonsterCollection.default.MonsterClasses[i].MClassName);
KF.MonsterCollection.default.MonsterClasses[i].MClassName= replacementArray[k].newClass;
log("SuperZombies - Replacing" @ KF.MonsterCollection.default.MonsterClasses[i].MClassName @
"with" @ replacementArray[k].newClass);
KF.MonsterCollection.default.MonsterClasses[i].MClassName=
replacementArray[k].newClass;
}
}
}
@@ -138,6 +142,10 @@ function PostBeginPlay() {
if (bReplaceStalker) {
KF.MonsterCollection.default.FallbackMonsterClass= "SuperZombieMut.ZombieSuperStalker";
}

for(i= 0; i < KF.SpecialEventMonsterCollections.Length; i++) {
KF.SpecialEventMonsterCollections[i]= KF.MonsterCollection;
}
}

function bool CheckReplacement(Actor Other, out byte bSuperRelevant) {
@@ -205,7 +213,7 @@ simulated function Tick(float DeltaTime) {

defaultproperties {
GroupName="KFSuperZombieMut"
FriendlyName="Super Zombies v2.3"
FriendlyName="Super Zombies v2.3.1"
Description="Gives specimens new abilities and behaviors."

RemoteRole= ROLE_SimulatedProxy
@@ -42,7 +42,7 @@ https://github.com/scaryghost/SuperZombieMut

## Change Log
To view a detailed change log, please view the releaes notes for the specific version:
https://github.com/scaryghost/SuperZombieMut/wiki/Super-Zombie-2.3
https://github.com/scaryghost/SuperZombieMut/wiki/Super-Zombie-2.3.1

A complete list of specimen changes maybe viewed on the mutator's wiki:
https://github.com/scaryghost/SuperZombieMut/wiki

0 comments on commit ccc33bb

Please sign in to comment.