mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
auto stats reset , more mini games , known bugs fix
This commit is contained in:
parent
d7f7d751f5
commit
a9441c3e0a
15 changed files with 82 additions and 30 deletions
19
dist/ba_root/mods/custom_hooks.py
vendored
19
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -165,9 +165,18 @@ def on_kick_vote_end():
|
|||
|
||||
|
||||
|
||||
|
||||
import os
|
||||
import importlib
|
||||
def importgames():
|
||||
from games import SquidRace
|
||||
from games import StumbleRace
|
||||
from games import SubwayRun
|
||||
from maps import InTheAir
|
||||
games=os.listdir("ba_root/mods/games")
|
||||
for game in games:
|
||||
if game.endswith(".py") or game.endswith(".so"):
|
||||
importlib.import_module("games."+game.replace(".so","").replace(".py",""))
|
||||
maps=os.listdir("ba_root/mods/maps")
|
||||
for map in maps:
|
||||
if map.endswith(".py") or map.endswith(".so"):
|
||||
importlib.import_module("maps."+map.replace(".so","").replace(".py",""))
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue