wip
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
interface IMSKGS_GameInfo;
|
||||
|
||||
public static function UpdateGameSettings(KFGameInfo_Survival KFGI, string GameModeClass, IMSKGS MSKGS);
|
||||
public static function UpdateGameSettings(KFGameInfo_Survival KFGI, string GameModeClass, IMSKGS MSKGS, bool bCustomGame, bool bUsesStats);
|
||||
|
@ -1,4 +1,4 @@
|
||||
class MSKGS_GM_Endless extends KFGameInfo_Endless;
|
||||
class MSKGS_Endless extends KFGameInfo_Endless;
|
||||
|
||||
const GIC = "KFGameContent.KFGameInfo_Endless";
|
||||
|
||||
@ -19,7 +19,7 @@ public function UpdateGameSettings()
|
||||
|
||||
if (GI != None)
|
||||
{
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS);
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS, bIsCustomGame, !IsUnrankedGame());
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, cons
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
bIsCustomGame = false
|
||||
|
||||
}
|
@ -106,7 +106,7 @@ defaultproperties
|
||||
{
|
||||
PlayerGivesBoostFirstDefault = "<player> gives boost to this server!"
|
||||
PlayerGivesBoostDefault = "<player> gives +<playerboost>% XP boost to this server!"
|
||||
TotalBoostDefault = "XP boost: +<totalboost>%"
|
||||
TotalBoostDefault = "Total XP boost: +<totalboost>%"
|
||||
MaxDefault = "(MAX)"
|
||||
PlayerLeftDefault = "<player> left the server."
|
||||
NoBoostDefault = "Now there is no XP boost."
|
||||
|
@ -1,4 +1,4 @@
|
||||
class MSKGS_GM_Objective extends KFGameInfo_Objective;
|
||||
class MSKGS_Objective extends KFGameInfo_Objective;
|
||||
|
||||
const GIC = "KFGameContent.KFGameInfo_Objective";
|
||||
|
||||
@ -19,7 +19,7 @@ public function UpdateGameSettings()
|
||||
|
||||
if (GI != None)
|
||||
{
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS);
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS, bIsCustomGame, !IsUnrankedGame());
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, cons
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
bIsCustomGame = false
|
||||
|
||||
}
|
@ -5,10 +5,10 @@ const MSKGS_LMT = class'MSKGS_LocalMessage';
|
||||
enum MSKGS_PlayerType
|
||||
{
|
||||
MSKGS_Unknown,
|
||||
MSKGS_Owner,
|
||||
MSKGS_Admin,
|
||||
MSKGS_Player,
|
||||
MSKGS_Group,
|
||||
MSKGS_Player
|
||||
MSKGS_Admin,
|
||||
MSKGS_Owner
|
||||
};
|
||||
|
||||
var private IMSKGS MSKGS;
|
||||
@ -105,6 +105,12 @@ private simulated function CheckGroupMembership()
|
||||
if (WorldInfo.NetMode == NM_StandAlone
|
||||
|| (ObtainLogLevel && ObtainGroupID && ObtainCheckGroupTimer && Role < ROLE_Authority))
|
||||
{
|
||||
if (GetKFPC() != None && KFPC.bIsEosPlayer)
|
||||
{
|
||||
`Log_Debug("EGS Player, skip group check");
|
||||
return;
|
||||
}
|
||||
|
||||
if (OSS == None)
|
||||
{
|
||||
OSS = OnlineSubsystemSteamworks(class'GameEngine'.static.GetOnlineSubsystem());
|
||||
@ -188,7 +194,12 @@ private reliable server function ServerApplyMembership()
|
||||
`Log_Trace();
|
||||
|
||||
GroupMember = true;
|
||||
MSKGS.IncreaseXPBoost(GetKFPC());
|
||||
|
||||
if (PlayerType() <= MSKGS_Group)
|
||||
{
|
||||
`Log_Info("Increase boost:" @ PlayerType());
|
||||
MSKGS.IncreaseXPBoost(GetKFPC());
|
||||
}
|
||||
}
|
||||
|
||||
public reliable client function WriteToChatLocalized(E_MSKGS_LocalMessageType LMT, String HexColor, optional String String1, optional String String2, optional String String3)
|
||||
|
@ -1,4 +1,4 @@
|
||||
class MSKGS_GM_Survival extends KFGameInfo_Survival;
|
||||
class MSKGS_Survival extends KFGameInfo_Survival;
|
||||
|
||||
const GIC = "KFGameContent.KFGameInfo_Survival";
|
||||
|
||||
@ -19,7 +19,7 @@ public function UpdateGameSettings()
|
||||
|
||||
if (GI != None)
|
||||
{
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS);
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS, bIsCustomGame, !IsUnrankedGame());
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, cons
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
bIsCustomGame = false
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
class MSKGS_GM_VersusSurvival extends KFGameInfo_VersusSurvival;
|
||||
class MSKGS_VersusSurvival extends KFGameInfo_VersusSurvival;
|
||||
|
||||
const GIC = "KFGameContent.KFGameInfo_VersusSurvival";
|
||||
|
||||
@ -19,7 +19,7 @@ public function UpdateGameSettings()
|
||||
|
||||
if (GI != None)
|
||||
{
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS);
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS, bIsCustomGame, !IsUnrankedGame());
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, cons
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
bIsCustomGame = false
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
class MSKGS_GM_WeeklySurvival extends KFGameInfo_WeeklySurvival;
|
||||
class MSKGS_WeeklySurvival extends KFGameInfo_WeeklySurvival;
|
||||
|
||||
const GIC = "KFGameContent.KFGameInfo_WeeklySurvival";
|
||||
|
||||
@ -19,7 +19,7 @@ public function UpdateGameSettings()
|
||||
|
||||
if (GI != None)
|
||||
{
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS);
|
||||
GI.UpdateGameSettings(Self, GIC, MSKGS, bIsCustomGame, !IsUnrankedGame());
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ protected function DistributeMoneyAndXP(class<KFPawn_Monster> MonsterClass, cons
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
bIsCustomGame = false
|
||||
|
||||
}
|
Reference in New Issue
Block a user