2019-02-05 12:14:43 -05:00
|
|
|
var rconParser;
|
|
|
|
var eventParser;
|
|
|
|
|
|
|
|
var plugin = {
|
|
|
|
author: 'FrenchFry, RaidMax',
|
|
|
|
version: 0.2,
|
|
|
|
name: 'CoD4x Parser',
|
|
|
|
isParser: true,
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
|
|
|
},
|
|
|
|
|
|
|
|
onLoadAsync: function (manager) {
|
|
|
|
rconParser = manager.GenerateDynamicRConParser();
|
|
|
|
eventParser = manager.GenerateDynamicEventParser();
|
|
|
|
|
|
|
|
rconParser.Configuration.Dvar.Pattern = '^"(.+)" is: "(.+)?" default: "(.+)?" info: "(.+)?"$';
|
|
|
|
rconParser.Configuration.Dvar.AddMapping(110, 4);
|
|
|
|
rconParser.Version = 'CoD4 X 1.8 win_mingw-x86 build 2055 May 2 2017';
|
2019-02-05 19:02:45 -05:00
|
|
|
rconParser.GameName = 1; // IW3
|
2019-02-05 12:14:43 -05:00
|
|
|
|
|
|
|
eventParser.Configuration.GameDirectory = 'main';
|
|
|
|
eventParser.Version = 'CoD4 X 1.8 win_mingw-x86 build 2055 May 2 2017';
|
2019-02-05 19:02:45 -05:00
|
|
|
eventParser.GameName = 1; // IW3
|
2019-02-05 12:14:43 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
},
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
}
|
|
|
|
};
|