fix UT2k4

This commit is contained in:
cclecle
2023-06-28 21:37:15 +01:00
parent 8f4c6d501a
commit 627c1e52e9
2 changed files with 13 additions and 3 deletions

View File

@@ -160,9 +160,19 @@ class RconUTEngineWebAdminUT2k4(RconUTEngineWebAdmin.RconUTEngineWebAdminMODCENT
result["bWeaponStay"] = ServerGame["bWeaponStay"]
else:
result["bWeaponStay"] = None
result["SpawnProtectionTime"] = ServerGame["SpawnProtectionTime"]
if "SpawnProtectionTime" in ServerGame:
result["SpawnProtectionTime"] = ServerGame["SpawnProtectionTime"]
else:
result["SpawnProtectionTime"] = None
result["bAllowBehindView"] = ServerRules["bAllowBehindView"]
result["bAllowWeaponThrowing"] = ServerRules["bAllowWeaponThrowing"]
if "bAllowWeaponThrowing" in ServerGame:
result["bAllowWeaponThrowing"] = ServerRules["bAllowWeaponThrowing"]
else:
result["bAllowWeaponThrowing"] = None
result["bWeaponShouldViewShake"] = ServerRules["bWeaponShouldViewShake"]
result["bAllowPrivateChat"] = ServerRules["bAllowPrivateChat"]
result["bAllowTaunts"] = ServerRules["bAllowTaunts"]

View File

@@ -7,4 +7,4 @@ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Unported
You should have received a copy of the license along with this
work. If not, see <https://creativecommons.org/licenses/by-nc-sa/4.0/>.
"""
__version__ = "0.1.12"
__version__ = "0.1.13"