Skip to content

Commit

Permalink
Add more info logs for flag captures
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Aug 22, 2024
1 parent 7720712 commit f0de38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -704,13 +704,15 @@ return {

minetest.log("action", string.format(
"[CAPDEBUG] div: %.1f {team_score = %d, capture_score = %d, connected_players = %d, lost_team_count = %d, "..
"player_attempts = %d, \"%s\"},",
"player_attempts = %d, time = %d, winteam_score = %d, \"%s\"},",
team_score / score,
team_score,
score,
#ctf_teams.get_connected_players(),
ctf_teams.online_players[lost_team].count,
player_scores[pname].flag_attempts or 0,
os.time() - ctf_map.start_time,
team_scores[pteam].score or 0,
many_teams and "many teams" or "2 teams"
))
end
Expand Down

0 comments on commit f0de38e

Please sign in to comment.