mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Updating xyz_tool.py to api 9
This commit is contained in:
parent
5c705c71de
commit
9ad2e114ec
2 changed files with 10 additions and 7 deletions
|
|
@ -1546,6 +1546,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": {
|
"versions": {
|
||||||
|
"1.1.0": null,
|
||||||
"1.0.0": {
|
"1.0.0": {
|
||||||
"api_version": 8,
|
"api_version": 8,
|
||||||
"commit_sha": "5063690",
|
"commit_sha": "5063690",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# Ported to api 8 by brostos using baport.(https://github.com/bombsquad-community/baport)
|
|
||||||
# Released under the MIT License. See LICENSE for details.
|
# Released under the MIT License. See LICENSE for details.
|
||||||
# ba_meta require api 8
|
# ba_meta require api 9
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
@ -9,12 +8,10 @@ from bascenev1lib.actor.spazfactory import SpazFactory
|
||||||
import babase
|
import babase
|
||||||
import bauiv1 as bui
|
import bauiv1 as bui
|
||||||
import bascenev1 as bs
|
import bascenev1 as bs
|
||||||
import math
|
|
||||||
import os
|
import os
|
||||||
import _babase
|
import _babase
|
||||||
import shutil
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
pass
|
from typing import Sequence
|
||||||
|
|
||||||
DECIMAL_LIMIT = 7
|
DECIMAL_LIMIT = 7
|
||||||
|
|
||||||
|
|
@ -24,11 +21,16 @@ PlayerSpaz.supershit = PlayerSpaz.__init__
|
||||||
|
|
||||||
def ShitInit(self,
|
def ShitInit(self,
|
||||||
player: bs.Player,
|
player: bs.Player,
|
||||||
|
*,
|
||||||
color: Sequence[float] = (1.0, 1.0, 1.0),
|
color: Sequence[float] = (1.0, 1.0, 1.0),
|
||||||
highlight: Sequence[float] = (0.5, 0.5, 0.5),
|
highlight: Sequence[float] = (0.5, 0.5, 0.5),
|
||||||
character: str = 'Spaz',
|
character: str = 'Spaz',
|
||||||
powerups_expire: bool = True) -> None:
|
powerups_expire: bool = True) -> None:
|
||||||
self.supershit(player, color, highlight, character, powerups_expire)
|
self.supershit(player,
|
||||||
|
color=color,
|
||||||
|
highlight=highlight,
|
||||||
|
character=character,
|
||||||
|
powerups_expire=powerups_expire)
|
||||||
self.offt = bs.newnode('math', owner=self.node, attrs={
|
self.offt = bs.newnode('math', owner=self.node, attrs={
|
||||||
'input1': (1.2, 1.8, -0.7), 'operation': 'add'})
|
'input1': (1.2, 1.8, -0.7), 'operation': 'add'})
|
||||||
self.node.connectattr('torso_position', self.offt, 'input2')
|
self.node.connectattr('torso_position', self.offt, 'input2')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue