mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 01:25:51 +00:00
Add ut3, ut2004, and maniaplanet protocol
This commit is contained in:
parent
c4f66a72db
commit
1d2198373f
4 changed files with 122 additions and 1 deletions
35
protocols/ut3.js
Normal file
35
protocols/ut3.js
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
module.exports = require('./gamespy').extend({
|
||||
init: function() {
|
||||
this._super();
|
||||
this.options.port = 6500;
|
||||
}
|
||||
prepState: function(state) {
|
||||
this._super(state);
|
||||
|
||||
this.translateState(state,{
|
||||
'OwningPlayerName': 'hostname',
|
||||
'p1073741825': 'mapname',
|
||||
'p1073741826': 'gametype',
|
||||
'p1073741827': 'servername',
|
||||
'p1073741828': 'custom_mutators',
|
||||
'gamemode': 'open',
|
||||
's32779': 'gamemode',
|
||||
's0': 'bot_skill',
|
||||
's6': 'pure_server',
|
||||
's7': 'password',
|
||||
's8': 'vs_bots',
|
||||
's10': 'force_respawn',
|
||||
'p268435704': 'frag_limit',
|
||||
'p268435705': 'time_limit',
|
||||
'p268435703': 'numbots',
|
||||
'p268435717': 'stock_mutators'
|
||||
's1': false,
|
||||
's9': false,
|
||||
's11': false,
|
||||
's12': false,
|
||||
's13': false,
|
||||
's14': false
|
||||
});
|
||||
state['custom_mutators'] = state['custom_mutators'].split('\x1c');
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue