node-gamedig/games/warsow.js

18 lines
393 B
JavaScript
Raw Normal View History

module.exports = require('./protocols/quake3').extend({
2013-07-10 17:47:23 +02:00
init: function() {
this._super();
this.pretty = 'Warsow';
2013-07-10 17:47:23 +02:00
this.options.port = 44400;
},
finalizeState: function(state) {
2013-07-10 17:47:23 +02:00
this._super(state);
if(state.players) {
for(var i = 0; i < state.players.length; i++) {
var player = state.players[i];
player.team = player.address;
delete player.address;
}
}
}
});