2021-04-07 10:33:49 -04:00
|
|
|
|
var rconParser;
|
|
|
|
|
var eventParser;
|
|
|
|
|
|
|
|
|
|
var plugin = {
|
2021-04-07 22:58:58 -04:00
|
|
|
|
author: 'RaidMax, Chase',
|
2022-01-16 16:20:25 -05:00
|
|
|
|
version: 0.4,
|
2022-01-16 11:53:31 -05:00
|
|
|
|
name: 'Plutonium T4 MP Parser',
|
2021-04-07 10:33:49 -04:00
|
|
|
|
isParser: true,
|
|
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onLoadAsync: function (manager) {
|
|
|
|
|
rconParser = manager.GenerateDynamicRConParser(this.name);
|
|
|
|
|
eventParser = manager.GenerateDynamicEventParser(this.name);
|
|
|
|
|
|
|
|
|
|
rconParser.Configuration.CommandPrefixes.Kick = 'clientkick {0}';
|
|
|
|
|
rconParser.Configuration.CommandPrefixes.Ban = 'clientkick {0}';
|
|
|
|
|
rconParser.Configuration.CommandPrefixes.TempBan = 'clientkick {0}';
|
|
|
|
|
rconParser.Configuration.CommandPrefixes.RConResponse = '\xff\xff\xff\xffprint\n';
|
|
|
|
|
rconParser.Configuration.GuidNumberStyle = 7; // Integer
|
2021-11-14 22:38:00 -05:00
|
|
|
|
rconParser.Configuration.DefaultRConPort = 28960;
|
2022-01-16 16:20:25 -05:00
|
|
|
|
rconParser.Configuration.OverrideDvarNameMapping.Add('fs_homepath', 'fs_localAppData');
|
|
|
|
|
|
2021-11-14 22:38:00 -05:00
|
|
|
|
rconParser.Configuration.DefaultInstallationDirectoryHint = '{LocalAppData}/Plutonium/storage/t4';
|
2021-04-07 10:33:49 -04:00
|
|
|
|
|
2021-04-07 18:03:25 -04:00
|
|
|
|
rconParser.Version = 'Plutonium T4';
|
2021-04-07 10:50:41 -04:00
|
|
|
|
rconParser.GameName = 5; // T4
|
2021-04-07 10:33:49 -04:00
|
|
|
|
|
|
|
|
|
eventParser.Configuration.GuidNumberStyle = 7; // Integer
|
2022-01-16 16:20:25 -05:00
|
|
|
|
eventParser.Configuration.GameDirectory = 'main';
|
|
|
|
|
|
2021-04-07 18:03:25 -04:00
|
|
|
|
eventParser.Version = 'Plutonium T4';
|
2021-04-07 10:33:49 -04:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
|
}
|
|
|
|
|
};
|