This commit is contained in:
brostosjoined 2024-02-01 13:10:25 +03:00
commit eb827e7552
5 changed files with 674 additions and 579 deletions

View file

@ -1131,7 +1131,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "335d7191f26ba21ad10a5755d7741ce0"
}
} }
}, },
"onslaught_football": { "onslaught_football": {
@ -1145,7 +1150,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "e6267fec4dc7f874b1f8065863aae1cb"
}
} }
}, },
"lame_fight": { "lame_fight": {
@ -1159,7 +1169,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "eb0e5a8658e82b3aac6b04b68c1c0f60"
}
} }
}, },
"infinite_ninjas": { "infinite_ninjas": {
@ -1173,7 +1188,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "1b6e28bed97bf78430135c64a1fca2c2"
}
} }
}, },
"gravity_falls": { "gravity_falls": {
@ -1187,7 +1207,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "6d0b06b283ef702f41837f09e457d3b8"
}
} }
}, },
"bot_chase": { "bot_chase": {
@ -1201,7 +1226,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "c26e6aee6f545d911106431f3c2d8f0f"
}
} }
}, },
"down_into_the_abyss": { "down_into_the_abyss": {
@ -1215,7 +1245,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "d3c488671dd35c488e22002ddeb80aef"
}
} }
}, },
"better_deathmatch": { "better_deathmatch": {
@ -1229,7 +1264,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "0b607db2dbe3ab40aa05bd4bfd5b4afa"
}
} }
}, },
"better_elimination": { "better_elimination": {
@ -1243,7 +1283,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "18bbb7f6ddc4206c7039ad3b5f5facae"
}
} }
}, },
"bot_shower": { "bot_shower": {
@ -1257,7 +1302,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "1259e09ccd9b10ae82e4a6623572a4d2"
}
} }
}, },
"explodo_run": { "explodo_run": {
@ -1271,7 +1321,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "af5022d1f78887e0ac2b0cfc37f4f04a"
}
} }
}, },
"extinction": { "extinction": {
@ -1285,7 +1340,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "daf6c3e3d8663fa6d99c9e3f75033f36"
}
} }
}, },
"fat_pigs": { "fat_pigs": {
@ -1299,7 +1359,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "fe0d82c322ce01d8956af3131e135ad2"
}
} }
}, },
"flag_day": { "flag_day": {
@ -1313,7 +1378,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "e11fbf742e6556939ac8d986e2dd430b"
}
} }
} }
} }

View file

@ -1,5 +1,5 @@
#Ported by brostos to api 8 # Ported by brostos to api 8
# ba_meta require api 8 # ba_meta require api 8
# (see https://ballistica.net/wiki/meta-tag-system) # (see https://ballistica.net/wiki/meta-tag-system)
@ -73,8 +73,8 @@ class Icon(Icon):
shadow: float = 1.0, shadow: float = 1.0,
dead: bool = False, dead: bool = False,
): ):
super().__init__(player,position,scale,show_lives,show_death, super().__init__(player, position, scale, show_lives, show_death,
name_scale,name_maxwidth,flatness,shadow) name_scale, name_maxwidth, flatness, shadow)
if dead: if dead:
self._name_text.opacity = 0.2 self._name_text.opacity = 0.2
self.node.color = (0.7, 0.3, 0.3) self.node.color = (0.7, 0.3, 0.3)
@ -111,6 +111,7 @@ class Player(bs.Player['Team']):
self.dead = False self.dead = False
self.icons: list[Icon] = [] self.icons: list[Icon] = []
class Team(bs.Team[Player]): class Team(bs.Team[Player]):
"""Our team type for this game.""" """Our team type for this game."""
@ -230,7 +231,7 @@ class FlagDayGame(bs.TeamGameActivity[Player, Team]):
'color': (0, 0.2, 0), 'color': (0, 0.2, 0),
'shadow': 1.0, 'shadow': 1.0,
'flatness': 1.0, 'flatness': 1.0,
'position': (0,0), 'position': (0, 0),
'scale': 0.8, 'scale': 0.8,
'text': credits 'text': credits
}) })
@ -325,8 +326,8 @@ class FlagDayGame(bs.TeamGameActivity[Player, Team]):
self.bomb_survivor = self.prize_recipient self.bomb_survivor = self.prize_recipient
bs.broadcastmessage(bomb_rain, color=(1.0, 0.5, 0.16)) bs.broadcastmessage(bomb_rain, color=(1.0, 0.5, 0.16))
# Set positions for the bombs to drop # Set positions for the bombs to drop
for bzz in range(-5,6): for bzz in range(-5, 6):
for azz in range(-5,2): for azz in range(-5, 2):
# for each position make a bomb drop there # for each position make a bomb drop there
self.make_bomb(bzz, azz) self.make_bomb(bzz, azz)
self.give_points_timer = bs.Timer(3.3, self.give_points) self.give_points_timer = bs.Timer(3.3, self.give_points)
@ -415,7 +416,7 @@ class FlagDayGame(bs.TeamGameActivity[Player, Team]):
def make_health_box(self, position: Sequence[float]) -> None: def make_health_box(self, position: Sequence[float]) -> None:
if position == (0.0, 3.0, 0.0): if position == (0.0, 3.0, 0.0):
position = (random.randint(-6, 6), 6, random.randint(-6, 4)) position = (random.randint(-6, 6), 6, random.randint(-6, 4))
elif position == (0,0,0): elif position == (0, 0, 0):
position = random.choice( position = random.choice(
((-7, 6, -5), (7, 6, -5), (-7, 6, 1), (7, 6, 1))) ((-7, 6, -5), (7, 6, -5), (-7, 6, 1), (7, 6, 1)))
self.health_box = PowerupBox( self.health_box = PowerupBox(

View file

@ -1159,7 +1159,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "4b5479f51356b0c9c80c4b9968fea910"
}
} }
}, },
"xyz_tool": { "xyz_tool": {
@ -1173,7 +1178,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "3f301456128f422b7277c667f6c5c47e"
}
} }
}, },
"bots_can_accept_powerups": { "bots_can_accept_powerups": {
@ -1187,7 +1197,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "71eae7c5d0e05821809d348ea0c64837"
}
} }
}, },
"cheat_menu": { "cheat_menu": {
@ -1201,7 +1216,12 @@
} }
], ],
"versions": { "versions": {
"1.0.0": null "1.0.0": {
"api_version": 8,
"commit_sha": "4941d0c",
"released_on": "01-02-2024",
"md5sum": "079e857197979aabf53f232b3cce56ba"
}
} }
} }
} }

View file

@ -20,6 +20,7 @@ if TYPE_CHECKING:
class BotsCanAcceptPowerupsPlugin(babase.Plugin): class BotsCanAcceptPowerupsPlugin(babase.Plugin):
def on_app_running(self) -> None: def on_app_running(self) -> None:
SpazBot.oldinit = SpazBot.__init__ SpazBot.oldinit = SpazBot.__init__
def __init__(self) -> None: def __init__(self) -> None:
self.oldinit() self.oldinit()
pam = PowerupBoxFactory.get().powerup_accept_material pam = PowerupBoxFactory.get().powerup_accept_material

View file

@ -49,7 +49,7 @@ Configs = {
"SuperPunch": False, "SuperPunch": False,
"ImpactOnly": False, "ImpactOnly": False,
"StickyOnly": False, "StickyOnly": False,
"IceOnly" : False, "IceOnly": False,
"Infinite Bombs": False, "Infinite Bombs": False,
"More Are Coming": False, "More Are Coming": False,
"Credits": False, "Credits": False,
@ -235,7 +235,7 @@ class CheatMenuWindow(bui.Window):
color=(1, 0, 0)) color=(1, 0, 0))
elif change == False and config == "SuperPunch": elif change == False and config == "SuperPunch":
bui.screenmessage("Super Punch Deactivated", bui.screenmessage("Super Punch Deactivated",
color=(0.5,0,0)) color=(0.5, 0, 0))
update_config(config, change) update_config(config, change)
bui.getsound('gunCocking').play() bui.getsound('gunCocking').play()
except Exception: except Exception:
@ -317,6 +317,7 @@ def ishost():
if player.inputdevice.client_id == -1: if player.inputdevice.client_id == -1:
return True return True
def activity_loop(): def activity_loop():
if bs.get_foreground_host_activity() is not None: if bs.get_foreground_host_activity() is not None:
activity = bs.get_foreground_host_activity() activity = bs.get_foreground_host_activity()
@ -340,7 +341,7 @@ def activity_loop():
player.actor.bomb_type = 'ice' player.actor.bomb_type = 'ice'
elif not config["IceOnly"]: elif not config["IceOnly"]:
player.actor.bomb_type = 'normal' player.actor.bomb_type = 'normal'
player.actor.bomb_count= 1 player.actor.bomb_count = 1
if config["ImpactOnly"]: if config["ImpactOnly"]:
player.actor.bomb_type = 'impact' player.actor.bomb_type = 'impact'
@ -352,4 +353,6 @@ def activity_loop():
if config["Infinite Bombs"]: if config["Infinite Bombs"]:
player.actor.bomb_count = 100 player.actor.bomb_count = 100
timer = babase.AppTimer(2, activity_loop,repeat=True)
timer = babase.AppTimer(2, activity_loop, repeat=True)