2019-01-07 01:52:03 +01:00
|
|
|
const Quake1 = require('./quake1');
|
|
|
|
|
|
|
|
class Hexen2 extends Quake1 {
|
2017-08-09 12:32:09 +02:00
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
this.sendHeader = '\xFFstatus\x0a';
|
2017-08-09 11:05:55 +02:00
|
|
|
this.responseHeader = '\xffn';
|
2017-08-09 12:32:09 +02:00
|
|
|
}
|
2019-01-12 12:45:09 +01:00
|
|
|
async run(state) {
|
|
|
|
await super.run(state);
|
|
|
|
state.gamePort = this.options.port - 50;
|
|
|
|
}
|
2017-08-09 11:05:55 +02:00
|
|
|
}
|
|
|
|
|
2017-08-09 11:36:38 +02:00
|
|
|
module.exports = Hexen2;
|