mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-03 22:14:45 +08:00
Tweakeroo'd
This commit is contained in:
parent
5ad94067eb
commit
3786e2bfb3
@ -230,14 +230,15 @@ class PlayerSpaz(Spaz):
|
|||||||
self.last_player_attacked_by
|
self.last_player_attacked_by
|
||||||
and bs.time() - self.last_attacked_time < 4.0
|
and bs.time() - self.last_attacked_time < 4.0
|
||||||
)
|
)
|
||||||
# Immediate-mode or left-game deaths don't count as 'kills'.
|
# Leaving the game doesn't count as a kill *unless*
|
||||||
killed = bool(
|
# someone does it intentionally while being attacked.
|
||||||
not msg.immediate
|
left_game_cleanly = (
|
||||||
and msg.how is not bs.DeathType.LEFT_GAME
|
msg.how is bs.DeathType.LEFT_GAME
|
||||||
or was_held
|
and not (was_held or was_attacked_recently)
|
||||||
or was_attacked_recently
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
killed = not (msg.immediate or left_game_cleanly)
|
||||||
|
|
||||||
activity = self._activity()
|
activity = self._activity()
|
||||||
|
|
||||||
player = self.getplayer(bs.Player, False)
|
player = self.getplayer(bs.Player, False)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user