2019-02-02 20:11:34 -05:00
|
|
|
var rconParser;
|
|
|
|
var eventParser;
|
|
|
|
|
|
|
|
var plugin = {
|
|
|
|
author: 'RaidMax',
|
2020-05-05 19:49:30 -04:00
|
|
|
version: 0.5,
|
2019-02-02 20:11:34 -05:00
|
|
|
name: 'Tekno MW3 Parser',
|
|
|
|
isParser: true,
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
|
|
|
},
|
|
|
|
|
|
|
|
onLoadAsync: function (manager) {
|
2020-01-21 19:08:18 -05:00
|
|
|
rconParser = manager.GenerateDynamicRConParser(this.name);
|
|
|
|
eventParser = manager.GenerateDynamicEventParser(this.name);
|
2019-02-02 20:11:34 -05:00
|
|
|
|
2020-05-04 17:50:02 -04:00
|
|
|
rconParser.Configuration.Status.Pattern = '^ *([0-9]+) +([0-9]+) +((?:[A-Z]+|[0-9]+)) +((?:[A-Z]|[0-9]){16,32}|0)\t +(.{0,16}) +([0-9]+) +(\\d+\\.\\d+\\.\\d+\\.\\d+\\:-?\\d{1,5}|0+\\.0+\\:-?\\d{1,5}|loopback) *$';
|
2020-05-05 19:49:30 -04:00
|
|
|
rconParser.Configuration.StatusHeader.Pattern = 'num +score +ping +guid +name +lastmsg +address';
|
2019-02-02 20:11:34 -05:00
|
|
|
rconParser.Configuration.Status.AddMapping(104, 5); // RConName
|
|
|
|
rconParser.Configuration.Status.AddMapping(103, 4); // RConNetworkId
|
|
|
|
rconParser.Configuration.CommandPrefixes.RConGetInfo = undefined;
|
2020-05-04 17:50:02 -04:00
|
|
|
rconParser.Configuration.CommandPrefixes.RConResponse = '\xff\xff\xff\xff(print)?';
|
2019-02-02 20:11:34 -05:00
|
|
|
rconParser.Configuration.CommandPrefixes.Tell = 'tell {0} {1}';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Say = 'say {0}';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Kick = 'dropclient {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Ban = 'dropclient {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.TempBan = 'tempbanclient {0} "{1}"';
|
|
|
|
rconParser.Configuration.Dvar.AddMapping(107, 1); // RCon DvarValue
|
|
|
|
rconParser.Configuration.Dvar.Pattern = '^(.*)$';
|
|
|
|
rconParser.Version = 'IW5 MP 1.4 build 382 latest Thu Jan 19 2012 11:09:49AM win-x86';
|
2019-02-05 19:02:45 -05:00
|
|
|
rconParser.GameName = 3; // IW5
|
|
|
|
rconParser.CanGenerateLogPath = false;
|
2019-02-02 20:11:34 -05:00
|
|
|
|
|
|
|
eventParser.Configuration.GameDirectory = 'scripts';
|
|
|
|
eventParser.Version = 'IW5 MP 1.4 build 382 latest Thu Jan 19 2012 11:09:49AM win-x86';
|
2019-02-05 19:02:45 -05:00
|
|
|
eventParser.GameName = 3; // IW5
|
2019-02-02 20:11:34 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
},
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
}
|
|
|
|
};
|