- add game interface reconnect comand
- add ScriptReconnect Event
This commit is contained in:
@ -17,6 +17,7 @@ namespace IW4MAdmin.Plugins.ClanTagRankCommands.Events
|
||||
|
||||
private const string EVENT_RC = "RC";
|
||||
private const string EVENT_ScriptBan = "ScriptBan";
|
||||
private const string EVENT_ScriptReconnect = "ScriptReconnect";
|
||||
|
||||
/// <summary>
|
||||
/// this is a custom event printed out by _clientids.gsc (used for recording highest personal round records)
|
||||
@ -63,6 +64,28 @@ namespace IW4MAdmin.Plugins.ClanTagRankCommands.Events
|
||||
}
|
||||
);
|
||||
}
|
||||
private EventGeneratorCallback ScriptReconnect()
|
||||
{
|
||||
return (EVENT_ScriptReconnect, EVENT_ScriptReconnect, (eventLine, _, _) =>
|
||||
{
|
||||
string[] lineSplit = eventLine.Split(";");
|
||||
|
||||
|
||||
//long originId = lineSplit[1].ConvertGuidToLong(NumberStyles.Integer);
|
||||
//int clientnum = int.Parse(lineSplit[2]);
|
||||
var ScriptReconnect = new ScriptReconnectEvent
|
||||
|
||||
{
|
||||
Type = GameEvent.EventType.Other,
|
||||
Subtype = EVENT_ScriptReconnect,
|
||||
Origin = Utilities.IW4MAdminClient(),
|
||||
//Target = new EFClient { NetworkId = originId, Name = lineSplit[3], ClientNumber = clientnum },
|
||||
ScriptData = eventLine
|
||||
};
|
||||
return ScriptReconnect;
|
||||
}
|
||||
);
|
||||
}
|
||||
//private const string EVENT_RoundNumber = "RoundNumber";
|
||||
|
||||
///// <summary>
|
||||
@ -86,12 +109,15 @@ namespace IW4MAdmin.Plugins.ClanTagRankCommands.Events
|
||||
public IEnumerable<EventGeneratorCallback> Events =>
|
||||
new[]
|
||||
{
|
||||
RC(),ScriptBan()
|
||||
RC(),ScriptBan(), ScriptReconnect(),
|
||||
|
||||
};
|
||||
|
||||
public class ScriptBanEvent : GameScriptEvent
|
||||
{
|
||||
}
|
||||
public class ScriptReconnectEvent : GameScriptEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user