mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-11-07 17:36:00 +00:00
Merge pull request #236 from Freaku17/main
Update some gamemodes for co-op support
This commit is contained in:
commit
f6dcfc656d
6 changed files with 113 additions and 88 deletions
|
|
@ -1083,7 +1083,7 @@
|
|||
}
|
||||
},
|
||||
"you_vs_bombsquad": {
|
||||
"description": "You against bombsquad solo or with friends",
|
||||
"description": "You against bombsquad solo or with friends. Playable in co-op",
|
||||
"external_url": "",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -1093,6 +1093,12 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "9ca6039",
|
||||
"released_on": "15-02-2024",
|
||||
"md5sum": "cb4698e70fd94402eca199250564ffba"
|
||||
},
|
||||
"1.0.0": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "718039b",
|
||||
|
|
@ -1121,7 +1127,7 @@
|
|||
}
|
||||
},
|
||||
"lame_fight": {
|
||||
"description": "Save World With Super Powers",
|
||||
"description": "Save World With Super Powers. Playable in co-op",
|
||||
"external_url": "",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -1131,6 +1137,12 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "9ca6039",
|
||||
"released_on": "15-02-2024",
|
||||
"md5sum": "9072f98eef0739474b2839a0866be969"
|
||||
},
|
||||
"1.0.0": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "4941d0c",
|
||||
|
|
@ -1178,7 +1190,7 @@
|
|||
}
|
||||
},
|
||||
"bot_chase": {
|
||||
"description": "Try to survive from bots!",
|
||||
"description": "Try to survive from bots! Playable in co-op",
|
||||
"external_url": "",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -1188,6 +1200,12 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "9ca6039",
|
||||
"released_on": "15-02-2024",
|
||||
"md5sum": "209ddaa4c4e128650730771db4d0588c"
|
||||
},
|
||||
"1.0.0": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "5063690",
|
||||
|
|
@ -1273,7 +1291,7 @@
|
|||
}
|
||||
},
|
||||
"explodo_run": {
|
||||
"description": "Cursed meteor shower of crazy Captain Jack trying take your soul",
|
||||
"description": "Cursed meteor shower of crazy Captain Jack trying take your soul. Playable in co-op",
|
||||
"external_url": "",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -1283,6 +1301,12 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "9ca6039",
|
||||
"released_on": "15-02-2024",
|
||||
"md5sum": "4d711d5eb874cd63a81e9499abb74dd1"
|
||||
},
|
||||
"1.0.0": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "ec6286e",
|
||||
|
|
@ -1292,7 +1316,7 @@
|
|||
}
|
||||
},
|
||||
"extinction": {
|
||||
"description": "Survive the Extinction.",
|
||||
"description": "Survive the Extinction. Playable in co-op",
|
||||
"external_url": "",
|
||||
"authors": [
|
||||
{
|
||||
|
|
@ -1302,6 +1326,12 @@
|
|||
}
|
||||
],
|
||||
"versions": {
|
||||
"1.0.1": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "9ca6039",
|
||||
"released_on": "15-02-2024",
|
||||
"md5sum": "1e74b3d2e38ac310a1b3fc28e13833dd"
|
||||
},
|
||||
"1.0.0": {
|
||||
"api_version": 8,
|
||||
"commit_sha": "5063690",
|
||||
|
|
|
|||
|
|
@ -16,17 +16,6 @@ if TYPE_CHECKING:
|
|||
from typing import Any, List, Type, Optional
|
||||
|
||||
|
||||
def ba_get_api_version():
|
||||
return 8
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [bs._level.Level(
|
||||
'Bot Chase', gametype=BotChaseGame,
|
||||
settings={},
|
||||
preview_texture_name='footballStadiumPreview')]
|
||||
|
||||
|
||||
class Player(bs.Player['Team']):
|
||||
"""Our player type for this game"""
|
||||
|
||||
|
|
@ -221,3 +210,13 @@ class BotChaseGame(bs.TeamGameActivity[Player, Team]):
|
|||
results.set_team_score(team, int(1000.0 * longest_life))
|
||||
|
||||
self.end(results=results)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class plugin(babase.Plugin):
|
||||
def __init__(self):
|
||||
## Campaign support ##
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name='Bot Chase', gametype=BotChaseGame,
|
||||
settings={},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
|
|
|
|||
|
|
@ -18,22 +18,6 @@ if TYPE_CHECKING:
|
|||
from typing import Any, Type, Dict, List, Optional
|
||||
|
||||
|
||||
def ba_get_api_version():
|
||||
return 8
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [bs._level.Level(
|
||||
'Explodo Run',
|
||||
gametype=ExplodoRunGame,
|
||||
settings={},
|
||||
preview_texture_name='rampagePreview'), bs._level.Level(
|
||||
'Epic Explodo Run',
|
||||
gametype=ExplodoRunGame,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='rampagePreview')]
|
||||
|
||||
|
||||
class Player(bs.Player['Team']):
|
||||
"""Our player type for this game."""
|
||||
|
||||
|
|
@ -142,3 +126,18 @@ class ExplodoRunGame(bs.TeamGameActivity[Player, Team]):
|
|||
|
||||
# Ends the activity.
|
||||
self.end(results)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class plugin(babase.Plugin):
|
||||
def __init__(self):
|
||||
## Campaign support ##
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name='Explodo Run',
|
||||
gametype=ExplodoRunGame,
|
||||
settings={},
|
||||
preview_texture_name='rampagePreview'))
|
||||
babase.app.classic.add_coop_practice_level(bs.Level('Epic Explodo Run',
|
||||
gametype=ExplodoRunGame,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='rampagePreview'))
|
||||
|
|
|
|||
|
|
@ -18,23 +18,6 @@ if TYPE_CHECKING:
|
|||
from typing import Any, Sequence, Optional, Type
|
||||
|
||||
|
||||
def ba_get_api_version():
|
||||
return 8
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [bs._level.Level(
|
||||
'Extinction',
|
||||
gametype=NewMeteorShowerGame,
|
||||
settings={'Epic Mode': False},
|
||||
preview_texture_name='footballStadiumPreview'),
|
||||
bs._level.Level(
|
||||
'Epic Extinction',
|
||||
gametype=NewMeteorShowerGame,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview')]
|
||||
|
||||
|
||||
class Meteor(bs.Actor):
|
||||
"""A giant meteor instead of bombs."""
|
||||
|
||||
|
|
@ -255,3 +238,18 @@ class NewMeteorShowerGame(bs.TeamGameActivity[Player, Team]):
|
|||
results.set_team_score(team, int(1000.0 * longest_life))
|
||||
|
||||
self.end(results=results)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class plugin(babase.Plugin):
|
||||
def __init__(self):
|
||||
## Campaign support ##
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name='Extinction',
|
||||
gametype=NewMeteorShowerGame,
|
||||
settings={'Epic Mode': False},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
babase.app.classic.add_coop_practice_level(bs.Level('Epic Extinction',
|
||||
gametype=NewMeteorShowerGame,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
|
|
|
|||
|
|
@ -18,18 +18,6 @@ if TYPE_CHECKING:
|
|||
from typing import Any, Type, Dict, List, Optional
|
||||
|
||||
|
||||
def ba_get_api_version():
|
||||
return 6
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [babase._level.Level(
|
||||
'Lame Fight',
|
||||
gametype=LameFightGame,
|
||||
settings={},
|
||||
preview_texture_name='courtyardPreview')]
|
||||
|
||||
|
||||
class Player(bs.Player['Team']):
|
||||
"""Our player type for this game."""
|
||||
|
||||
|
|
@ -168,3 +156,14 @@ class LameFightGame(bs.TeamGameActivity[Player, Team]):
|
|||
|
||||
# Ends the activity.
|
||||
self.end(results)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class plugin(babase.Plugin):
|
||||
def __init__(self):
|
||||
## Campaign support ##
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name='Lame Fight',
|
||||
gametype=LameFightGame,
|
||||
settings={},
|
||||
preview_texture_name='courtyardPreview'))
|
||||
|
|
|
|||
|
|
@ -33,33 +33,6 @@ else:
|
|||
name_hard = 'You vs BS Hard'
|
||||
name_hard_epic = 'You vs BS Hard Epic'
|
||||
|
||||
# def ba_get_api_version():
|
||||
# return 6
|
||||
|
||||
|
||||
def ba_get_levels():
|
||||
return [babase._level.Level(
|
||||
name_easy,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={},
|
||||
preview_texture_name='footballStadiumPreview'),
|
||||
babase._level.Level(
|
||||
name_easy_epic,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'),
|
||||
|
||||
babase._level.Level(
|
||||
name_hard,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Hard Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'),
|
||||
babase._level.Level(
|
||||
name_hard_epic,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Hard Mode': True,
|
||||
'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview')]
|
||||
|
||||
#### BOTS ####
|
||||
|
||||
|
|
@ -503,3 +476,30 @@ class TUvsBombSquad(bs.TeamGameActivity[Player, Team]):
|
|||
|
||||
# Ends the activity.
|
||||
self.end(results)
|
||||
|
||||
|
||||
# ba_meta export plugin
|
||||
class plugin(babase.Plugin):
|
||||
def __init__(self):
|
||||
## Campaign support ##
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name=name_easy,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name_easy_epic,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name=name_hard,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Hard Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name=name_hard_epic,
|
||||
gametype=TUvsBombSquad,
|
||||
settings={'Hard Mode': True,
|
||||
'Epic Mode': True},
|
||||
preview_texture_name='footballStadiumPreview'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue