add parser support for Plutonium T4
This commit is contained in:
parent
fc13363c9c
commit
76a18d9797
37
Plugins/ScriptPlugins/ParserPlutoniumT4.js
Normal file
37
Plugins/ScriptPlugins/ParserPlutoniumT4.js
Normal file
@ -0,0 +1,37 @@
|
||||
var rconParser;
|
||||
var eventParser;
|
||||
|
||||
var plugin = {
|
||||
author: 'RaidMax',
|
||||
version: 0.1,
|
||||
name: 'Plutonium T4 Parser',
|
||||
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
|
||||
|
||||
rconParser.Version = 'Plutonium T4 Multiplayer (r1678-staging)';
|
||||
|
||||
eventParser.Configuration.GuidNumberStyle = 7; // Integer
|
||||
eventParser.Configuration.GameDirectory = 'raw';
|
||||
|
||||
eventParser.GameName = 5; // T4
|
||||
eventParser.Version = 'Plutonium T4 Multiplayer (r1678-staging)';
|
||||
},
|
||||
|
||||
onUnloadAsync: function () {
|
||||
},
|
||||
|
||||
onTickAsync: function (server) {
|
||||
}
|
||||
};
|
@ -26,7 +26,7 @@ var plugin = {
|
||||
rconParser.Configuration.GametypeStatus.Pattern = 'Gametype: (.+)';
|
||||
rconParser.Configuration.MapStatus.Pattern = 'Map: (.+)';
|
||||
rconParser.Configuration.CommandPrefixes.RConGetInfo = undefined; // disables this, because it's useless on T7
|
||||
rconParser.Configuration.ServerNotRunningResponse = 'this is here to prevent a hiberating server from being detected as not running';
|
||||
rconParser.Configuration.ServerNotRunningResponse = 'this is here to prevent a hibernating server from being detected as not running';
|
||||
|
||||
rconParser.Configuration.OverrideDvarNameMapping.Add('sv_hostname', 'live_steam_server_name');
|
||||
rconParser.Configuration.DefaultDvarValues.Add('sv_running', '1');
|
||||
|
Loading…
Reference in New Issue
Block a user