Skip to content

Commit

Permalink
Merge pull request #22 from NSHoffman/dev
Browse files Browse the repository at this point in the history
release/2023-05-01/1.2.1
  • Loading branch information
NSHoffman authored May 1, 2023
2 parents f386623 + b7bf928 commit 439d8e8
Show file tree
Hide file tree
Showing 62 changed files with 504 additions and 325 deletions.
41 changes: 24 additions & 17 deletions Classes/N7ZedsMut.uc
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ class N7ZedsMut extends Engine.Mutator
#exec OBJ LOAD FILE=kf_gore_n7_sm.usx

var const class<KFMonstersCollection> InitialMonstersCollection;
var const class<KFMonstersCollection> N7MonstersCollection;
var class<KFMonstersCollection> N7MonstersCollection;

var() config bool
var config bool
bEnableAutoReplacement,
bUseOriginalZedSkins,
bReplaceClot,
bReplaceCrawler,
bReplaceGorefast,
Expand All @@ -32,8 +33,11 @@ simulated event PostBeginPlay() {
return;
}

if (bEnableAutoReplacement && KFGT.MonsterCollection == class'KFMod.KFGameType'.default.MonsterCollection)
if (bEnableAutoReplacement && KFGT.MonsterCollection == class'KFMod.KFGameType'.default.MonsterCollection)
{
if (bUseOriginalZedSkins)
N7MonstersCollection = class'N7_MonstersCollection';

SetupMonsterCollection(KFGT);
}
}
Expand All @@ -46,6 +50,7 @@ static function FillPlayInfo(PlayInfo PlayInfo)
super.FillPlayInfo(PlayInfo);

PlayInfo.AddSetting(N7ZedsConfig, "bEnableAutoReplacement", "Enable ZEDs replacement", 0, 0, "Check");
PlayInfo.AddSetting(N7ZedsConfig, "bUseOriginalZedSkins", "Use original ZED skins", 0, 0, "Check");

PlayInfo.AddSetting(N7ZedsConfig, "bReplaceClot", "Replace original Clots", 0, 0, "Check",,,, True);
PlayInfo.AddSetting(N7ZedsConfig, "bReplaceCrawler", "Replace original Crawlers", 0, 0, "Check",,,, True);
Expand All @@ -64,6 +69,7 @@ static event string GetDescriptionText(string Property)
switch (Property)
{
case "bEnableAutoReplacement" : return "Enable ZEDs replacement";
case "bUseOriginalZedSkins" : return "Use original ZED skins";
case "bReplaceClot" : return "Replace original Clots";
case "bReplaceCrawler" : return "Replace original Crawlers";
case "bReplaceGorefast" : return "Replace original Gorefasts";
Expand All @@ -83,18 +89,18 @@ function bool ShouldReplaceZED(string ZedClass)
{
switch (ZedClass)
{
case "N7ZedsMut.N7_Clot" : return bReplaceClot;
case "N7ZedsMut.N7_Crawler" : return bReplaceCrawler;
case "N7ZedsMut.N7_Gorefast" : return bReplaceGorefast;
case "N7ZedsMut.N7_Stalker" : return bReplaceStalker;
case "N7ZedsMut.N7_Scrake" : return bReplaceScrake;
case "N7ZedsMut.N7_Fleshpound" : return bReplaceFleshpound;
case "N7ZedsMut.N7_Bloat" : return bReplaceBloat;
case "N7ZedsMut.N7_Siren" : return bReplaceSiren;
case "N7ZedsMut.N7_Husk" : return bReplaceHusk;
case "N7ZedsMut.N7_Boss" : return bReplaceBoss;

default : return False;
case N7MonstersCollection.default.MonsterClasses[0].MClassName : return bReplaceClot;
case N7MonstersCollection.default.MonsterClasses[1].MClassName : return bReplaceCrawler;
case N7MonstersCollection.default.MonsterClasses[2].MClassName : return bReplaceGorefast;
case N7MonstersCollection.default.MonsterClasses[3].MClassName : return bReplaceStalker;
case N7MonstersCollection.default.MonsterClasses[4].MClassName : return bReplaceScrake;
case N7MonstersCollection.default.MonsterClasses[5].MClassName : return bReplaceFleshpound;
case N7MonstersCollection.default.MonsterClasses[6].MClassName : return bReplaceBloat;
case N7MonstersCollection.default.MonsterClasses[7].MClassName : return bReplaceSiren;
case N7MonstersCollection.default.MonsterClasses[8].MClassName : return bReplaceHusk;
case N7MonstersCollection.default.EndGameBossClass : return bReplaceBoss;

default: return False;
}
}

Expand Down Expand Up @@ -214,16 +220,17 @@ function AdjustEndGameBoss()
}
}

defaultproperties
defaultProperties
{
FriendlyName="N7 Zeds"
Description="Adds some changes to zeds behaviour making them more aggressive"
GroupName="KFN7ZedsMut"

InitialMonstersCollection=class'KFMod.KFMonstersCollection'
N7MonstersCollection=class'N7_MonstersCollection'
N7MonstersCollection=class'N7_MonstersCollection_SAVAGE'

bEnableAutoReplacement=True
bUseOriginalZedSkins=False

bReplaceClot=True
bReplaceCrawler=True
Expand Down
11 changes: 0 additions & 11 deletions Classes/N7_Bloat.uc
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
class N7_Bloat extends KFChar.ZombieBloat_STANDARD;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.bloat_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.bloat_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.bloat_diffuse');
}

defaultProperties
{
MenuName="N7 Bloat"
DetachedArmClass=class'N7_SeveredArmBloat'
DetachedLegClass=class'N7_SeveredLegBloat'
DetachedHeadClass=class'N7_SeveredHeadBloat'
Skins(0)=Combiner'KF_Specimens_Trip_N7.bloat_cmb'
}
16 changes: 16 additions & 0 deletions Classes/N7_Bloat_SAVAGE.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class N7_Bloat_SAVAGE extends N7_Bloat;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.bloat_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.bloat_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.bloat_diffuse');
}

defaultProperties
{
DetachedArmClass=class'N7_SeveredArmBloat'
DetachedLegClass=class'N7_SeveredLegBloat'
DetachedHeadClass=class'N7_SeveredHeadBloat'
Skins(0)=Combiner'KF_Specimens_Trip_N7.bloat_cmb'
}
12 changes: 3 additions & 9 deletions Classes/N7_Boss.uc
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ simulated function CloakBoss()
return;
}

Skins[0] = Shader'KF_Specimens_Trip_N7.patriarch_invisible_gun';
Skins[1] = Shader'KF_Specimens_Trip_N7.patriarch_invisible';
Skins[0] = Shader'KF_Specimens_Trip_T.patriarch_invisible_gun';
Skins[1] = Shader'KF_Specimens_Trip_T.patriarch_invisible';

if (PlayerShadow != None)
{
Expand Down Expand Up @@ -1073,7 +1073,7 @@ simulated function UnSetZappedBehavior() {}
/** No crisping up */
simulated function ZombieCrispUp() {}

defaultproperties
defaultProperties
{
MenuName="N7 Patriarch"

Expand All @@ -1091,10 +1091,4 @@ defaultproperties
ClawMeleeDamageRange=75
ImpaleMeleeDamageRange=90.000000
PseudoClass=class'N7_PseudoBoss'
DetachedArmClass=class'N7_SeveredArmPatriarch'
DetachedLegClass=class'N7_SeveredLegPatriarch'
DetachedHeadClass=class'N7_SeveredHeadPatriarch'
DetachedSpecialArmClass=class'N7_SeveredRocketArmPatriarch'
Skins(0)=Combiner'KF_Specimens_Trip_N7.gatling_cmb'
Skins(1)=Combiner'KF_Specimens_Trip_N7.patriarch_cmb'
}
2 changes: 1 addition & 1 deletion Classes/N7_BossLAWProj.uc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ simulated function HitWall(vector HitNormal, actor Wall)
super(Projectile).HitWall(HitNormal, Wall);
}

defaultproperties
defaultProperties
{
ExplosionSound=SoundGroup'KF_LAWSnd.Rocket_Explode'
StaticMesh=StaticMesh'KillingFloorStatics.LAWRocket'
Expand Down
88 changes: 88 additions & 0 deletions Classes/N7_Boss_SAVAGE.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
class N7_Boss_SAVAGE extends N7_Boss;

/**
* The whole purpose of overriding the method below
* is to provide different material sources
*/

simulated function CloakBoss()
{
local Controller C;
local int index;

if (bZapped)
{
return;
}

if (bSpotted)
{
Visibility = 120;

if (Level.NetMode == NM_DedicatedServer)
{
return;
}

Skins[0] = Finalblend'KFX.StalkerGlow';
Skins[1] = Finalblend'KFX.StalkerGlow';
bUnlit = True;
return;
}

Visibility = 1;
bCloaked = True;
if (Level.NetMode != NM_Client)
{
for (C = Level.ControllerList; C != None; C = C.NextController)
{
if (C.bIsPlayer && C.Enemy == self)
{
C.Enemy = None;
}
}
}

if (Level.NetMode == NM_DedicatedServer)
{
return;
}

Skins[0] = Shader'KF_Specimens_Trip_N7.patriarch_invisible_gun';
Skins[1] = Shader'KF_Specimens_Trip_N7.patriarch_invisible';

if (PlayerShadow != None)
{
PlayerShadow.bShadowActive = False;
}
Projectors.Remove(0, Projectors.Length);
bAcceptsProjectors = False;

if (FRand() < 0.10)
{
index = Rand(Level.Game.NumPlayers);

for (C = Level.ControllerList; C != None; C = C.NextController)
{
if (PlayerController(C) != None)
{
if (index == 0)
{
PlayerController(C).Speech('AUTO', 8, "");
break;
}
index--;
}
}
}
}

defaultProperties
{
DetachedArmClass=class'N7_SeveredArmPatriarch'
DetachedLegClass=class'N7_SeveredLegPatriarch'
DetachedHeadClass=class'N7_SeveredHeadPatriarch'
DetachedSpecialArmClass=class'N7_SeveredRocketArmPatriarch'
Skins(0)=Combiner'KF_Specimens_Trip_N7.gatling_cmb'
Skins(1)=Combiner'KF_Specimens_Trip_N7.patriarch_cmb'
}
12 changes: 0 additions & 12 deletions Classes/N7_Clot.uc
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
class N7_Clot extends KFChar.ZombieClot_STANDARD;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.clot_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.clot_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.clot_diffuse');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.clot_spec');
}

defaultProperties
{
MenuName="N7 Clot"
GroundSpeed=115.000000
WaterSpeed=115.000000
DetachedArmClass=class'N7_SeveredArmClot'
DetachedLegClass=class'N7_SeveredLegClot'
DetachedHeadClass=class'N7_SeveredHeadClot'
Skins(0)=Combiner'KF_Specimens_Trip_N7.clot_cmb'
}
17 changes: 17 additions & 0 deletions Classes/N7_Clot_SAVAGE.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class N7_Clot_SAVAGE extends N7_Clot;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.clot_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.clot_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.clot_diffuse');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.clot_spec');
}

defaultProperties
{
DetachedArmClass=class'N7_SeveredArmClot'
DetachedLegClass=class'N7_SeveredLegClot'
DetachedHeadClass=class'N7_SeveredHeadClot'
Skins(0)=Combiner'KF_Specimens_Trip_N7.clot_cmb'
}
12 changes: 0 additions & 12 deletions Classes/N7_Crawler.uc
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,9 @@ simulated function PostBeginPlay()
MeleeRange = 75 + Rand(25);
}

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.crawler_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.crawler_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.crawler_diff');
}

defaultProperties
{
MenuName="N7 Crawler"
GroundSpeed=180.00000
WaterSpeed=160.00000
ControllerClass=class'N7_CrawlerController'
DetachedArmClass=class'N7_SeveredArmCrawler'
DetachedLegClass=class'N7_SeveredLegCrawler'
DetachedHeadClass=class'N7_SeveredHeadCrawler'
Skins(0)=Combiner'KF_Specimens_Trip_N7.crawler_cmb'
}
17 changes: 17 additions & 0 deletions Classes/N7_Crawler_SAVAGE.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class N7_Crawler_SAVAGE extends N7_Crawler;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.crawler_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.crawler_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.crawler_diff');
}

defaultProperties
{
ControllerClass=class'N7_CrawlerController'
DetachedArmClass=class'N7_SeveredArmCrawler'
DetachedLegClass=class'N7_SeveredLegCrawler'
DetachedHeadClass=class'N7_SeveredHeadCrawler'
Skins(0)=Combiner'KF_Specimens_Trip_N7.crawler_cmb'
}
13 changes: 1 addition & 12 deletions Classes/N7_Fleshpound.uc
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,7 @@ simulated function PostNetReceive()
}
}

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.fleshpound_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.fleshpound_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.fleshpound_diff');
}

defaultproperties
defaultProperties
{
MenuName="N7 Fleshpound"
DetachedArmClass=class'N7_SeveredArmPound'
DetachedLegClass=class'N7_SeveredLegPound'
DetachedHeadClass=class'N7_SeveredHeadPound'
Skins(0)=Combiner'KF_Specimens_Trip_N7.fleshpound_cmb'
}
2 changes: 1 addition & 1 deletion Classes/N7_FleshpoundGlowing.uc
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ simulated function Destroyed() {
}
}

defaultproperties
defaultProperties
{}
2 changes: 1 addition & 1 deletion Classes/N7_FleshpoundLight.uc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ simulated function ChangeToYellow()
bRed = False;
}

defaultproperties
defaultProperties
{
LightHue=HUE_Yellow
LightSaturation=0
Expand Down
16 changes: 16 additions & 0 deletions Classes/N7_Fleshpound_SAVAGE.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class N7_Fleshpound_SAVAGE extends N7_Fleshpound;

static simulated function PreCacheMaterials(LevelInfo myLevel)
{
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.fleshpound_cmb');
myLevel.AddPrecacheMaterial(Combiner'KF_Specimens_Trip_N7.fleshpound_env_cmb');
myLevel.AddPrecacheMaterial(Texture'KF_Specimens_Trip_N7.fleshpound_diff');
}

defaultProperties
{
DetachedArmClass=class'N7_SeveredArmPound'
DetachedLegClass=class'N7_SeveredLegPound'
DetachedHeadClass=class'N7_SeveredHeadPound'
Skins(0)=Combiner'KF_Specimens_Trip_N7.fleshpound_cmb'
}
Loading

0 comments on commit 439d8e8

Please sign in to comment.