Add Plutonium T4 Co-Op/Zombies support

This commit is contained in:
RaidMax 2022-01-16 10:53:31 -06:00
parent c713fdacb0
commit 3f0b1b892a
2 changed files with 44 additions and 1 deletions

View File

@ -4,7 +4,7 @@ var eventParser;
var plugin = {
author: 'RaidMax, Chase',
version: 0.3,
name: 'Plutonium T4 Parser',
name: 'Plutonium T4 MP Parser',
isParser: true,
onEventAsync: function (gameEvent, server) {

View File

@ -0,0 +1,43 @@
var rconParser;
var eventParser;
var plugin = {
author: 'RaidMax',
version: 0.1,
name: 'Plutonium T4 CO-OP/Zombies 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.Configuration.DefaultRConPort = 28960;
rconParser.Configuration.CommandPrefixes.RConGetInfo = undefined;
rconParser.Configuration.DefaultInstallationDirectoryHint = '{LocalAppData}/Plutonium/storage/t4';
rconParser.Configuration.OverrideDvarNameMapping.Add('fs_homepath', 'fs_localAppData');
rconParser.Version = 'Plutonium T4 Singleplayer';
rconParser.GameName = 5; // T4
eventParser.Configuration.GuidNumberStyle = 7; // Integer
eventParser.Configuration.GameDirectory = 'main';
eventParser.Version = 'Plutonium T4 Singleplayer';
},
onUnloadAsync: function () {
},
onTickAsync: function (server) {
}
};