implement GameScriptEvent trigger

This commit is contained in:
RaidMax 2023-05-01 21:38:58 -05:00
parent 994dbe142e
commit 72df5c9902

View File

@ -141,7 +141,7 @@ namespace IW4MAdmin.Application.EventParsers
if (timeMatch.Success) if (timeMatch.Success)
{ {
if (timeMatch.Values[0].Contains(":")) if (timeMatch.Values[0].Contains(':'))
{ {
gameTime = timeMatch gameTime = timeMatch
.Values .Values
@ -181,6 +181,16 @@ namespace IW4MAdmin.Application.EventParsers
return ParseMatchStartEvent(logLine, gameTime); return ParseMatchStartEvent(logLine, gameTime);
} }
if (logLine.StartsWith("GSE;"))
{
return new GameScriptEvent
{
ScriptData = logLine,
GameTime = gameTime,
Source = GameEvent.EventSource.Log
};
}
if (eventKey is null || !_customEventRegistrations.ContainsKey(eventKey)) if (eventKey is null || !_customEventRegistrations.ContainsKey(eventKey))
{ {
return GenerateDefaultEvent(logLine, gameTime); return GenerateDefaultEvent(logLine, gameTime);