node-gamedig/protocols/warsow.js
Michael Morrison 935f61c4ad add warsow
2013-07-10 10:47:23 -05:00

16 lines
353 B
JavaScript

module.exports = require('./quake3').extend({
init: function() {
this._super();
this.options.port = 44400;
},
prepState: function(state) {
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;
}
}
}
});