diff --git a/MskGs/Classes/MskGsMut.uc b/MskGs/Classes/MskGsMut.uc index 6d401e7..297c5a9 100644 --- a/MskGs/Classes/MskGsMut.uc +++ b/MskGs/Classes/MskGsMut.uc @@ -7,7 +7,6 @@ var config int ConfigVersion; var config int WeapLifespan; var config int DoshLifespan; -var config array AdminList; var config array PerPlayerMaxMonsters; var public bool bXpNotifications; @@ -15,7 +14,6 @@ var bool bInitialized; var array RepClients; var array MskGsMemberList; -var array AdminUIDList; function InitMutator(string Options, out string ErrorMessage) { @@ -85,10 +83,6 @@ simulated event PostBeginPlay() function Initialize() { - local OnlineSubsystem steamworks; - local string Person; - local UniqueNetId PersonUID; - if (bInitialized) return; if (MyKFGI == None || MyKFGI.MyKFGRI == None) @@ -127,23 +121,6 @@ function Initialize() MskGs_WeeklySurvival(MyKFGI).Mut = Self; } - steamworks = class'GameEngine'.static.GetOnlineSubsystem(); - - foreach AdminList(Person) - { - if (IsUID(Person) && steamworks.StringToUniqueNetId(Person, PersonUID)) - { - if (AdminUIDList.Find('Uid', PersonUID.Uid) == -1) - AdminUIDList.AddItem(PersonUID); - } - else if (steamworks.Int64ToUniqueNetId(Person, PersonUID)) - { - if (AdminUIDList.Find('Uid', PersonUID.Uid) == -1) - AdminUIDList.AddItem(PersonUID); - } - else `Log("[MskGsMut] WARN: Can't add admin:"@Person); - } - ModifySpawnManager(); `Log("[MskGsMut] Mutator loaded."); @@ -204,21 +181,6 @@ function bool CheckRelevance(Actor Other) return SuperRelevant; } -function bool PreventDeath(Pawn Killed, Controller Killer, class damageType, vector HitLocation) -{ - local KFWeapon TempWeapon; - local KFPawn_Human KFP; - - KFP = KFPawn_Human(Killed); - - if (Role >= ROLE_Authority && KFP != None && KFP.InvManager != none) - foreach KFP.InvManager.InventoryActors(class'KFWeapon', TempWeapon) - if (TempWeapon != none && TempWeapon.bDropOnDeath && TempWeapon.CanThrow()) - KFP.TossInventory(TempWeapon); - - return Super.PreventDeath(Killed, Killer, damageType, HitLocation); -} - function AddMskGsMember(Controller C) { MskGsMemberList.AddItem(C); @@ -257,9 +219,6 @@ function NotifyLogin(Controller C) RepInfo.Mut = Self; RepClients.AddItem(RepInfo); - if (AdminUIDList.Find('Uid', C.PlayerReplicationInfo.UniqueId.Uid) != -1) - C.PlayerReplicationInfo.bAdmin = true; - super.NotifyLogin(C); } diff --git a/PublicationContent/description.txt b/PublicationContent/description.txt index 16b56fa..b599c25 100644 --- a/PublicationContent/description.txt +++ b/PublicationContent/description.txt @@ -1 +1,9 @@ -Who are you? What are you doing here? O_o \ No newline at end of file +Mutator providing some functions of [url=https://steamcommunity.com/groups/msk-gs]MSK-GS[/url] servers. + +Contains implementations of my ideas and/or combinations of other mutators for compatibility. + +Not intended for use with other servers and will never be made available to the public, so don't ask me how to use it. + +Of course I can't forbid you to use it, but then don't be surprised that your server can break at any second due to the fact that I suddenly decided to delete or redo something in this mutator. + +If you are interested in some feature from this mutator, you can subscribe to [url=https://steamcommunity.com/id/GenZmeY/myworkshopfiles/]me in the steam workshop[/url] and follow my work. I try to post everything I do to the public. I think someday I will be able to put everything into separate mutators and abandon this hodgepodge. \ No newline at end of file diff --git a/PublicationContent/preview.png b/PublicationContent/preview.png index 2263ae2..ff8e584 100644 Binary files a/PublicationContent/preview.png and b/PublicationContent/preview.png differ