Zed fixes #16
@ -325,6 +325,11 @@ defaultproperties
|
|||||||
{
|
{
|
||||||
GameName="Nice Floor"
|
GameName="Nice Floor"
|
||||||
Description="Nice Edition of ScrN Killing Floor game mode (ScrnGameType)."
|
Description="Nice Edition of ScrN Killing Floor game mode (ScrnGameType)."
|
||||||
|
// custom player controller
|
||||||
|
PlayerControllerClass=class'NicePlayerController'
|
||||||
|
PlayerControllerClassName="NicePack.NicePlayerController"
|
||||||
|
// skills menu
|
||||||
|
LoginMenuClass="NicePack.NiceInvasionLoginMenu"
|
||||||
ZedTimeSlomoScale=0.4
|
ZedTimeSlomoScale=0.4
|
||||||
LesserZedTimeSlomoScale=0.6
|
LesserZedTimeSlomoScale=0.6
|
||||||
}
|
}
|
@ -188,25 +188,20 @@ simulated function PostBeginPlay()
|
|||||||
// Find game type and ScrN mutator
|
// Find game type and ScrN mutator
|
||||||
ScrnGT = ScrnGameType(Level.Game);
|
ScrnGT = ScrnGameType(Level.Game);
|
||||||
NiceGT = NiceGameType(Level.Game);
|
NiceGT = NiceGameType(Level.Game);
|
||||||
if(ScrnGT == none){
|
if (NiceGT == none)
|
||||||
Log("ERROR: Wrong GameType (requires at least ScrnGameType)", Class.Outer.Name);
|
{
|
||||||
|
Log("ERROR: Wrong GameType (requires NiceGameType)", class.Outer.Name);
|
||||||
Destroy();
|
Destroy();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Skills menu
|
// FIXME poosh forces this variable in his mutator...
|
||||||
ScrnGT.LoginMenuClass = string(class'NiceInvasionLoginMenu');
|
NiceGT.LoginMenuClass = "NicePack.NiceInvasionLoginMenu";
|
||||||
if(NiceGT != none)
|
NiceGT.RegisterMutator(self);
|
||||||
NiceGT.RegisterMutator(Self);
|
ScrnMut = NiceGT.ScrnBalanceMut;
|
||||||
ScrnMut = ScrnGT.ScrnBalanceMut;
|
|
||||||
if(bReplacePickups)
|
if(bReplacePickups)
|
||||||
ScrnMut.bReplacePickups = false;
|
ScrnMut.bReplacePickups = false;
|
||||||
// Replication of some variables
|
// Replication of some variables
|
||||||
SetReplicationData();
|
SetReplicationData();
|
||||||
// New player controller class
|
|
||||||
if(!ClassIsChildOf(ScrnGT.PlayerControllerClass, class'NicePlayerController')){
|
|
||||||
ScrnGT.PlayerControllerClass = class'NicePlayerController';
|
|
||||||
ScrnGT.PlayerControllerClassName = string(class'NicePlayerController');
|
|
||||||
}
|
|
||||||
// Game rules
|
// Game rules
|
||||||
GameRules = Spawn(class'NiceRules', self);
|
GameRules = Spawn(class'NiceRules', self);
|
||||||
// -- Lower starting HL
|
// -- Lower starting HL
|
||||||
|
@ -1537,6 +1537,7 @@ function ClientLocationalVoiceMessage(PlayerReplicationInfo Sender,
|
|||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
|
MidGameMenuClass="NicePack.NiceInvasionLoginMenu"
|
||||||
nicePlayerInfoVersionNumber=1
|
nicePlayerInfoVersionNumber=1
|
||||||
bAltSwitchesModes=True
|
bAltSwitchesModes=True
|
||||||
bAdvReloadCheck=True
|
bAdvReloadCheck=True
|
||||||
|
Loading…
Reference in New Issue
Block a user