mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
syncing changes from ballistica/master
This commit is contained in:
parent
2a07c0c840
commit
8913080562
227 changed files with 15756 additions and 12772 deletions
40
dist/ba_root/mods/custom_hooks.py
vendored
40
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -1,6 +1,6 @@
|
|||
"""Custom hooks to pull of the in-game functions."""
|
||||
|
||||
# ba_meta require api 8
|
||||
# ba_meta require api 9
|
||||
# (see https://ballistica.net/wiki/meta-tag-system)
|
||||
|
||||
# pylint: disable=import-error
|
||||
|
|
@ -70,7 +70,7 @@ class modSetup(babase.Plugin):
|
|||
if (settings["useV2Account"]):
|
||||
|
||||
if (plus.get_v1_account_state() ==
|
||||
'signed_in' and plus.get_v1_account_type() == 'V2'):
|
||||
'signed_in' and plus.get_v1_account_type() == 'V2'):
|
||||
logging.debug("Account V2 is active")
|
||||
else:
|
||||
logging.warning("Account V2 login require ....stay tuned.")
|
||||
|
|
@ -337,21 +337,21 @@ def shutdown(func) -> None:
|
|||
"Server will restart on next opportunity. (series end)")
|
||||
_babase.restart_scheduled = True
|
||||
bs.get_foreground_host_activity().restart_msg = bs.newnode('text',
|
||||
attrs={
|
||||
'text': "Server going to restart after this series.",
|
||||
'flatness': 1.0,
|
||||
'h_align': 'right',
|
||||
'v_attach': 'bottom',
|
||||
'h_attach': 'right',
|
||||
'scale': 0.5,
|
||||
'position': (
|
||||
-25,
|
||||
54),
|
||||
'color': (
|
||||
1,
|
||||
0.5,
|
||||
0.7)
|
||||
})
|
||||
attrs={
|
||||
'text': "Server going to restart after this series.",
|
||||
'flatness': 1.0,
|
||||
'h_align': 'right',
|
||||
'v_attach': 'bottom',
|
||||
'h_attach': 'right',
|
||||
'scale': 0.5,
|
||||
'position': (
|
||||
-25,
|
||||
54),
|
||||
'color': (
|
||||
1,
|
||||
0.5,
|
||||
0.7)
|
||||
})
|
||||
func(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
|
|
@ -373,9 +373,9 @@ def on_player_request(func) -> bool:
|
|||
count += 1
|
||||
if count >= settings["maxPlayersPerDevice"]:
|
||||
bs.broadcastmessage("Reached max players limit per device",
|
||||
clients=[
|
||||
player.inputdevice.client_id],
|
||||
transient=True, )
|
||||
clients=[
|
||||
player.inputdevice.client_id],
|
||||
transient=True, )
|
||||
return False
|
||||
return func(*args, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue