mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-23 07:23:19 +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
|
||||
and bs.time() - self.last_attacked_time < 4.0
|
||||
)
|
||||
# Immediate-mode or left-game deaths don't count as 'kills'.
|
||||
killed = bool(
|
||||
not msg.immediate
|
||||
and msg.how is not bs.DeathType.LEFT_GAME
|
||||
or was_held
|
||||
or was_attacked_recently
|
||||
# Leaving the game doesn't count as a kill *unless*
|
||||
# someone does it intentionally while being attacked.
|
||||
left_game_cleanly = (
|
||||
msg.how is bs.DeathType.LEFT_GAME
|
||||
and not (was_held or was_attacked_recently)
|
||||
)
|
||||
|
||||
killed = not (msg.immediate or left_game_cleanly)
|
||||
|
||||
activity = self._activity()
|
||||
|
||||
player = self.getplayer(bs.Player, False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user