dev #5

Merged
chacha merged 2 commits from dev into master 2023-09-28 09:50:19 +02:00
4 changed files with 73 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
# 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/>.
# pylint: disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,duplicate-code
# pylint: disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,duplicate-code,line-too-long
from __future__ import annotations
from typing import Union
@@ -491,6 +491,39 @@ class GameOption_COD4_DM_roundlimit(GameOption_COD4):
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_DM_numlives(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "dm_numlives"
szKeyName: str = "scr_dm_numlives"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_DM_playerrespawndelay(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "dm_playerrespawndelay"
szKeyName: str = "scr_dm_playerrespawndelay"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_DM_waverespawndelay(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "dm_waverespawndelay"
szKeyName: str = "scr_dm_waverespawndelay"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_TDM_scorelimit(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
@@ -524,6 +557,39 @@ class GameOption_COD4_TDM_roundlimit(GameOption_COD4):
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_TDM_numlives(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "tdm_numlives"
szKeyName: str = "scr_war_numlives"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_TDM_playerrespawndelay(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "tdm_playerrespawndelay"
szKeyName: str = "scr_war_playerrespawndelay"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_TDM_waverespawndelay(GameOption_COD4):
TValueType = OptionType.OT_INTEGER
szOptionName: str = "tdm_waverespawndelay"
szKeyName: str = "scr_war_waverespawndelay"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "0"
szHelp = ""
@GameOptions_Factory_Register
class GameOption_COD4_gametype(GameOption_COD4):
TValueType = OptionType.OT_STRING

View File

@@ -9,13 +9,9 @@
# 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/>.
# pylint: disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,duplicate-code
from __future__ import annotations
from typing import Union
# pylint: disable=missing-class-docstring,missing-module-docstring,missing-function-docstring,duplicate-code,line-too-long
import re
from os.path import join
from os import linesep
from __future__ import annotations
from .core_gamecfg import GameOptions_Factory_Register, OptionType
from .game_cod4 import GameOption_COD4
@@ -373,8 +369,8 @@ class GameOption_COD4_GunGame_WelcomeMessage_Messsage(GameOption_COD4_GunGame):
szKeyName: str = "wc_message"
bDblQuoted: bool = True
szPrefix = "set"
szDefaultValue = "Welcome to the server <name>!\Please enjoy your stay!"
szHelp = """The message [ <name> is replaced by players name and \ indicates a new line ]"""
szDefaultValue = r"Welcome to the server <name>!\Please enjoy your stay!"
szHelp = r"""The message [ <name> is replaced by players name and \ indicates a new line ]"""
@GameOptions_Factory_Register

View File

@@ -9,7 +9,7 @@
# 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/>.
# pylint: disable=missing-class-docstring,missing-function-docstring,duplicate-code
# pylint: disable=missing-class-docstring,missing-function-docstring,duplicate-code,line-too-long
"""UT2k4 command set"""
from __future__ import annotations
from typing import Union

View File

@@ -9,7 +9,7 @@
# 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/>.
# pylint: disable=missing-class-docstring,missing-function-docstring,duplicate-code
# pylint: disable=missing-class-docstring,missing-function-docstring,duplicate-code,line-too-long
"""UT99 command set"""
from __future__ import annotations
from typing import Union