Skip to content

Commit

Permalink
[release] v3.1 Public Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vel-San committed Aug 31, 2020
1 parent d8db240 commit a3ec888
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 30 deletions.
9 changes: 0 additions & 9 deletions Classes/KFVP.uc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ function Initialized()
{
local SoundGroup S;

// Change ZED Skins & Fix for SirenScream
ApplyMandatoryChanges();

// Siren
if (bSiren){
MutLog("-----|| Siren Custom Sound Enabled ||-----");
Expand Down Expand Up @@ -167,12 +164,6 @@ simulated function MutLog(string s)
log(s, 'ZedVoiceChanger');
}

simulated function ApplyMandatoryChanges(){
MutLog("-----|| Changing Monster Collection ||-----");
class'KFGameType'.Default.MonsterCollection = class'KFMonstersCustomCollection';
class'KFGameType'.Default.SpecialEventMonsterCollections[0] = class'KFMonstersCustomCollection';
}

defaultproperties
{
// Bool Vars
Expand Down
60 changes: 45 additions & 15 deletions Classes/KFZedVoiceChanger.uc
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Class KFZedVoiceChanger extends Mutator config(KFZedVoiceChanger);

#exec OBJ LOAD FILE=KF_VP.uax

var() config bool bSiren, bScrake, bFleshP, bPatty, bBloat, bClot, bCrawler, bGib, bDecap;
var bool Siren, Scrake, FleshP, Patty, Bloat, Clot, Crawler, Gib, Decap;
var() config bool bSiren, bScrake, bFleshP, bPatty, bBloat, bClot, bCrawler, bGib, bDecap, bDEBUG;
var bool Siren, Scrake, FleshP, Patty, Bloat, Clot, Crawler, Gib, Decap, DEBUG;

replication
{
unreliable if (Role == ROLE_Authority)
bSiren, bScrake, bFleshP, bPatty, bBloat, bClot, bCrawler, bGib, bDecap,
Siren, Scrake, FleshP, Patty, Bloat, Clot, Crawler, Gib, Decap;
bSiren, bScrake, bFleshP, bPatty, bBloat, bClot, bCrawler, bGib, bDecap, bDEBUG,
Siren, Scrake, FleshP, Patty, Bloat, Clot, Crawler, Gib, Decap, DEBUG;
}

function PreBeginPlay()
Expand All @@ -36,21 +36,25 @@ simulated function PostBeginPlay()
Crawler = bCrawler;
Gib = bGib;
Decap = bDecap;
DEBUG = bDEBUG;
SetTimer(0.1,False);
}

simulated function PostNetBeginPlay()
{
// Future code goes here if values needed from the server
TimeStampLog("-----|| Server Vars Replicated ||-----");
MutLog("-----|| Siren: " $Siren$ " ||-----");
MutLog("-----|| Scrake: " $Scrake$ " ||-----");
MutLog("-----|| FleshP: " $FleshP$ " ||-----");
MutLog("-----|| Patty: " $Patty$ " ||-----");
MutLog("-----|| Bloat: " $Bloat$ " ||-----");
MutLog("-----|| Clot: " $Clot$ " ||-----");
MutLog("-----|| Crawler: " $Crawler$ " ||-----");
MutLog("-----|| Gib: " $Gib$ " ||-----");
MutLog("-----|| Decap: " $Decap$ " ||-----");
if(DEBUG){
MutLog("-----|| DEBUG - Siren: " $Siren$ " ||-----");
MutLog("-----|| DEBUG - Scrake: " $Scrake$ " ||-----");
MutLog("-----|| DEBUG - FleshP: " $FleshP$ " ||-----");
MutLog("-----|| DEBUG - Patty: " $Patty$ " ||-----");
MutLog("-----|| DEBUG - Bloat: " $Bloat$ " ||-----");
MutLog("-----|| DEBUG - Clot: " $Clot$ " ||-----");
MutLog("-----|| DEBUG - Crawler: " $Crawler$ " ||-----");
MutLog("-----|| DEBUG - Gib: " $Gib$ " ||-----");
MutLog("-----|| DEBUG - Decap: " $Decap$ " ||-----");
}
class'KFVP'.default.bSiren = Siren;
class'KFVP'.default.bScrake = Scrake;
Expand All @@ -65,7 +69,7 @@ simulated function PostNetBeginPlay()
simulated function Tick( float Delta )
{
// Make sure client did download the voice pack too.
// Forces client to download the VoicePack
if( Level.NetMode!=NM_DedicatedServer){
Class'KFVP'.Static.InitializeSoundsFor(Level.GetLocalPlayerController());
}
Expand All @@ -85,6 +89,8 @@ static function FillPlayInfo(PlayInfo PlayInfo)
PlayInfo.AddSetting("KFZedVoiceChanger", "bCrawler", "Crawler", 0, 0, "check");
PlayInfo.AddSetting("KFZedVoiceChanger", "bGib", "Gib", 0, 0, "check");
PlayInfo.AddSetting("KFZedVoiceChanger", "bDecap", "Decap", 0, 0, "check");
PlayInfo.AddSetting("KFZedVoiceChanger", "bDEBUG", "DEBUG", 0, 0, "check");

}

static function string GetDescriptionText(string SettingName)
Expand All @@ -109,6 +115,8 @@ static function string GetDescriptionText(string SettingName)
return "Removes ZED Death sound after being killed by a headshot, works best with 'Decap' Enabled!";
case "bDecap":
return "POP Sound for Headshots! POP POP POP!";
case "bDEBUG":
return "Shows some Debugging messages in the LOG. Better to keep off!";
default:
return Super.GetDescriptionText(SettingName);
}
Expand All @@ -124,11 +132,33 @@ simulated function MutLog(string s)
log(s, 'ZedVoiceChanger');
}

function Timer(){
ApplyMonsterCollection();
}

simulated function ApplyMonsterCollection(){
local KFGameType KF;
KF = KFGameType(Level.Game);

MutLog("-----|| Changing Monster Collection ||-----");

KF.MonsterCollection = class'KFMonstersCustomCollection';
KF.SpecialEventMonsterCollections[0] = class'KFMonstersCustomCollection';

KF.PrepareSpecialSquads();
KF.LoadUpMonsterList();

if(DEBUG){
MutLog("-----|| DEBUG - Monster Collection: " $KF.MonsterCollection$ " ||-----");
MutLog("-----|| DEBUG - SpecialEventMonsterCollections: " $KF.SpecialEventMonsterCollections[0]$ " ||-----");
}
}
defaultproperties
{
// Mut Vars
GroupName="KF-ZedVoiceChanger"
FriendlyName="ZED Voice Changer Mut - v3.0"
FriendlyName="ZED Voice Changer Mut - v3.1"
Description="Apply Custom sounds for some ZEDs & Mixes up ZED Skins; By Vel-San & Marco"
bAlwaysRelevant=True
RemoteRole=ROLE_SimulatedProxy
Expand Down
8 changes: 2 additions & 6 deletions Steam_WorkShop_Description/Workshop-Text
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Mutator that applies different sound effects for ZEDs, also, mixes up ZED Skins (Summer & Halloween)
Mutator that applies different sound effects for ZEDs, also, mixes up some ZED Skins (Summer & Halloween)

NOTE:

Expand Down Expand Up @@ -29,12 +29,8 @@ NOTE:

- Mut: KFZedVoiceChanger.KFZedVoiceChanger

[h1][b][u]Known Bugs[/u][/b][/h1]

You Tell Me.

[h1][b][u]Manual Download Links (Recommended)[/u][/b][/h1]

You can find it under 'Not Whitelisted' folder named 'KF-ZedVoiceChanger-v3.0'
You can find it under 'Not Whitelisted' folder named 'KF-ZedVoiceChanger-v3.1'

MEGA Link: https://mega DOT nz/folder/YDoEmKiC#s6FGAtgh40-TvB4bHsLaMQ

0 comments on commit a3ec888

Please sign in to comment.