Skip to content

Commit

Permalink
fixed kill message
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed Jul 18, 2024
1 parent 4984c13 commit 7e91863
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/game_server/backend/game/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def take_damage(self, damage, source):
self.hp -= damage
if self.hp <= 0:
if isinstance(source, Player):
source.killed(self)
self.killed_by(source)
total_kills_before_respawn = self.kills
seconds_alive = self.respawn_and_get_survival_time()
self.game.server.matchmaking_api.addHighscore(self.name, total_kills_before_respawn, round(seconds_alive.total_seconds()))
Expand Down
6 changes: 3 additions & 3 deletions services/game_server/data/weapons.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"damage": 100,
"cooldown": 1,
"range": 2000,
"speed": 100,
"speed": 70,
"spread": 0
},
"MP5": {
Expand All @@ -24,7 +24,7 @@
"damage": 100,
"cooldown": 1.5,
"range": 3000,
"speed": 100,
"speed": 70,
"spread": 0
},
"Flamethrower": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"damage": 40,
"cooldown": 0.2,
"range": 1500,
"speed": 200,
"speed": 70,
"spread": 0.1
}
}

0 comments on commit 7e91863

Please sign in to comment.