mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-10-20 00:00:39 +00:00
1.7.1 mods update
This commit is contained in:
parent
3c43b5661b
commit
2edf39f40f
17 changed files with 55 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3.9
|
||||
#!/usr/bin/env -S python3.10 -O
|
||||
|
||||
# Released under the MIT License. See LICENSE for details.
|
||||
#
|
||||
|
|
|
|||
3
dist/ba_root/mods/.idea/.gitignore
generated
vendored
Normal file
3
dist/ba_root/mods/.idea/.gitignore
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
6
dist/ba_root/mods/.idea/inspectionProfiles/profiles_settings.xml
generated
vendored
Normal file
6
dist/ba_root/mods/.idea/inspectionProfiles/profiles_settings.xml
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
4
dist/ba_root/mods/.idea/misc.xml
generated
vendored
Normal file
4
dist/ba_root/mods/.idea/misc.xml
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (bcs-gui)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
12
dist/ba_root/mods/.idea/mods.iml
generated
vendored
Normal file
12
dist/ba_root/mods/.idea/mods.iml
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
<option name="format" value="PLAIN" />
|
||||
<option name="myDocStringFormat" value="Plain" />
|
||||
</component>
|
||||
</module>
|
||||
8
dist/ba_root/mods/.idea/modules.xml
generated
vendored
Normal file
8
dist/ba_root/mods/.idea/modules.xml
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/mods.iml" filepath="$PROJECT_DIR$/.idea/mods.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
dist/ba_root/mods/.idea/vcs.xml
generated
vendored
Normal file
6
dist/ba_root/mods/.idea/vcs.xml
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -301,7 +301,7 @@ def add_role_to_player(arguments):
|
|||
session = _ba.get_foreground_host_session()
|
||||
for i in session.sessionplayers:
|
||||
if i.inputdevice.client_id== int(arguments[1]):
|
||||
roles=pdata.add_player_role(arguments[0],i.get_account_id())
|
||||
roles=pdata.add_player_role(arguments[0],i.get_v1_account_id())
|
||||
except:
|
||||
return
|
||||
|
||||
|
|
@ -312,7 +312,7 @@ def remove_role_from_player(arguments):
|
|||
session = _ba.get_foreground_host_session()
|
||||
for i in session.sessionplayers:
|
||||
if i.inputdevice.client_id== int(arguments[1]):
|
||||
roles=pdata.remove_player_role(arguments[0],i.get_account_id())
|
||||
roles=pdata.remove_player_role(arguments[0],i.get_v1_account_id())
|
||||
|
||||
except:
|
||||
return
|
||||
|
|
@ -323,7 +323,7 @@ def get_roles_of_player(arguments,clientid):
|
|||
reply=""
|
||||
for i in session.sessionplayers:
|
||||
if i.inputdevice.client_id== int(arguments[0]):
|
||||
roles=pdata.get_player_roles(i.get_account_id())
|
||||
roles=pdata.get_player_roles(i.get_v1_account_id())
|
||||
print(roles)
|
||||
for role in roles:
|
||||
reply=reply+role+","
|
||||
|
|
@ -341,7 +341,7 @@ def set_custom_tag(arguments):
|
|||
session = _ba.get_foreground_host_session()
|
||||
for i in session.sessionplayers:
|
||||
if i.inputdevice.client_id== int(arguments[1]):
|
||||
roles=pdata.set_tag(arguments[0],i.get_account_id())
|
||||
roles=pdata.set_tag(arguments[0],i.get_v1_account_id())
|
||||
except:
|
||||
return
|
||||
def set_custom_effect(arguments):
|
||||
|
|
@ -349,7 +349,7 @@ def set_custom_effect(arguments):
|
|||
session = _ba.get_foreground_host_session()
|
||||
for i in session.sessionplayers:
|
||||
if i.inputdevice.client_id== int(arguments[1]):
|
||||
roles=pdata.set_effect(arguments[0],i.get_account_id())
|
||||
roles=pdata.set_effect(arguments[0],i.get_v1_account_id())
|
||||
except:
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ def accountid_request(arguments, clientid, accountid):
|
|||
player = session.sessionplayers[int(arguments[0])]
|
||||
|
||||
name = player.getname(full=True, icon=True)
|
||||
accountid = player.get_account_id()
|
||||
accountid = player.get_v1_account_id()
|
||||
|
||||
send(f" {name}'s account id is '{accountid}' ", clientid)
|
||||
except:
|
||||
|
|
|
|||
2
dist/ba_root/mods/features/afk_check.py
vendored
2
dist/ba_root/mods/features/afk_check.py
vendored
|
|
@ -18,7 +18,7 @@ class checkIdle(object):
|
|||
last_input=int(player.inputdevice.get_last_input_time())
|
||||
afk_time=int((current-last_input)/1000)
|
||||
if afk_time in range(INGAME_TIME,INGAME_TIME+20):
|
||||
self.warn_player(player.get_account_id(),"Press any button within "+str(INGAME_TIME+20-afk_time)+" secs")
|
||||
self.warn_player(player.get_v1_account_id(),"Press any button within "+str(INGAME_TIME+20-afk_time)+" secs")
|
||||
if afk_time > INGAME_TIME+20:
|
||||
player.remove_from_game()
|
||||
if LOBBY_KICK:
|
||||
|
|
|
|||
4
dist/ba_root/mods/features/team_balancer.py
vendored
4
dist/ba_root/mods/features/team_balancer.py
vendored
|
|
@ -42,8 +42,8 @@ def movePlayers(fromTeam,toTeam,count):
|
|||
toTeam=session.sessionteams[toTeam]
|
||||
for i in range(0,count):
|
||||
player=fromTeam.players.pop()
|
||||
print("moved"+player.get_account_id())
|
||||
broadCastShiftMsg(player.get_account_id())
|
||||
print("moved"+player.get_v1_account_id())
|
||||
broadCastShiftMsg(player.get_v1_account_id())
|
||||
player.setdata(team=toTeam,character=player.character,color=toTeam.color,highlight=player.highlight)
|
||||
iconinfo=player.get_icon_info()
|
||||
player.set_icon_info(iconinfo['texture'],iconinfo['tint_texture'],toTeam.color,player.highlight)
|
||||
|
|
|
|||
2
dist/ba_root/mods/plugins/bcs_plugin.py
vendored
2
dist/ba_root/mods/plugins/bcs_plugin.py
vendored
|
|
@ -97,7 +97,7 @@ class BsDataThread(object):
|
|||
'device_id':player.inputdevice.get_account_name(True),
|
||||
'inGame':player.in_game,
|
||||
'character':player.character,
|
||||
'account_id':player.get_account_id()
|
||||
'account_id':player.get_v1_account_id()
|
||||
}
|
||||
data[team.id]['players'].append(teamplayer)
|
||||
|
||||
|
|
|
|||
2
dist/ba_root/mods/spazmod/effects.py
vendored
2
dist/ba_root/mods/spazmod/effects.py
vendored
|
|
@ -160,7 +160,7 @@ class Effect(ba.Actor):
|
|||
if (c.activityplayer) and (c.activityplayer.node.playerID == node_id):
|
||||
profiles = c.inputdevice.get_player_profiles()
|
||||
clID = c.inputdevice.client_id
|
||||
cl_str = c.get_account_id()
|
||||
cl_str = c.get_v1_account_id()
|
||||
|
||||
try:
|
||||
if cl_str in custom_effects:
|
||||
|
|
|
|||
2
dist/ba_root/mods/spazmod/hitmessage.py
vendored
2
dist/ba_root/mods/spazmod/hitmessage.py
vendored
|
|
@ -20,7 +20,7 @@ def handle_hit(msg, hp, dmg, hit_by, msg_pos):
|
|||
hit_by_account_id = None
|
||||
for c in _ba.get_foreground_host_session().sessionplayers:
|
||||
if (c.activityplayer) and (c.activityplayer.node.playerID == hit_by_id):
|
||||
hit_by_account_id = c.get_account_id()
|
||||
hit_by_account_id = c.get_v1_account_id()
|
||||
if hit_by_account_id in damage_data: damage_data[hit_by_account_id] += float(dmg)
|
||||
else: damage_data[hit_by_account_id] = float(dmg)
|
||||
#Send Screen Texts in enabled
|
||||
|
|
|
|||
4
dist/ba_root/mods/spazmod/tag.py
vendored
4
dist/ba_root/mods/spazmod/tag.py
vendored
|
|
@ -3,7 +3,7 @@ from playersData import pdata
|
|||
import ba, setting
|
||||
def addtag(node,player):
|
||||
session_player=player.sessionplayer
|
||||
account_id=session_player.get_account_id()
|
||||
account_id=session_player.get_v1_account_id()
|
||||
customtag_=pdata.get_custom()
|
||||
customtag=customtag_['customtag']
|
||||
roles=pdata.get_roles()
|
||||
|
|
@ -25,7 +25,7 @@ def addtag(node,player):
|
|||
from stats import mystats
|
||||
def addrank(node,player):
|
||||
session_player=player.sessionplayer
|
||||
account_id=session_player.get_account_id()
|
||||
account_id=session_player.get_v1_account_id()
|
||||
rank=mystats.getRank(account_id)
|
||||
|
||||
if rank:
|
||||
|
|
|
|||
2
dist/ba_root/mods/stats/mystats.py
vendored
2
dist/ba_root/mods/stats/mystats.py
vendored
|
|
@ -217,7 +217,7 @@ def update(score_set):
|
|||
account_scores = {}
|
||||
|
||||
for p_entry in score_set.get_records().values():
|
||||
account_id = p_entry.player.get_account_id()
|
||||
account_id = p_entry.player.get_v1_account_id()
|
||||
if account_id is not None:
|
||||
account_kills.setdefault(account_id, 0) # make sure exists
|
||||
account_kills[account_id] += p_entry.accum_kill_count
|
||||
|
|
|
|||
BIN
dist/bombsquad_headless
vendored
BIN
dist/bombsquad_headless
vendored
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue