mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 17:03:14 +08:00
Fixing the sticky bomb chaos bug.
At last, fixed after 10 years.
This commit is contained in:
parent
109f0660ad
commit
0b0eb22883
@ -243,9 +243,23 @@ class AssaultGame(bs.TeamGameActivity[Player, Team]):
|
||||
)
|
||||
bs.timer(0.5, light.delete)
|
||||
bs.animate(light, 'intensity', {0: 0, 0.1: 1.0, 0.5: 0})
|
||||
def teleport(
|
||||
client: Player,
|
||||
pos: Sequence[float],
|
||||
num: float
|
||||
) -> None:
|
||||
if client.actor:
|
||||
client.actor.handlemessage(
|
||||
bs.StandMessage(pos,num)
|
||||
)
|
||||
if player.actor:
|
||||
random_num = random.uniform(0, 360)
|
||||
player.actor.handlemessage(
|
||||
bs.StandMessage(new_pos, random.uniform(0, 360))
|
||||
bs.StandMessage(new_pos, random_num)
|
||||
)
|
||||
bs.timer(
|
||||
0.01,
|
||||
bs.Call(teleport, player, new_pos, random_num)
|
||||
)
|
||||
|
||||
# Have teammates celebrate.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user