wip
This commit is contained in:
parent
158dd4e0e6
commit
76a9f23530
57
MskGs/Classes/CFG_Lifespan.uc
Normal file
57
MskGs/Classes/CFG_Lifespan.uc
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
class CFG_Lifespan extends Object
|
||||||
|
config(MSKGS)
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var public config int Weapon;
|
||||||
|
var public config int Dosh;
|
||||||
|
|
||||||
|
public static function InitConfig(int Version, int LatestVersion, E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Version)
|
||||||
|
{
|
||||||
|
case `NO_CONFIG:
|
||||||
|
ApplyDefault(LogLevel);
|
||||||
|
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LatestVersion != Version)
|
||||||
|
{
|
||||||
|
StaticSaveConfig();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function Load(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Locs(default.SortPolicy))
|
||||||
|
{
|
||||||
|
case "counterasc": return;
|
||||||
|
case "counterdesc": return;
|
||||||
|
case "nameasc": return;
|
||||||
|
case "namedesc": return;
|
||||||
|
case "playtimetotalasc": return;
|
||||||
|
case "playtimetotaldesc": return;
|
||||||
|
case "playtimeavgasc": return;
|
||||||
|
case "playtimeavgdesc": return;
|
||||||
|
}
|
||||||
|
|
||||||
|
`Log_Error("Can't load SortPolicy (" $ default.SortPolicy $ "), must be one of: CounterAsc CounterDesc NameAsc NameDesc PlaytimeTotalAsc PlaytimeTotalDesc PlaytimeAvgAsc PlaytimeAvgDesc");
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static function ApplyDefault(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
default.bEnable = false;
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
57
MskGs/Classes/CFG_SpawnManager.uc
Normal file
57
MskGs/Classes/CFG_SpawnManager.uc
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
class MapStat extends Object
|
||||||
|
config(MSKGS)
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var public config bool bEnable;
|
||||||
|
var public config String SortPolicy;
|
||||||
|
|
||||||
|
public static function InitConfig(int Version, int LatestVersion, E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Version)
|
||||||
|
{
|
||||||
|
case `NO_CONFIG:
|
||||||
|
ApplyDefault(LogLevel);
|
||||||
|
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LatestVersion != Version)
|
||||||
|
{
|
||||||
|
StaticSaveConfig();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function Load(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Locs(default.SortPolicy))
|
||||||
|
{
|
||||||
|
case "counterasc": return;
|
||||||
|
case "counterdesc": return;
|
||||||
|
case "nameasc": return;
|
||||||
|
case "namedesc": return;
|
||||||
|
case "playtimetotalasc": return;
|
||||||
|
case "playtimetotaldesc": return;
|
||||||
|
case "playtimeavgasc": return;
|
||||||
|
case "playtimeavgdesc": return;
|
||||||
|
}
|
||||||
|
|
||||||
|
`Log_Error("Can't load SortPolicy (" $ default.SortPolicy $ "), must be one of: CounterAsc CounterDesc NameAsc NameDesc PlaytimeTotalAsc PlaytimeTotalDesc PlaytimeAvgAsc PlaytimeAvgDesc");
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static function ApplyDefault(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
default.bEnable = false;
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
57
MskGs/Classes/CFG_XPBoost.uc
Normal file
57
MskGs/Classes/CFG_XPBoost.uc
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
class MapStat extends Object
|
||||||
|
config(MSKGS)
|
||||||
|
abstract;
|
||||||
|
|
||||||
|
var public config bool bEnable;
|
||||||
|
var public config String SortPolicy;
|
||||||
|
|
||||||
|
public static function InitConfig(int Version, int LatestVersion, E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Version)
|
||||||
|
{
|
||||||
|
case `NO_CONFIG:
|
||||||
|
ApplyDefault(LogLevel);
|
||||||
|
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LatestVersion != Version)
|
||||||
|
{
|
||||||
|
StaticSaveConfig();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function Load(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
switch (Locs(default.SortPolicy))
|
||||||
|
{
|
||||||
|
case "counterasc": return;
|
||||||
|
case "counterdesc": return;
|
||||||
|
case "nameasc": return;
|
||||||
|
case "namedesc": return;
|
||||||
|
case "playtimetotalasc": return;
|
||||||
|
case "playtimetotaldesc": return;
|
||||||
|
case "playtimeavgasc": return;
|
||||||
|
case "playtimeavgdesc": return;
|
||||||
|
}
|
||||||
|
|
||||||
|
`Log_Error("Can't load SortPolicy (" $ default.SortPolicy $ "), must be one of: CounterAsc CounterDesc NameAsc NameDesc PlaytimeTotalAsc PlaytimeTotalDesc PlaytimeAvgAsc PlaytimeAvgDesc");
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static function ApplyDefault(E_LogLevel LogLevel)
|
||||||
|
{
|
||||||
|
`Log_TraceStatic();
|
||||||
|
|
||||||
|
default.bEnable = false;
|
||||||
|
default.SortPolicy = "CounterDesc";
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -5,7 +5,7 @@ const GIC = "KFGameContent.KFGameInfo_Endless";
|
|||||||
|
|
||||||
var public MSKGS_Mut Mut;
|
var public MSKGS_Mut Mut;
|
||||||
|
|
||||||
simulated function ExileServerUsingKickBan()
|
public simulated function ExileServerUsingKickBan()
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ function main ()
|
|||||||
(
|
(
|
||||||
ProxyZed="Proxy_${Zed}_${PercentStr}"
|
ProxyZed="Proxy_${Zed}_${PercentStr}"
|
||||||
TmpZed="$TmpDir/$ProxyZed.uc"
|
TmpZed="$TmpDir/$ProxyZed.uc"
|
||||||
echo $ProxyZed
|
echo "$ProxyZed"
|
||||||
cp "$PawnsDir/$Zed.uc" "$TmpZed"
|
cp "$PawnsDir/$Zed.uc" "$TmpZed"
|
||||||
sed -i "s|$Zed|$ProxyZed|g" "$TmpZed"
|
sed -i "s|$Zed|$ProxyZed|g" "$TmpZed"
|
||||||
grep -Po 'XPValues\(\d\)=(\d+)' "$TmpZed" | \
|
grep -Po 'XPValues\(\d\)=(\d+)' "$TmpZed" | \
|
||||||
|
@ -1 +1,9 @@
|
|||||||
Who are you? What are you doing here? O_o
|
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.
|
Binary file not shown.
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 269 KiB |
Loading…
Reference in New Issue
Block a user