@@ -2,9 +2,9 @@ var rconParser;
22var eventParser ;
33
44var plugin = {
5- author : 'RaidMax, Xerxes' ,
6- version : 1.4 ,
7- name : 'Plutonium T6 Parser' ,
5+ author : 'RaidMax, Xerxes, INSANEMODE ' ,
6+ version : 1.0 ,
7+ name : 'Plutonium T6 Parser (2024) ' ,
88 isParser : true ,
99
1010 onEventAsync : function ( gameEvent , server ) {
@@ -14,25 +14,34 @@ var plugin = {
1414 rconParser = manager . GenerateDynamicRConParser ( this . name ) ;
1515 eventParser = manager . GenerateDynamicEventParser ( this . name ) ;
1616
17- rconParser . Configuration . CommandPrefixes . Tell = 'tell {0} {1}' ;
18- rconParser . Configuration . CommandPrefixes . Say = 'say {0}' ;
19- rconParser . Configuration . CommandPrefixes . Kick = 'clientkick_for_reason {0} "{1}"' ;
20- rconParser . Configuration . CommandPrefixes . Ban = 'clientkick_for_reason {0} "{1}"' ;
21- rconParser . Configuration . CommandPrefixes . TempBan = 'clientkick_for_reason {0} "{1}"' ;
22- rconParser . Configuration . CommandPrefixes . RConGetDvar = '\xff\xff\xff\xffrcon {0} get {1}' ;
23- rconParser . Configuration . CommandPrefixes . RConGetInfo = undefined ; // adding this in here temporarily until getInfo is fixed in new T6 version
17+ rconParser . Configuration . CommandPrefixes . Tell = 'tell {0} {1}' ;
18+ rconParser . Configuration . CommandPrefixes . Say = 'say {0}' ;
19+ rconParser . Configuration . CommandPrefixes . Kick = 'clientkick_for_reason {0} "{1}"' ;
20+ rconParser . Configuration . CommandPrefixes . Ban = 'clientkick_for_reason {0} "{1}"' ;
21+ rconParser . Configuration . CommandPrefixes . TempBan = 'clientkick_for_reason {0} "{1}"' ;
22+ rconParser . Configuration . CommandPrefixes . Mute = 'muteClient {0}' ;
23+ rconParser . Configuration . CommandPrefixes . Unmute = 'unmuteClient {0}' ;
24+ rconParser . Configuration . CommandPrefixes . RConGetDvar = '\xff\xff\xff\xffrcon {0} {1}' ;
25+ rconParser . Configuration . CommandPrefixes . RConSetDvar = '\xff\xff\xff\xffrcon {0} set {1}' ;
26+ rconParser . Configuration . CommandPrefixes . RConResponse = '\xff\xff\xff\xffprint\n' ;
27+ rconParser . Configuration . CommandPrefixes . RConGetStatus = '\xff\xff\xff\xffgetstatus' ;
28+ rconParser . Configuration . CommandPrefixes . RConGetInfo = '\xff\xff\xff\xffgetinfo' ;
29+ rconParser . Configuration . CommandPrefixes . RconGetInfoResponseHeader = '\xff\xff\xff\xffinfoResponse\n' ;
30+ rconParser . Configuration . CommandPrefixes . RConCommand = '\xff\xff\xff\xffrcon {0} {1}' ;
2431
25- rconParser . Configuration . Dvar . Pattern = '^(.+) is "(.+)?"$' ;
32+
33+ rconParser . Configuration . Dvar . Pattern = '^(?:\\^7)?\\"(.+)\\" is: \\"(.+)?\\" default: \\"(.+)?\\"\\n?(?:latched: \\"(.+)?\\"\\n)?\\w*(.+)*$' ;
2634 rconParser . Configuration . Dvar . AddMapping ( 106 , 1 ) ;
2735 rconParser . Configuration . Dvar . AddMapping ( 107 , 2 ) ;
28- rconParser . Configuration . WaitForResponse = false ;
36+ rconParser . Configuration . WaitForResponse = false
2937 rconParser . Configuration . NoticeLineSeparator = '. ' ;
3038 rconParser . Configuration . DefaultRConPort = 4976 ;
3139 rconParser . Configuration . DefaultInstallationDirectoryHint = '{LocalAppData}/Plutonium/storage/t6' ;
3240 rconParser . Configuration . ShouldRemoveDiacritics = true ;
3341
42+
3443 rconParser . Configuration . StatusHeader . Pattern = 'num +score +bot +ping +guid +name +lastmsg +address +qport +rate *' ;
35- rconParser . Configuration . Status . Pattern = '^ *([0-9]+) +([0-9]+) +(?:[0-1]{1}) +([0-9]+) +([A-F0-9]+|0) +(.+?) +(?:[0-9]+) +(\\d+\\.\\d+\\.\\d+\\.\\d+\\:-?\\d{1,5}|0+\\.0+:-?\\d{1,5}|loopback|unknown) +(?:-?[0-9]+) +(?:[0-9]+) *$' ;
44+ rconParser . Configuration . Status . Pattern = '^ *([0-9]+) +([0-9]+) +(?:[0-1]{1}) +([0-9]+) +([A-F0-9]+|0) +(.+?) +(?:[0-9]+) +(\\d+\\.\\d+\\.\\d+\\.\\d+\\:-?\\d{1,5}|0+\\.0+:-?\\d{1,5}|loopback|unknown|bot ) +(?:-?[0-9]+) +(?:[0-9]+) *$' ;
3645 rconParser . Configuration . Status . AddMapping ( 100 , 1 ) ;
3746 rconParser . Configuration . Status . AddMapping ( 101 , 2 ) ;
3847 rconParser . Configuration . Status . AddMapping ( 102 , 3 ) ;
@@ -54,8 +63,20 @@ var plugin = {
5463 rconParser . Configuration . ColorCodeMapping . Add ( 'Grey' , '^9' ) ;
5564 rconParser . Configuration . ColorCodeMapping . Add ( 'LightBlue' , '^;' ) ;
5665 rconParser . Configuration . ColorCodeMapping . Add ( 'LightYellow' , '^:' ) ;
57-
58- eventParser . Configuration . GameDirectory = '' ;
66+ rconParser . Configuration . ColorCodeMapping . Add ( 'Flash' , '^F' ) ;
67+ rconParser . Configuration . ColorCodeMapping . Add ( 'MWDOWN' , '^BmouseWheelDown^' ) ;
68+ rconParser . Configuration . ColorCodeMapping . Add ( 'MWUP' , '^BmouseWheelUp^' ) ;
69+ rconParser . Configuration . ColorCodeMapping . Add ( 'MBMiddle' , '^BmouseButtonMiddle^' ) ;
70+ rconParser . Configuration . ColorCodeMapping . Add ( 'MBRight' , '^BmouseButtonRight^' ) ;
71+ rconParser . Configuration . ColorCodeMapping . Add ( 'MBLeft' , '^BmouseButtonLeft^' ) ;
72+ rconParser . Configuration . ColorCodeMapping . Add ( 'MADown' , '^BMOUSE_ANIM_DOWN^' ) ;
73+ rconParser . Configuration . ColorCodeMapping . Add ( 'MAUp' , '^BMOUSE_ANIM_UP^' ) ;
74+ rconParser . Configuration . ColorCodeMapping . Add ( 'MARight' , '^BMOUSE_ANIM_RIGHT^' ) ;
75+ rconParser . Configuration . ColorCodeMapping . Add ( 'MALeft' , '^BMOUSE_ANIM_LEFT^' ) ;
76+
77+ rconParser . Configuration . FloodProtectInterval = 150 ;
78+
79+ eventParser . Configuration . GameDirectory = 'main' ;
5980 eventParser . Configuration . GuidNumberStyle = 7 ; // Integer
6081
6182 rconParser . Version = 'Call of Duty Multiplayer - Ship COD_T6_S MP build 1.0.44 CL(1759941) CODPCAB2 CEG Fri May 9 19:19:19 2014 win-x86 813e66d5' ;
0 commit comments