Skip to content

Commit

Permalink
fix: player controller tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
fantinodavide committed Jan 2, 2024
1 parent ee90c31 commit 65171e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions squad-server/log-parser/player-connected.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
raw: args[0],
time: args[1],
chainID: +args[2],
playercontroller: args[3],
ip: args[4],
eosID: args[5],
steamID: args[6]
Expand All @@ -15,6 +16,10 @@ export default {
data.connection = joinRequestData.connection;
data.playerSuffix = joinRequestData.suffix;

if (!logParser.eventStore.players[data.steamID])
logParser.eventStore.players[data.steamID] = {};
logParser.eventStore.players[data.steamID].controller = data.playercontroller;

logParser.emit('PLAYER_CONNECTED', data);
}
};

0 comments on commit 65171e5

Please sign in to comment.