from gungame.core.rules.instance import GunGameRules from gungame.core.rules.strings import rules_translations # Plugin from .configuration import ( count_grenade_kills, count_melee_kills, end_on_first_kill, ) from .info import info # ============================================================================= # >> RULES # ============================================================================= teamplay_rules = GunGameRules(info.name) teamplay_rules.register_convar_token( token_name='count_grenade_kills', convar=count_grenade_kills, ) teamplay_rules.register_convar_token( token_name='count_melee_kills', convar=count_melee_kills, ) teamplay_rules.register_convar_token( token_name='end_on_first_kill', convar=end_on_first_kill, ) for _key, _value in rules_translations.items(): if _key.startswith(f'{info.name}:Base:'): teamplay_rules.register_rule( name=_key, value=_value, )
# ../gungame/plugins/included/gg_deathmatch/rules.py """Creates the gg_deathmatch rules.""" # ============================================================================= # >> IMPORTS # ============================================================================= # GunGame from gungame.core.rules.instance import GunGameRules # Plugin from .configuration import delay from .info import info # ============================================================================= # >> RULES # ============================================================================= deathmatch_rules = GunGameRules(info.name) deathmatch_rules.register_convar_token( token_name='delay', convar=delay, convar_type='float', ) deathmatch_rules.register_all_rules()
# ../gungame/plugins/included/gg_multi_level/rules.py """Creates the gg_multi_level rules.""" # ============================================================================= # >> IMPORTS # ============================================================================= # GunGame from gungame.core.rules.instance import GunGameRules # Plugin from .configuration import levels from .info import info # ============================================================================= # >> RULES # ============================================================================= multi_level_rules = GunGameRules(info.name) multi_level_rules.register_convar_token( token_name='levels', convar=levels, ) multi_level_rules.register_all_rules()
from gungame.core.rules.instance import GunGameRules # Plugin from .configuration import ( killed_count, killed_levels, rescued_count, rescued_levels, stopped_count, stopped_levels, ) from .info import info # ============================================================================= # >> RULES # ============================================================================= hostage_objective_rules = GunGameRules(info.name) hostage_objective_rules.register_convar_token( token_name='killed_count', convar=killed_count, ) hostage_objective_rules.register_convar_token( token_name='killed_levels', convar=killed_levels, ) hostage_objective_rules.register_convar_token( token_name='rescued_count', convar=rescued_count, ) hostage_objective_rules.register_convar_token( token_name='rescued_levels', convar=rescued_levels, ) hostage_objective_rules.register_convar_token( token_name='stopped_count',
# ../gungame/plugins/included/gg_bombing_objective/rules.py """Creates the gg_bombing_objective rules.""" # ============================================================================= # >> IMPORTS # ============================================================================= # GunGame from gungame.core.rules.instance import GunGameRules # Plugin from .configuration import defused_levels, detonated_levels from .info import info # ============================================================================= # >> RULES # ============================================================================= bombing_objective_rules = GunGameRules(info.name) bombing_objective_rules.register_convar_token( token_name='defused_levels', convar=defused_levels, ) bombing_objective_rules.register_convar_token( token_name='detonated_levels', convar=detonated_levels, ) bombing_objective_rules.register_all_rules()