mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
implement GameScriptEvent trigger
This commit is contained in:
parent
5050f75c9c
commit
f2e8bb40e0
@ -141,7 +141,7 @@ namespace IW4MAdmin.Application.EventParsers
|
||||
|
||||
if (timeMatch.Success)
|
||||
{
|
||||
if (timeMatch.Values[0].Contains(":"))
|
||||
if (timeMatch.Values[0].Contains(':'))
|
||||
{
|
||||
gameTime = timeMatch
|
||||
.Values
|
||||
@ -181,6 +181,16 @@ namespace IW4MAdmin.Application.EventParsers
|
||||
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))
|
||||
{
|
||||
return GenerateDefaultEvent(logLine, gameTime);
|
||||
|
Loading…
x
Reference in New Issue
Block a user