mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
[tweaks and fixes]
reenable tekno support address vagrant thread issue refactor game log reader creation to follow better practices fix bot issues/address how guids are generated for bots/none provided
This commit is contained in:
@ -24,6 +24,12 @@ namespace IW4MAdmin.Plugins.Stats.Events
|
||||
return (EVENT_SCRIPTKILL, EVENT_SCRIPTKILL, (string eventLine, IEventParserConfiguration config, GameEvent autoEvent) =>
|
||||
{
|
||||
string[] lineSplit = eventLine.Split(";");
|
||||
|
||||
if (lineSplit[1].IsBotGuid() || lineSplit[2].IsBotGuid())
|
||||
{
|
||||
return autoEvent;
|
||||
}
|
||||
|
||||
long originId = lineSplit[1].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
long targetId = lineSplit[2].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
|
||||
@ -48,6 +54,12 @@ namespace IW4MAdmin.Plugins.Stats.Events
|
||||
return (EVENT_SCRIPTDAMAGE, EVENT_SCRIPTDAMAGE, (string eventLine, IEventParserConfiguration config, GameEvent autoEvent) =>
|
||||
{
|
||||
string[] lineSplit = eventLine.Split(";");
|
||||
|
||||
if (lineSplit[1].IsBotGuid() || lineSplit[2].IsBotGuid())
|
||||
{
|
||||
return autoEvent;
|
||||
}
|
||||
|
||||
long originId = lineSplit[1].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
long targetId = lineSplit[2].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
|
||||
@ -71,6 +83,12 @@ namespace IW4MAdmin.Plugins.Stats.Events
|
||||
return (EVENT_JOINTEAM, EVENT_JOINTEAM, (string eventLine, IEventParserConfiguration config, GameEvent autoEvent) =>
|
||||
{
|
||||
string[] lineSplit = eventLine.Split(";");
|
||||
|
||||
if (lineSplit[1].IsBotGuid() || lineSplit[2].IsBotGuid())
|
||||
{
|
||||
return autoEvent;
|
||||
}
|
||||
|
||||
long originId = lineSplit[1].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
long targetId = lineSplit[2].ConvertGuidToLong(config.GuidNumberStyle, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user