mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
add warsow
This commit is contained in:
parent
a777ec79e1
commit
935f61c4ad
3 changed files with 33 additions and 8 deletions
16
protocols/warsow.js
Normal file
16
protocols/warsow.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue