private void Client_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); this.Client.Game.VehicleSpawnAllowed += new FrostbiteClient.IsEnabledHandler(Game_VehicleSpawnAllowed); this.Client.Game.VehicleSpawnDelay += new FrostbiteClient.LimitHandler(Game_VehicleSpawnDelay); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.NameTag += new FrostbiteClient.IsEnabledHandler(Game_NameTag); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.OnlySquadLeaderSpawn += new FrostbiteClient.IsEnabledHandler(Game_OnlySquadLeaderSpawn); this.Client.Game.UnlockMode += new FrostbiteClient.UnlockModeHandler(Game_UnlockMode); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.Hud += new FrostbiteClient.IsEnabledHandler(Game_Hud); this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds); this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage); this.Client.Game.ReservedSlotsListAggressiveJoin += new FrostbiteClient.IsEnabledHandler(Game_ReservedSlotsListAggressiveJoin); this.Client.Game.RoundLockdownCountdown += new FrostbiteClient.LimitHandler(Game_RoundLockdownCountdown); this.Client.Game.RoundWarmupTimeout += new FrostbiteClient.LimitHandler(Game_RoundWarmupTimeout); this.Client.Game.PremiumStatus += new FrostbiteClient.IsEnabledHandler(Game_PremiumStatus); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillCountForKick); this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueForKick); this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueIncrease); this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(m_prcClient_TeamKillValueDecreasePerSecond); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.Ranked += new FrostbiteClient.IsEnabledHandler(Client_Ranked); this.Client.Game.Punkbuster += new FrostbiteClient.IsEnabledHandler(Client_Punkbuster); this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(Client_ServerName); this.Client.Game.GamePassword += new FrostbiteClient.PasswordHandler(Client_GamePassword); this.Client.Game.Hardcore += new FrostbiteClient.IsEnabledHandler(Client_Hardcore); //this.Client.Game.RankLimit += new FrostbiteClient.LimitHandler(Client_RankLimit); //this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.FriendlyFire += new FrostbiteClient.IsEnabledHandler(Client_FriendlyFire); this.Client.Game.PlayerLimit += new FrostbiteClient.LimitHandler(Client_PlayerLimit); this.Client.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(Client_BannerUrl); this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(Client_ServerDescription); //this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); //this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); //this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); //this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); //this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); //this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(Client_TeamKillCountForKick); this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(Client_TeamKillValueForKick); this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(Client_TeamKillValueIncrease); this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(Client_TeamKillValueDecreasePerSecond); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.ProfanityFilter += new FrostbiteClient.IsEnabledHandler(Client_ProfanityFilter); this.Client.Game.LevelVariablesList += new FrostbiteClient.LevelVariableListHandler(Client_LevelVariablesList); this.Client.Game.ListPlaylists += new FrostbiteClient.ListPlaylistsHandler(Client_ListPlaylists); this.Client.Game.SupportedMaps += new FrostbiteClient.SupportedMapsHandler(Client_SupportedMaps); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(m_prcClient_ServerName); this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(m_prcClient_ServerDescription); this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(m_prcClient_ServerMessage); }
public ChatConsole(PRoConClient prcClient) : base() { this.m_prcClient = prcClient; this.FileHostNamePort = this.m_prcClient.FileHostNamePort; this.LoggingStartedPrefix = "Chat logging started"; this.LoggingStoppedPrefix = "Chat logging stopped"; this.FileNameSuffix = "chat"; this.LogJoinLeaving = false; this.LogKills = false; this.Scrolling = true; this.DisplayTypeIndex = 0; this.DisplayTimeIndex = 0; this.MessageHistory = new Queue<ChatMessage>(); this.m_prcClient.Game.Chat += new FrostbiteClient.RawChatHandler(m_prcClient_Chat); this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled); this.m_prcClient.Game.PlayerJoin += new FrostbiteClient.PlayerEventHandler(m_prcClient_PlayerJoin); this.m_prcClient.Game.PlayerLeft += new FrostbiteClient.PlayerLeaveHandler(m_prcClient_PlayerLeft); this.m_prcClient.ProconAdminSaying += new PRoConClient.ProconAdminSayingHandler(m_prcClient_ProconAdminSaying); this.m_prcClient.ProconAdminYelling += new PRoConClient.ProconAdminYellingHandler(m_prcClient_ProconAdminYelling); this.m_prcClient.ReadRemoteChatConsole += new PRoConClient.ReadRemoteConsoleHandler(m_prcClient_ReadRemoteChatConsole); }
public ListsSettings(PRoConClient prcClient) { this.m_isManualBansVisible = false; this.m_prcClient = prcClient; this.m_prcClient.Game.PlaylistSet += new FrostbiteClient.PlaylistSetHandler(m_prcClient_PlaylistSet); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); // deprecated R-5 this.Client.Game.AllUnlocksUnlocked += new FrostbiteClient.IsEnabledHandler(Game_AllUnlocksUnlocked); this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.BuddyOutline += new FrostbiteClient.IsEnabledHandler(Game_BuddyOutline); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.HudCrosshair += new FrostbiteClient.IsEnabledHandler(Game_HudCrosshair); this.Client.Game.HudEnemyTag += new FrostbiteClient.IsEnabledHandler(Game_HudEnemyTag); this.Client.Game.HudExplosiveIcons += new FrostbiteClient.IsEnabledHandler(Game_HudExplosiveIcons); this.Client.Game.HudGameMode += new FrostbiteClient.IsEnabledHandler(Game_HudGameMode); this.Client.Game.HudHealthAmmo += new FrostbiteClient.IsEnabledHandler(Game_HudHealthAmmo); this.Client.Game.HudMinimap += new FrostbiteClient.IsEnabledHandler(Game_HudMinimap); this.Client.Game.HudObiturary += new FrostbiteClient.IsEnabledHandler(Game_HudObiturary); this.Client.Game.HudPointsTracker += new FrostbiteClient.IsEnabledHandler(Game_HudPointsTracker); this.Client.Game.HudUnlocks += new FrostbiteClient.IsEnabledHandler(Game_HudUnlocks); this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.Playlist += new FrostbiteClient.PlaylistSetHandler(Game_Playlist); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage); }); }
public void Initialize(PRoConApplication praApplication, PRoConClient prcClient) { this.m_praApplication = praApplication; foreach (Account accAccount in this.m_praApplication.AccountsList) { if (this.AccountPrivileges.Contains(accAccount.Name) == false) { AccountPrivilege apPrivs = new AccountPrivilege(accAccount, new CPrivileges()); apPrivs.AccountPrivilegesChanged += new AccountPrivilege.AccountPrivilegesChangedHandler(apPrivs_AccountPrivilegesChanged); this.AccountPrivileges.Add(apPrivs); } else { this.AccountPrivileges[accAccount.Name].AccountPrivilegesChanged += new AccountPrivilege.AccountPrivilegesChangedHandler(apPrivs_AccountPrivilegesChanged); } } this.m_praApplication.AccountsList.AccountAdded += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountAdded); this.m_praApplication.AccountsList.AccountRemoved += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountRemoved); this.m_prcClient = prcClient; this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException); this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure); this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed); this.m_prcClient.Game.Login += new FrostbiteClient.EmptyParamterHandler(m_prcClient_CommandLogin); this.ClientConnected += new LayerAccountHandler(PRoConLayer_ClientConnected); if (this.LayerEnabled == true && this.IsLayerOnline == false) { this.StartLayerListener(); } }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(m_prcClient_ServerName); this.Client.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(m_prcClient_BannerUrl); this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(m_prcClient_ServerDescription); }); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.m_client.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_client_ProconPrivileges); this.m_client.FullTextChatModerationListList += new PRoConClient.FullTextChatModerationListListHandler(m_client_FullTextChatModerationListList); this.m_client.Game.TextChatModerationListAddPlayer += new FrostbiteClient.TextChatModerationListAddPlayerHandler(Game_TextChatModerationListAddPlayer); this.m_client.Game.TextChatModerationListRemovePlayer += new FrostbiteClient.TextChatModerationListRemovePlayerHandler(Game_TextChatModerationListRemovePlayer); }); }
public EventCaptures(PRoConClient prcClient) { this.CapturedEvents = new NotificationList<CapturableEvents>(); foreach (CapturableEvents item in Enum.GetValues(typeof(CapturableEvents))) { this.CapturedEvents.Add(item); } this.CapturedEvents.ItemAdded += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemAdded); this.CapturedEvents.ItemRemoved += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemRemoved); this.LogEntries = new Queue<CapturedEvent>(); this.m_isOptionsVisible = false; this.m_iMaximumDisplayedEvents = 200; if ((this.m_prcClient = prcClient) != null) { this.FileHostNamePort = this.m_prcClient.FileHostNamePort; this.LoggingStartedPrefix = "Events logging started"; this.LoggingStoppedPrefix = "Events logging stopped"; this.FileNameSuffix = "events"; this.m_prcClient.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectAttempt); this.m_prcClient.ConnectSuccess += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectSuccess); this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure); this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException); this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed); this.m_prcClient.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogin); this.m_prcClient.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout); this.m_prcClient.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure); this.m_prcClient.Game.LevelStarted += new FrostbiteClient.EmptyParamterHandler(m_prcClient_LevelStarted); this.m_prcClient.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel); this.m_prcClient.Game.PlayerJoin += new FrostbiteClient.PlayerEventHandler(m_prcClient_PlayerJoin); this.m_prcClient.Game.PlayerLeft += new FrostbiteClient.PlayerLeaveHandler(m_prcClient_PlayerLeft); this.m_prcClient.Game.PlayerKicked += new FrostbiteClient.PlayerKickedHandler(m_prcClient_PlayerKicked); this.m_prcClient.Game.PlayerKickedByAdmin += new FrostbiteClient.PlayerKickedHandler(Game_PlayerKickedByAdmin); this.m_prcClient.Game.PlayerKilledByAdmin += new FrostbiteClient.PlayerKilledByAdminHandler(Game_PlayerKilledByAdmin); this.m_prcClient.Game.PlayerMovedByAdmin += new FrostbiteClient.PlayerMovedByAdminHandler(Game_PlayerMovedByAdmin); this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled); this.m_prcClient.PunkbusterPlayerUnbanned += new PRoConClient.PunkbusterBanHandler(m_prcClient_PlayerUnbanned); this.m_prcClient.Game.BanListAdd += new FrostbiteClient.BanListAddHandler(m_prcClient_BanListAdd); this.m_prcClient.Game.BanListRemove += new FrostbiteClient.BanListRemoveHandler(m_prcClient_BanListRemove); this.m_prcClient.CompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_CompilingPlugins); this.m_prcClient.RecompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_RecompilingPlugins); this.m_prcClient.PluginsCompiled += new PRoConClient.EmptyParamterHandler(m_prcClient_PluginsCompiled); this.m_prcClient.Game.PlayerChangedTeam += new FrostbiteClient.PlayerTeamChangeHandler(m_prcClient_PlayerChangedTeam); this.m_prcClient.Game.PlayerChangedSquad += new FrostbiteClient.PlayerTeamChangeHandler(m_prcClient_PlayerChangedSquad); } }
private void item_GameTypeDiscovered(PRoConClient sender) { sender.ConnectionClosed += new PRoConClient.EmptyParamterHandler(sender_ConnectionClosed); sender.ConnectionFailure += new PRoConClient.FailureHandler(sender_ConnectionFailure); sender.ConnectSuccess += new PRoConClient.EmptyParamterHandler(sender_ConnectSuccess); sender.Login += new PRoConClient.EmptyParamterHandler(sender_Login); sender.LoginAttempt += new PRoConClient.EmptyParamterHandler(sender_LoginAttempt); sender.LoginFailure += new PRoConClient.AuthenticationFailureHandler(sender_LoginFailure); sender.Logout += new PRoConClient.EmptyParamterHandler(sender_Logout); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.m_prcClient.EventsLogging.CapturedEvents.ItemAdded += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemAdded); this.m_prcClient.EventsLogging.CapturedEvents.ItemRemoved += new NotificationList<CapturableEvents>.ItemModifiedHandler(CapturedEvents_ItemRemoved); this.m_prcClient.EventsLogging.MaximumDisplayedEventsChange += new EventCaptures.MaximumDisplayedEventsChangeHandler(LoggedEvents_MaximumDisplayedEventsChange); this.m_prcClient.EventsLogging.OptionsVisibleChange += new EventCaptures.OptionsVisibleChangeHandler(LoggedEvents_OptionsHiddenChange); this.m_prcClient.EventsLogging.LoggedEvent += new EventCaptures.LoggedEventHandler(LoggedEvents_LoggedEvent); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.RankLimit += new FrostbiteClient.LimitHandler(Client_RankLimit); this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.TextChatModerationMode += new FrostbiteClient.TextChatModerationModeHandler(Game_TextChatModerationMode); this.Client.Game.TextChatSpamTriggerCount += new FrostbiteClient.LimitHandler(Game_TextChatSpamTriggerCount); this.Client.Game.TextChatSpamDetectionTime += new FrostbiteClient.LimitHandler(Game_TextChatSpamDetectionTime); this.Client.Game.TextChatSpamCoolDownTime += new FrostbiteClient.LimitHandler(Game_TextChatSpamCoolDownTime); this.Client.Game.ResponseError += new FrostbiteClient.ResponseErrorHandler(Game_ResponseError); }); }
public void SetConnection(PRoConClient prcClient) { if ((this.m_prcClient = prcClient) != null) { if (this.m_prcClient.Game != null) { this.m_prcClient_GameTypeDiscovered(prcClient); } else { this.m_prcClient.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcClient_GameTypeDiscovered); } } }
public PRoConLayerClient(FrostbiteLayerConnection newConnection, PRoConApplication praApplication, PRoConClient prcClient) { this.IsLoggedIn = false; this.GzipCompression = false; this.ProconEventsUid = String.Empty; if (prcClient.Game != null) { if (prcClient.Game is BFBC2Client) { this.Game = new BFBC2LayerClient(newConnection); } else if (prcClient.Game is MoHClient) { this.Game = new MoHLayerClient(newConnection); } this.m_requestDelegates = new Dictionary<string, RequestPacketHandler>() { { "procon.login.username", this.DispatchProconLoginUsernameRequest }, { "procon.registerUid", this.DispatchProconRegisterUidRequest }, { "procon.version", this.DispatchProconVersionRequest }, { "procon.vars", this.DispatchProconVarsRequest }, { "procon.privileges", this.DispatchProconPrivilegesRequest }, { "procon.compression", this.DispatchProconCompressionRequest }, { "procon.account.listAccounts", this.DispatchProconAccountListAccountsRequest }, { "procon.account.listLoggedIn", this.DispatchProconAccountListLoggedInRequest }, { "procon.account.create", this.DispatchProconAccountCreateRequest }, { "procon.account.delete", this.DispatchProconAccountDeleteRequest }, { "procon.account.setPassword", this.DispatchProconAccountSetPasswordRequest }, { "procon.battlemap.deleteZone", this.DispatchProconBattlemapDeleteZoneRequest }, { "procon.battlemap.createZone", this.DispatchProconBattlemapCreateZoneRequest }, { "procon.battlemap.modifyZoneTags", this.DispatchProconBattlemapModifyZoneTagsRequest }, { "procon.battlemap.modifyZonePoints", this.DispatchProconBattlemapModifyZonePointsRequest }, { "procon.battlemap.listZones", this.DispatchProconBattlemapListZonesRequest }, { "procon.layer.setPrivileges", this.DispatchProconLayerSetPrivilegesRequest }, { "procon.plugin.listLoaded", this.DispatchProconPluginListLoadedRequest }, { "procon.plugin.listEnabled", this.DispatchProconPluginListEnabledRequest }, { "procon.plugin.enable", this.DispatchProconPluginEnableRequest }, { "procon.plugin.setVariable", this.DispatchProconPluginSetVariableRequest }, { "procon.exec", this.DispatchProconExecRequest }, { "procon.packages.install", this.DispatchProconPackagesInstallRequest }, { "procon.admin.say", this.DispatchProconAdminSayRequest }, { "procon.admin.yell", this.DispatchProconAdminYellRequest }, }; if ((this.m_praApplication = praApplication) != null && (this.m_prcClient = prcClient) != null) { this.RegisterEvents(); } } }
public override void SetConnection(PRoConClient prcClient) { base.SetConnection(prcClient); if (this.Client != null) { if (this.Client.Game != null) { this.Client_GameTypeDiscovered(prcClient); } else { this.Client.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(Client_GameTypeDiscovered); } } }
public override void SetConnection(Core.Remote.PRoConClient prcClient) { base.SetConnection(prcClient); if ((this.m_client = prcClient) != null) { if (this.m_client.Game != null) { this.m_prcClient_GameTypeDiscovered(prcClient); } else { this.m_client.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcClient_GameTypeDiscovered); } } }
public PunkbusterConsole(PRoConClient prcClient) : base() { this.m_prcClient = prcClient; this.FileHostNamePort = this.m_prcClient.FileHostNamePort; this.LoggingStartedPrefix = "Punkbuster logging started"; this.LoggingStoppedPrefix = "Punkbuster logging stopped"; this.FileNameSuffix = "punkbuster"; this.m_prcClient.Game.PunkbusterMessage += new FrostbiteClient.PunkbusterMessageHandler(m_prcClient_PunkbusterMessage); this.m_prcClient.Game.SendPunkbusterMessage += new FrostbiteClient.SendPunkBusterMessageHandler(m_prcClient_SendPunkbusterMessage); }
public void SetConnection(PRoConClient prcClient) { if ((this.m_prcClient = prcClient) != null) { this.m_prcClient.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectAttempt); this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed); this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure); this.m_prcClient.SocketException += new PRoConClient.SocketExceptionHandler(m_prcClient_SocketException); this.m_prcClient.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout); this.m_prcClient.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure); this.m_prcClient.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_Login); this.m_prcClient.AutomaticallyConnectChanged += new PRoConClient.AutomaticallyConnectHandler(m_prcClient_AutomaticallyConnectChanged); } }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.ClanTeams += new FrostbiteClient.IsEnabledHandler(Game_ClanTeams); this.Client.Game.NoCrosshairs += new FrostbiteClient.IsEnabledHandler(Game_NoCrosshairs); this.Client.Game.RealisticHealth += new FrostbiteClient.IsEnabledHandler(Game_RealisticHealth); this.Client.Game.NoUnlocks += new FrostbiteClient.IsEnabledHandler(Game_NoUnlocks); this.Client.Game.NoAmmoPickups += new FrostbiteClient.IsEnabledHandler(Game_NoAmmoPickups); this.Client.Game.TdmScoreCounterMaxScore += new FrostbiteClient.LimitHandler(Game_TdmScoreCounterMaxScore); this.Client.Game.SkillLimit += new FrostbiteClient.UpperLowerLimitHandler(Game_SkillLimit); this.Client.Game.RoundStartTimer += new FrostbiteClient.IsEnabledHandler(Game_RoundStartTimer); this.Client.Game.RoundStartTimerDelay += new FrostbiteClient.LimitHandler(Game_RoundStartTimerDelay); this.Client.Game.RoundStartTimerPlayerLimit += new FrostbiteClient.LimitHandler(Game_RoundStartTimerPlayerLimit); this.Client.Game.PreRoundLimit += new FrostbiteClient.UpperLowerLimitHandler(Game_PreRoundLimit); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.MaxSpectators += new FrostbiteClient.LimitHandler(Game_MaxSpectators); this.Client.Game.FairFight += new FrostbiteClient.IsEnabledHandler(Game_FairFight); this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); this.Client.Game.VehicleSpawnAllowed += new FrostbiteClient.IsEnabledHandler(Game_VehicleSpawnAllowed); this.Client.Game.VehicleSpawnDelay += new FrostbiteClient.LimitHandler(Game_VehicleSpawnDelay); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.NameTag += new FrostbiteClient.IsEnabledHandler(Game_NameTag); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.OnlySquadLeaderSpawn += new FrostbiteClient.IsEnabledHandler(Game_OnlySquadLeaderSpawn); this.Client.Game.UnlockMode += new FrostbiteClient.UnlockModeHandler(Game_UnlockMode); this.Client.Game.BF4preset += new FrostbiteClient.BF4presetHandler(Game_BF4preset); // not used in BF4 //this.Client.Game.GunMasterWeaponsPreset += new FrostbiteClient.GunMasterWeaponsPresetHandler(Game_GunMasterWeaponsPreset); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.Hud += new FrostbiteClient.IsEnabledHandler(Game_Hud); this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); this.Client.Game.RoundTimeLimit += new FrostbiteClient.LimitHandler(Game_RoundTimeLimit); this.Client.Game.TicketBleedRate += new FrostbiteClient.LimitHandler(Game_TicketBleedRate); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds); this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage); this.Client.Game.IsHitIndicator += new FrostbiteClient.IsEnabledHandler(Game_IsHitIndicator); this.Client.Game.IsCommander += new FrostbiteClient.IsEnabledHandler(Game_IsCommander); this.Client.Game.ServerType += new FrostbiteClient.VarsStringHandler(Game_ServerType); this.Client.Game.AlwaysAllowSpectators += new FrostbiteClient.IsEnabledHandler(Game_AlwaysAllowSpectators); this.Client.Game.ReservedSlotsListAggressiveJoin += new FrostbiteClient.IsEnabledHandler(Game_ReservedSlotsListAggressiveJoin); this.Client.Game.RoundLockdownCountdown += new FrostbiteClient.LimitHandler(Game_RoundLockdownCountdown); this.Client.Game.RoundWarmupTimeout += new FrostbiteClient.LimitHandler(Game_RoundWarmupTimeout); this.Client.Game.TeamFactionOverride += new FrostbiteClient.TeamFactionOverrideHandler(Game_TeamFactionOverride); // not used in BF4 //this.Client.Game.PremiumStatus += new FrostbiteClient.IsEnabledHandler(Game_PremiumStatus); }); }
public PluginConsole(PRoConClient prcClient) : base() { this.m_prcClient = prcClient; this.LogEntries = new Queue<LogEntry>(); this.FileHostNamePort = this.m_prcClient.FileHostNamePort; this.LoggingStartedPrefix = "Plugin logging started"; this.LoggingStoppedPrefix = "Plugin logging stopped"; this.FileNameSuffix = "plugin"; this.m_prcClient.CompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_CompilingPlugins); this.m_prcClient.RecompilingPlugins += new PRoConClient.EmptyParamterHandler(m_prcClient_RecompilingPlugins); }
public PluginManager(PRoConClient cpcClient) { m_appDomainSandbox = null; this.Plugins = new PluginDictionary(); //this.m_dicLoadedPlugins = new Dictionary<string, IPRoConPluginInterface>(); //this.m_dicEnabledPlugins = new Dictionary<string, IPRoConPluginInterface>(); //this.CacheFailCompiledPluginVariables = new Dictionary<string, Dictionary<string, string>>(); this.m_client = cpcClient; //this.LoadedClassNames = new List<string>(); this.MatchedInGameCommands = new Dictionary<string, MatchCommand>(); this.CommandsNeedingConfirmation = new ConfirmationDictionary(); this.AssignEventHandler(); }
public MapGeometry(PRoConClient prcClient) { // this.MapImagePacks = new MapImagePackDictionary(); // this.MapPath = Path.Combine(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Media"), "Maps"); //this.LoadMapImagePacks(); this.MapZones = new MapZoneDictionary(); //if (this.MapImagePacks.Count > 0) { // this.LoadedMapImagePack = this.MapImagePacks[0]; //} if ((this.m_prcClient = prcClient) != null) { this.m_prcClient.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo); this.m_prcClient.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcClient_LoadingLevel); this.m_prcClient.Game.LevelLoaded += new FrostbiteClient.LevelLoadedHandler(m_prcClient_LevelLoaded); this.m_prcClient.PlayerKilled += new PRoConClient.PlayerKilledHandler(m_prcClient_PlayerKilled); // this.m_prcClient.LoadingLevel += new FrostbiteConnection.LoadingLevelHandler(m_prcClient_LoadingLevel); } }
private void Connections_ConnectionRemoved(PRoConClient item) { this.InvokeIfRequired(() => { if (this.m_dicPages.ContainsKey(item.HostNamePort) == true) { if (this.cboServerList.Items.Contains(this.m_dicPages[item.HostNamePort]) == true) { if (this.cboServerList.SelectedItem == this.m_dicPages[item.HostNamePort]) { this.cboServerList.SelectedIndex = 0; } this.cboServerList.Items.Remove(this.m_dicPages[item.HostNamePort]); } this.m_dicPages.Remove(item.HostNamePort); } this.RefreshServerListing(); }); }
public void SetConnection(PRoConClient prcClient) { if ((this.m_prcClient = prcClient) != null) { this.uscPlugins.SetConnection(prcClient); this.m_prcClient.RemoteAccountLoggedIn += new PRoConClient.RemoteAccountLoginStatusHandler(m_prcClient_RemoteAccountLoggedIn); this.m_prcClient.RemoteAccountCreated += new PRoConClient.RemoteAccountHandler(m_prcClient_RemoteAccountCreated); this.m_prcClient.RemoteAccountChangePassword += new PRoConClient.EmptyParamterHandler(m_prcClient_RemoteAccountChangePassword); this.m_prcClient.RemoteAccountDeleted += new PRoConClient.RemoteAccountHandler(m_prcClient_RemoteAccountDeleted); this.m_prcClient.RemoteAccountAltered += new PRoConClient.RemoteAccountAlteredHandler(m_prcClient_RemoteAccountAltered); this.m_prcClient.RemoteLoadedPlugins += new PRoConClient.RemoteLoadedPluginsHandler(m_prcClient_RemoteLoadedPlugins); this.m_prcClient.RemoteEnabledPlugins += new PRoConClient.RemoteEnabledPluginsHandler(m_prcClient_RemoteEnabledPlugins); this.m_prcClient.RemotePluginLoaded += new PRoConClient.RemotePluginLoadedHandler(m_prcClient_RemotePluginLoaded); this.m_prcClient.RemotePluginEnabled += new PRoConClient.RemotePluginEnabledHandler(m_prcClient_RemotePluginEnabled); this.m_prcClient.RemotePluginVariables += new PRoConClient.RemotePluginVariablesHandler(m_prcClient_RemotePluginVariables); this.m_prcClient.ReadRemotePluginConsole += new PRoConClient.ReadRemoteConsoleHandler(m_prcClient_ReadRemotePluginConsole); this.m_prcClient.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_prcClient_ProconPrivileges); } }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(m_prcClient_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(m_prcClient_KillCam); // deprecated R-5 this.Client.Game.AllUnlocksUnlocked += new FrostbiteClient.IsEnabledHandler(Game_AllUnlocksUnlocked); this.Client.Game.BuddyOutline += new FrostbiteClient.IsEnabledHandler(Game_BuddyOutline); this.Client.Game.HudBuddyInfo += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudBuddyInfo); this.Client.Game.HudClassAbility += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudClassAbility); this.Client.Game.HudCrosshair += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudCrosshair); this.Client.Game.HudEnemyTag += new FrostbiteClient.IsEnabledHandler(Game_HudEnemyTag); this.Client.Game.HudExplosiveIcons += new FrostbiteClient.IsEnabledHandler(Game_HudExplosiveIcons); this.Client.Game.HudGameMode += new FrostbiteClient.IsEnabledHandler(Game_HudGameMode); this.Client.Game.HudHealthAmmo += new FrostbiteClient.IsEnabledHandler(Game_HudHealthAmmo); this.Client.Game.HudMinimap += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudMinimap); this.Client.Game.HudObiturary += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudObiturary); this.Client.Game.HudPointsTracker += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudPointsTracker); this.Client.Game.HudUnlocks += new FrostbiteClient.IsEnabledHandler(m_prcClient_HudUnlocks); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(m_prcClient_ThirdPersonVehicleCameras); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.Playlist += new FrostbiteClient.PlaylistSetHandler(Game_Playlist); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); }); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.Ranked += new FrostbiteClient.IsEnabledHandler(Client_Ranked); this.Client.Game.Punkbuster += new FrostbiteClient.IsEnabledHandler(Client_Punkbuster); this.Client.Game.ServerName += new FrostbiteClient.ServerNameHandler(Client_ServerName); this.Client.Game.GamePassword += new FrostbiteClient.PasswordHandler(Client_GamePassword); this.Client.Game.Hardcore += new FrostbiteClient.IsEnabledHandler(Client_Hardcore); //this.Client.Game.RankLimit += new FrostbiteClient.LimitHandler(Client_RankLimit); //this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.FriendlyFire += new FrostbiteClient.IsEnabledHandler(Client_FriendlyFire); this.Client.Game.PlayerLimit += new FrostbiteClient.LimitHandler(Client_PlayerLimit); this.Client.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(Client_BannerUrl); this.Client.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(Client_ServerDescription); //this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); //this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); //this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); //this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); //this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); //this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); this.Client.Game.TeamKillCountForKick += new FrostbiteClient.LimitHandler(Client_TeamKillCountForKick); this.Client.Game.TeamKillKickForBan += new FrostbiteClient.LimitHandler(Client_TeamKillKickForBan); this.Client.Game.TeamKillValueForKick += new FrostbiteClient.LimitHandler(Client_TeamKillValueForKick); this.Client.Game.TeamKillValueIncrease += new FrostbiteClient.LimitHandler(Client_TeamKillValueIncrease); this.Client.Game.TeamKillValueDecreasePerSecond += new FrostbiteClient.LimitHandler(Client_TeamKillValueDecreasePerSecond); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.ProfanityFilter += new FrostbiteClient.IsEnabledHandler(Client_ProfanityFilter); this.Client.Game.LevelVariablesList += new FrostbiteClient.LevelVariableListHandler(Client_LevelVariablesList); this.Client.Game.ListPlaylists += new FrostbiteClient.ListPlaylistsHandler(Client_ListPlaylists); this.Client.Game.SupportedMaps += new FrostbiteClient.SupportedMapsHandler(Client_SupportedMaps); }); }
public ConnectionConsole(PRoConClient prcClient) : base() { this.m_prcClient = prcClient; this.FileHostNamePort = this.m_prcClient.FileHostNamePort; this.LoggingStartedPrefix = "Console logging started"; this.LoggingStoppedPrefix = "Console logging stopped"; this.FileNameSuffix = "console"; this.LogDebugDetails = false; this.LogEventsConnection = false; this.DisplayConnection = true; this.DisplayPunkbuster = true; this.ConScrolling = true; this.PBScrolling = true; this.m_prcClient.Game.Connection.PacketQueued += new FrostbiteConnection.PacketQueuedHandler(m_prcClient_PacketQueued); this.m_prcClient.Game.Connection.PacketDequeued += new FrostbiteConnection.PacketQueuedHandler(m_prcClient_PacketDequeued); this.m_prcClient.Game.Connection.PacketSent += new FrostbiteConnection.PacketDispatchHandler(m_prcClient_PacketSent); this.m_prcClient.Game.Connection.PacketReceived += new FrostbiteConnection.PacketDispatchHandler(m_prcClient_PacketRecieved); this.m_prcClient.ConnectAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectAttempt); this.m_prcClient.ConnectSuccess += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandConnectSuccess); //this.m_prcClient.EventsConnectAttempt += new FrostbiteConnection.EmptyParamterHandler(m_prcClient_EventsConnectAttempt); //this.m_prcClient.EventsConnectSuccess += new FrostbiteConnection.EmptyParamterHandler(m_prcClient_EventsConnectSuccess); this.m_prcClient.ConnectionFailure += new PRoConClient.FailureHandler(m_prcClient_ConnectionFailure); this.m_prcClient.ConnectionClosed += new PRoConClient.EmptyParamterHandler(m_prcClient_ConnectionClosed); this.m_prcClient.LoginAttempt += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLoginAttempt); this.m_prcClient.Login += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogin); this.m_prcClient.LoginFailure += new PRoConClient.AuthenticationFailureHandler(m_prcClient_CommandLoginFailure); this.m_prcClient.Logout += new PRoConClient.EmptyParamterHandler(m_prcClient_CommandLogout); //this.m_prcClient.EventsLogin += new FrostbiteConnection.EmptyParamterHandler(m_prcClient_EventsLogin); //this.m_prcClient.EventsLoginAttempt += new FrostbiteConnection.EmptyParamterHandler(m_prcClient_EventsLoginAttempt); }
private void Client_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(Client_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(Client_KillCam); this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(Client_MiniMap); this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(Client_CrossHair); this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(Client_ThreeDSpotting); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(Client_ThirdPersonVehicleCameras); this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(Client_MiniMapSpotting); this.Client.Game.VehicleSpawnAllowed += new FrostbiteClient.IsEnabledHandler(Game_VehicleSpawnAllowed); this.Client.Game.VehicleSpawnDelay += new FrostbiteClient.LimitHandler(Game_VehicleSpawnDelay); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.NameTag += new FrostbiteClient.IsEnabledHandler(Game_NameTag); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.OnlySquadLeaderSpawn += new FrostbiteClient.IsEnabledHandler(Game_OnlySquadLeaderSpawn); this.Client.Game.UnlockMode += new FrostbiteClient.UnlockModeHandler(Game_UnlockMode); this.Client.Game.GunMasterWeaponsPreset += new FrostbiteClient.GunMasterWeaponsPresetHandler(Game_GunMasterWeaponsPreset); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.Hud += new FrostbiteClient.IsEnabledHandler(Game_Hud); this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); this.Client.Game.CtfRoundTimeModifier += new FrostbiteClient.LimitHandler(Game_CtfRoundTimeModifier); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(Client_IdleTimeout); this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(Game_IdleBanRounds); this.Client.Game.ServerMessage += new FrostbiteClient.ServerMessageHandler(Game_ServerMessage); this.Client.Game.ReservedSlotsListAggressiveJoin += new FrostbiteClient.IsEnabledHandler(Game_ReservedSlotsListAggressiveJoin); this.Client.Game.RoundLockdownCountdown += new FrostbiteClient.LimitHandler(Game_RoundLockdownCountdown); this.Client.Game.RoundWarmupTimeout += new FrostbiteClient.LimitHandler(Game_RoundWarmupTimeout); this.Client.Game.PremiumStatus += new FrostbiteClient.IsEnabledHandler(Game_PremiumStatus); }); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.m_client.Game.PlaylistSet += new FrostbiteClient.PlaylistSetHandler(Game_PlaylistSet); this.m_client.Game.MapListSave += new FrostbiteClient.EmptyParamterHandler(Game_MapListSave); this.m_client.Game.MapListMapAppended += new FrostbiteClient.MapListAppendedHandler(Game_MapListMapAppended); this.m_client.Game.MapListCleared += new FrostbiteClient.EmptyParamterHandler(Game_MapListCleared); this.m_client.Game.MapListListed += new FrostbiteClient.MapListListedHandler(Game_MapListListed); this.m_client.Game.MapListMapInserted += new FrostbiteClient.MapListMapInsertedHandler(Game_MapListMapInserted); this.m_client.Game.MapListMapRemoved += new FrostbiteClient.MapListLevelIndexHandler(Game_MapListMapRemoved); this.m_client.Game.MapListGetMapIndices += new FrostbiteClient.MapListGetMapIndicesHandler(Game_MapListGetMapIndices); this.m_client.Game.MapListNextLevelIndex += new FrostbiteClient.MapListLevelIndexHandler(Game_MapListNextLevelIndex); this.m_client.MapListPool.ItemAdded += new NotificationList <CMap> .ItemModifiedHandler(MapListPool_ItemAdded); this.m_client.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_prcClient_ProconPrivileges); this.splitContainer1.Panel1Collapsed = this.m_client.Game.HasOpenMaplist; this.RefreshLocalMaplist(); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this.Client.Game.Punkbuster += new FrostbiteClient.IsEnabledHandler(m_prcClient_Punkbuster); this.Client.Game.Ranked += new FrostbiteClient.IsEnabledHandler(m_prcClient_Ranked); // this.Client.Game.PremiumStatus += new FrostbiteClient.IsEnabledHandler(Game_PremiumStatus); this.Client.Game.GamePassword += new FrostbiteClient.PasswordHandler(m_prcClient_GamePassword); this.Client.Game.AdminPassword += new FrostbiteClient.PasswordHandler(m_prcClient_AdminPassword); this.Client.Game.PlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_PlayerLimit); this.Client.Game.MaxPlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_MaxPlayerLimit); this.Client.Game.CurrentPlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_CurrentPlayerLimit); this.Client.Game.IdleTimeout += new FrostbiteClient.LimitHandler(m_prcClient_IdleTimeout); this.Client.Game.IdleBanRounds += new FrostbiteClient.LimitHandler(m_prcClient_IdleBanRounds); // this.Client.Game.ReservedSlotsListAggressiveJoin += new FrostbiteClient.IsEnabledHandler(Game_ReservedSlotsAggressiveJoin); this.Client.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo); }); }
private void m_prcClient_PlayerKilled(PRoConClient sender, Kill kKillerVictimDetails) { float flTrespassArea = 0.0F; foreach (MapZoneDrawing zone in new List<MapZoneDrawing>(this.MapZones)) { if (String.Compare(this.m_currentMapFileName, zone.LevelFileName, true) == 0) { if ((flTrespassArea = zone.TrespassArea(kKillerVictimDetails.KillerLocation, 14.14F)) > 0.0F) { if (this.MapZoneTrespassed != null) { FrostbiteConnection.RaiseEvent(this.MapZoneTrespassed.GetInvocationList(), kKillerVictimDetails.Killer, ZoneAction.Kill, new MapZone(zone.UID, zone.LevelFileName, zone.Tags.ToString(), zone.ZonePolygon, true), kKillerVictimDetails.KillerLocation, flTrespassArea, kKillerVictimDetails); } } if ((flTrespassArea = zone.TrespassArea(kKillerVictimDetails.VictimLocation, 14.14F)) > 0.0F) { if (this.MapZoneTrespassed != null) { FrostbiteConnection.RaiseEvent(this.MapZoneTrespassed.GetInvocationList(), kKillerVictimDetails.Victim, ZoneAction.Death, new MapZone(zone.UID, zone.LevelFileName, zone.Tags.ToString(), zone.ZonePolygon, true), kKillerVictimDetails.VictimLocation, flTrespassArea, kKillerVictimDetails); } } } } }
public Expression(PRoConClient prcClient, string strExpression) { TextExpression = strExpression; //this.m_prcClient = prcClient; Operators = new List <string>() { "/", "*", "-", "+", "%", "<", "<=", ">", ">=", "==", "!=", "&&", "||", "=" }; }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.m_prcClient.ChatConsole.WriteConsole += new PRoCon.Core.Logging.Loggable.WriteConsoleHandler(ChatConsole_WriteConsole); this.m_prcClient.ChatConsole.LogJoinLeavingChanged += new PRoCon.Core.Consoles.ChatConsole.IsEnabledHandler(ChatConsole_LogJoinLeavingChanged); this.m_prcClient.ChatConsole.LogKillsChanged += new PRoCon.Core.Consoles.ChatConsole.IsEnabledHandler(ChatConsole_LogKillsChanged); this.m_prcClient.ChatConsole.ScrollingChanged += new PRoCon.Core.Consoles.ChatConsole.IsEnabledHandler(ChatConsole_ScrollingChanged); this.m_prcClient.ChatConsole.DisplayTimeChanged += new PRoCon.Core.Consoles.ChatConsole.IndexChangedHandler(ChatConsole_DisplayTimeChanged); this.m_prcClient.ChatConsole.DisplayTypeChanged += new PRoCon.Core.Consoles.ChatConsole.IndexChangedHandler(ChatConsole_DisplayTypeChanged); this.m_prcClient.Game.ListPlayers += new FrostbiteClient.ListPlayersHandler(m_prcClient_ListPlayers); this.m_prcClient.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcClient_ServerInfo); if (sender.Game is MoHClient) { cboDisplayList.Items.RemoveAt(1); } if (sender.Game is BF3Client) { this.m_iCanLongMsg = 1; this.m_iChat_MaxLength = 128; } }
void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.InvokeIfRequired(() => { this._application.AccountsList.AccountAdded += new PRoCon.Core.Accounts.AccountDictionary.AccountAlteredHandler(AccountsList_AccountAdded); this._application.AccountsList.AccountRemoved += new PRoCon.Core.Accounts.AccountDictionary.AccountAlteredHandler(AccountsList_AccountRemoved); foreach (Account acAccount in this._application.AccountsList) { acAccount.AccountPasswordChanged += new Account.AccountPasswordChangedHandler(acAccount_AccountPasswordChanged); if (this._client.Layer.AccountPrivileges.Contains(acAccount.Name) == true) { this._client.Layer.AccountPrivileges[acAccount.Name].AccountPrivilegesChanged += new AccountPrivilege.AccountPrivilegesChangedHandler(uscAccountsPanel_AccountPrivilegesChanged); } } this._client.Layer.LayerStarted += Layer_LayerOnline; this._client.Layer.LayerShutdown += Layer_LayerOffline; this._client.Layer.SocketError += Layer_LayerSocketError; this._client.Layer.ClientConnected += Layer_ClientConnected; }); }
private void m_prcConnection_ProconPrivileges(PRoConClient sender, CPrivileges spPrivs) { if (spPrivs.CanIssueLimitedProconPluginCommands == true && this.tbcClientTabs.TabPages.Contains(this.m_tabParentLayerControl) == false) { this.tbcClientTabs.TabPages.Add(this.m_tabParentLayerControl); this.m_tabParentLayerControl.ImageKey = "sitemap_color.png"; /* * this.m_prcConnection.SendCommand(new List<string> { "procon.account.listAccounts" }); * this.m_prcConnection.SendCommand(new List<string> { "procon.account.listLoggedIn" }); * * this.m_prcConnection.SendCommand(new List<string> { "procon.plugin.listLoaded" }); * this.m_prcConnection.SendCommand(new List<string> { "procon.plugin.listEnabled" }); */ } else if (spPrivs.CanIssueLimitedProconCommands == false && this.tbcClientTabs.TabPages.Contains(this.m_tabParentLayerControl) == true) { this.tbcClientTabs.TabPages.Remove(this.m_tabParentLayerControl); } if (this.m_praApplication.OptionsSettings.LayerHideLocalPlugins == true) { this.tbcClientTabs.TabPages.Remove(this.tabPlugins); // this.tabPlugins.Hide(); } if (this.m_praApplication.OptionsSettings.LayerHideLocalAccounts == true) { this.tbcClientTabs.TabPages.Remove(this.tabAccounts); // this.tabAccounts.Hide(); } this.pnlMapControls.Visible = spPrivs.CanUseMapFunctions; this.m_prcConnection.SendGetProconVarsPacket("TEMP_BAN_CEILING"); //this.m_prcConnection.SendRequest(new List<string> { "procon.vars", "TEMP_BAN_CEILING" }); }
public ServerSettings(PRoConClient prcClient) { this.m_prcClient = prcClient; this.m_prcClient.Game.GamePassword += new FrostbiteClient.PasswordHandler(m_prcClient_GamePassword); this.m_prcClient.Game.AdminPassword += new FrostbiteClient.PasswordHandler(m_prcClient_AdminPassword); this.m_prcClient.Game.Punkbuster += new FrostbiteClient.IsEnabledHandler(m_prcClient_Punkbuster); this.m_prcClient.Game.Hardcore += new FrostbiteClient.IsEnabledHandler(m_prcClient_Hardcore); this.m_prcClient.Game.Ranked += new FrostbiteClient.IsEnabledHandler(m_prcClient_Ranked); this.m_prcClient.Game.RankLimit += new FrostbiteClient.LimitHandler(m_prcClient_RankLimit); this.m_prcClient.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(m_prcClient_TeamBalance); this.m_prcClient.Game.FriendlyFire += new FrostbiteClient.IsEnabledHandler(m_prcClient_FriendlyFire); this.m_prcClient.Game.PlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_PlayerLimit); this.m_prcClient.Game.MaxPlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_MaxPlayerLimit); this.m_prcClient.Game.CurrentPlayerLimit += new FrostbiteClient.LimitHandler(m_prcClient_CurrentPlayerLimit); this.m_prcClient.Game.BannerUrl += new FrostbiteClient.BannerUrlHandler(m_prcClient_BannerUrl); this.m_prcClient.Game.ServerDescription += new FrostbiteClient.ServerDescriptionHandler(m_prcClient_ServerDescription); this.m_prcClient.Game.KillCam += new FrostbiteClient.IsEnabledHandler(m_prcClient_KillCam); this.m_prcClient.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(m_prcClient_MiniMap); this.m_prcClient.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(m_prcClient_CrossHair); this.m_prcClient.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(m_prcClient_ThreeDSpotting); this.m_prcClient.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(m_prcClient_MiniMapSpotting); this.m_prcClient.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(m_prcClient_ThirdPersonVehicleCameras); }
private void m_client_FullTextChatModerationListList(PRoConClient sender, TextChatModerationDictionary moderationList) { foreach (TextChatModerationEntry playerEntry in moderationList) { this.Game_TextChatModerationListAddPlayer(null, playerEntry); foreach (ColumnHeader column in this.lsvTextChatModerationList.Columns) { column.Width = -2; } /* * if (this.lsvTextChatModerationList.Items.ContainsKey(playerEntry.SoldierName) == false) { * * ListViewItem lsvNewSoldier = new ListViewItem(playerEntry.SoldierName); * lsvNewSoldier.Group = this.lsvTextChatModerationList.Groups[playerEntry.PlayerModerationLevel.ToString()]; * lsvNewSoldier.Name = playerEntry.SoldierName; * * this.lsvTextChatModerationList.Items.Add(lsvNewSoldier); * * } */ } }
private void m_prcClient_CommandLoginFailure(PRoConClient sender, string strError) { Write("^1" + Client.Language.GetLocalized("uscServerConnection.OnLoginAuthenticationFailure")); }
private void prcClient_GameTypeDiscovered(PRoConClient sender) { sender.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(sender_ProconPrivileges); if (sender.Game is BF3Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsDetailsBF3()); } else { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsDetails()); } if (sender.Game is BF3Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsConfigurationBF3()); } else { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsConfiguration()); } if (sender.Game is BFBC2Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsGameplayBFBC2()); } else if (sender.Game is MoHClient) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsGameplayMoH()); } else if (sender.Game is BF3Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsGameplayBF3()); } if (sender.Game is BFBC2Client || sender.Game is MoHClient) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsTextChatModeration()); this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsLevelVariables()); } this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsTeamKills()); if (sender.Game is BFBC2Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsConfigGeneratorBFBC2()); } else if (sender.Game is MoHClient) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsConfigGeneratorMoH()); } else if (sender.Game is BF3Client) { this.cboSelectedSettingsPanel.Items.Add(new uscServerSettingsConfigGeneratorBF3()); } foreach (uscServerSettings page in this.cboSelectedSettingsPanel.Items) { if (this.pnlSettingsPanels.Controls.Contains(page) == false) { this.pnlSettingsPanels.Controls.Add(page); page.Dock = DockStyle.Fill; } if (this.cboSelectedSettingsPanel.SelectedItem == null) { this.cboSelectedSettingsPanel.SelectedItem = page; } if (this.m_frmMain != null) { page.SettingLoading = this.m_frmMain.picAjaxStyleLoading.Image; page.SettingFail = this.m_frmMain.picAjaxStyleFail.Image; page.SettingSuccess = this.m_frmMain.picAjaxStyleSuccess.Image; } page.SetConnection(sender); if (this.m_clocLanguage != null) { page.SetLocalization(this.m_clocLanguage); } } }
public void sender_ProconPrivileges(PRoConClient sender, CPrivileges spPrivs) { this.pnlSettingsPanels.Enabled = spPrivs.CanAlterServerSettings; }
protected void m_prcClient_CommandConnectAttempt(PRoConClient sender) { Write(Client.Language.GetLocalized("uscServerConnection.OnServerCommandConnectionAttempt", Client.HostNamePort)); }
private void m_prcClient_ConnectionFailure(PRoConClient sender, Exception exception) { Write("^b^1" + Client.Language.GetLocalized("uscServerConnection.OnServerConnectionFailure", exception.Message)); }
private void m_prcClient_ReadRemoteChatConsole(PRoConClient sender, DateTime loggedTime, string text) { Write(loggedTime, text); }
private void m_prcClient_PlayerKilled(PRoConClient sender, Kill kKillerVictimDetails) { if (LogKills == true) { string strKillerName = kKillerVictimDetails.Killer.SoldierName, strVictimName = kKillerVictimDetails.Victim.SoldierName; bool isTk = kKillerVictimDetails.Killer.TeamID == kKillerVictimDetails.Victim.TeamID && kKillerVictimDetails.Killer.SoldierName != kKillerVictimDetails.Victim.SoldierName; if (Client.PlayerList.Contains(kKillerVictimDetails.Killer) == true && Client.PlayerList[kKillerVictimDetails.Killer.SoldierName].ClanTag != null) { strKillerName = String.Format("{0} {1}", Client.PlayerList[kKillerVictimDetails.Killer.SoldierName].ClanTag, kKillerVictimDetails.Killer.SoldierName); } if (Client.PlayerList.Contains(kKillerVictimDetails.Victim) == true && Client.PlayerList[kKillerVictimDetails.Victim.SoldierName].ClanTag != null) { strVictimName = String.Format("{0} {1}", Client.PlayerList[kKillerVictimDetails.Victim.SoldierName].ClanTag, kKillerVictimDetails.Victim.SoldierName); } if (kKillerVictimDetails.Headshot == false) { if (kKillerVictimDetails.DamageType.Length > 0) { if (isTk == true) { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^8{3}^0]", strKillerName, Client.Language.GetLocalized(String.Format("global.Weapons.{0}", kKillerVictimDetails.DamageType.ToLower())), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.TeamKill"))); } else { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2}", strKillerName, Client.Language.GetLocalized(String.Format("global.Weapons.{0}", kKillerVictimDetails.DamageType.ToLower())), strVictimName)); } } else { if (isTk == true) { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^8{3}^0]", strKillerName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.Killed"), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.TeamKill"))); } else { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2}", strKillerName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.Killed"), strVictimName)); } } } else { // show headshot if (kKillerVictimDetails.DamageType.Length > 0) { if (isTk == true) { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^2{3}^0] [^8{4}^0]", strKillerName, Client.Language.GetLocalized(String.Format("global.Weapons.{0}", kKillerVictimDetails.DamageType.ToLower())), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.HeadShot"), Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.TeamKill"))); } else { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^2{3}^0]", strKillerName, Client.Language.GetLocalized(String.Format("global.Weapons.{0}", kKillerVictimDetails.DamageType.ToLower())), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.HeadShot"))); } } else { if (isTk == true) { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^2{3}^0] [^8{4}^0]", strKillerName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.Killed"), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.HeadShot"), Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.TeamKill"))); } else { Write(DateTime.UtcNow.ToUniversalTime().AddHours(Client.Game.UtcOffset).ToLocalTime(), String.Format("{0} [^3{1}^0] {2} [^2{3}^0]", strKillerName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.Killed"), strVictimName, Client.Language.GetLocalized("uscChatPanel.chkDisplayOnKilledEvents.HeadShot"))); } } } } }
private void m_prcClient_CommandLogin(PRoConClient sender) { Write("^b^3" + Client.Language.GetLocalized("uscServerConnection.OnLoginSuccess")); }
private void m_prcClient_CommandLoginAttempt(PRoConClient sender) { Write(Client.Language.GetLocalized("uscServerConnection.OnLoginAttempt")); }
public void SetConnection(PRoConClient prcClient) { if ((this.m_prcClient = prcClient) != null) { } }
private void m_prcClient_ConnectionClosed(PRoConClient sender) { Write(Client.Language.GetLocalized("uscServerConnection.OnServerConnectionClosed", Client.HostNamePort)); }
public uscServerConnection(PRoConApplication paProcon, PRoConClient prcConnection, frmMain frmParent, frmManageAccounts frmAccounts) { //public uscServerConnection(PRoConApplication paProcon, ProConClient prcConnection, frmMain frmParent, frmManageAccounts frmAccounts, uscServerPlayerTreeview uscServerPlayerTree, string strHost, UInt16 iu16Port, string strUsername, string strPassword) { InitializeComponent(); this.m_praApplication = paProcon; this.m_prcConnection = prcConnection; this.m_prcConnection.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcConnection_GameTypeDiscovered); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.DoubleBuffer, true); this.m_cpPrivileges = new CPrivileges(CPrivileges.FullPrivilegesFlags); this.m_frmParent = frmParent; this.m_frmAccounts = frmAccounts; this.tbcClientTabs.ImageList = this.m_frmParent.iglIcons; this.uscLogin.BackgroundHostPort = prcConnection.HostNamePort; if (prcConnection.State != ConnectionState.Connected) { this.uscLogin.Dock = DockStyle.Fill; this.uscLogin.Show(); } else { this.uscLogin.Hide(); } this.uscLists.OnTabChange += new OnTabChangeDelegate(uscLists_OnTabChange); this.tabPlayerList.ImageKey = "mouse.png"; this.tabLists.ImageKey = "table.png"; this.tabChat.ImageKey = "comments.png"; this.tabEvents.ImageKey = "flag_blue.png"; this.tabMapView.ImageKey = "map-pin.png"; this.tabServerSettings.ImageKey = "server_edit.png"; this.tabPlugins.ImageKey = "plugin.png"; this.tabAccounts.ImageKey = "vcard.png"; this.tabConsole.ImageKey = "application_xp_terminal.png"; #region Map Controls this.SettingLoading = this.m_frmParent.picAjaxStyleLoading.Image; this.SettingSuccess = this.m_frmParent.picAjaxStyleSuccess.Image; this.SettingFail = this.m_frmParent.picAjaxStyleFail.Image; this.btnRestartRound.Image = this.m_frmParent.iglIcons.Images["arrow-retweet.png"]; this.btnNextRound.Image = this.m_frmParent.iglIcons.Images["arrow-step-over.png"]; this.AsyncSettingControls.Add("admin.runNextRound", new AsyncStyleSetting(this.picNextRound, null, new Control[] { this.btnNextRound }, true)); this.AsyncSettingControls.Add("admin.restartRound", new AsyncStyleSetting(this.picRestartRound, null, new Control[] { this.btnRestartRound }, true)); #endregion this.uscPlugins.GetPluginDetails += new uscPluginPanel.GetPluginDetailsDelegate(uscPlugins_GetPluginDetails); this.uscPlugins.SetPluginVariable += new uscPluginPanel.SetPluginVariableDelegate(uscPlugins_SetPluginVariable); this.uscPlugins.PluginEnabled += new uscPluginPanel.PluginEnabledDelegate(uscPlugins_PluginEnabled); this.uscPlugins.PluginLoaded += new uscPluginPanel.PluginEventDelegate(uscPlugins_PluginLoaded); this.uscPlugins.PluginVariablesAltered += new uscPluginPanel.PluginEventDelegate(uscPlugins_PluginVariablesAltered); this.uscPlugins.ReloadPlugins += new uscPluginPanel.EventDelegate(uscPlugins_ReloadPlugins); this.uscPlugins.OnTabChange += new OnTabChangeDelegate(uscPlugins_OnTabChange); this.uscAccounts.ManageAccountsRequest += new uscAccountsPanel.ManageAccountsRequestDelegate(uscAccounts_ManageAccountsRequest); this.uscServerConsole.SendCommand += new uscConsolePanel.SendCommandDelegate(uscServerConsole_SendCommand); this.uscServerConsole.SendListCommand += new uscConsolePanel.SendListCommandDelegate(uscServerConsole_SendListCommand); this.uscServerConsole.OnTabChange += new OnTabChangeDelegate(uscServerConsole_OnTabChange); this.m_tabParentLayerControl = new TabPage("Parent Layer Control"); this.m_tabParentLayerControl.Name = "tabLayerControl"; this.m_tabParentLayerControl.Padding = new Padding(8); this.m_tabParentLayerControl.UseVisualStyleBackColor = true; this.m_uscParentLayerControl = new uscParentLayerControl(); this.m_uscParentLayerControl.Dock = DockStyle.Fill; this.m_uscParentLayerControl.BackColor = Color.Transparent; //this.m_uscParentLayerControl.SendCommand += new uscParentLayerControl.SendCommandDelegate(m_uscParentLayerControl_SendCommand); this.m_uscParentLayerControl.Initialize(this.m_frmParent, this); this.m_tabParentLayerControl.Controls.Add(m_uscParentLayerControl); this.m_uscParentLayerControl.OnTabChange += new OnTabChangeDelegate(m_uscParentLayerControl_OnTabChange); this.uscPlugins.Initialize(this.m_frmParent, this); this.uscPlugins.SetConnection(this.m_prcConnection); this.uscLogin.Initalize(this.m_frmParent, this); this.uscLogin.SetConnection(this.m_prcConnection); this.uscLogin.SetLocalization(this.m_prcConnection.Language); this.uscMap.SetConnection(this.m_prcConnection); this.uscEvents.SetConnection(this.m_prcConnection); this.uscLists.SetConnection(this.m_prcConnection); this.uscSettings.SetConnection(this.m_prcConnection); this.uscServerConsole.SetConnection(this.m_prcConnection); this.uscChat.SetConnection(this.m_prcConnection); this.uscPlayers.SetConnection(this.m_prcConnection); this.m_uscParentLayerControl.SetConnection(this.m_prcConnection); this.uscAccounts.SetConnection(this.m_praApplication, this.m_prcConnection); }
protected void m_prcClient_CommandConnectSuccess(PRoConClient sender) { Write("^b^3" + Client.Language.GetLocalized("uscServerConnection.OnServerCommandConnectionSuccess", Client.HostNamePort)); }
void m_prcConnection_GameTypeDiscovered(PRoConClient sender) { this.uscPlayers.Initialize(this.m_frmParent, this); this.uscLists.Initialize(this.m_frmParent, this); this.uscChat.Initialize(this); this.uscEvents.Initalize(this.m_frmParent, this); this.uscMap.Initalize(this.m_frmParent); this.uscSettings.Initialize(this.m_frmParent); this.uscAccounts.Initalize(this.m_frmParent, this); this.uscServerConsole.Initialize(this.m_frmParent, this); //this.m_prcConnection = new ProConClient(paProcon, strHost, iu16Port, strUsername, strPassword); //paProcon.Connections.Add(this.m_prcConnection); this.m_prcConnection.ProconPrivileges += new PRoConClient.ProconPrivilegesHandler(m_prcConnection_ProconPrivileges); this.m_prcConnection.ProconVersion += new PRoConClient.ProconVersionHandler(m_prcConnection_ProconVersion); this.m_prcConnection.PluginConsole.WriteConsole += new PRoCon.Core.Logging.Loggable.WriteConsoleHandler(PluginConsole_WriteConsole); this.m_prcConnection.Game.ServerInfo += new FrostbiteClient.ServerInfoHandler(m_prcConnection_ServerInfo); this.m_prcConnection.Game.LoadingLevel += new FrostbiteClient.LoadingLevelHandler(m_prcConnection_LoadingLevel); this.m_prcConnection.Game.LevelStarted += new FrostbiteClient.EmptyParamterHandler(Game_LevelStarted); this.m_prcConnection.Game.LevelLoaded += new FrostbiteClient.LevelLoadedHandler(m_prcConnection_LevelLoaded); //this.m_prcConnection.Game.PlayerJoin += new FrostbiteClient.PlayerEventHandler(m_prcConnection_PlayerJoin); //this.m_prcConnection.Game.PlayerLeft += new FrostbiteClient.PlayerLeaveHandler(m_prcConnection_PlayerLeft); this.m_prcConnection.Game.Version += new FrostbiteClient.VersionHandler(Game_Version); this.m_prcConnection.Game.RunNextRound += new FrostbiteClient.EmptyParamterHandler(Game_RunNextLevel); this.m_prcConnection.Game.RestartRound += new FrostbiteClient.EmptyParamterHandler(Game_RestartLevel); this.m_prcConnection.Game.ResponseError += new FrostbiteClient.ResponseErrorHandler(Game_ResponseError); this.m_prcConnection.PluginsCompiled += new PRoConClient.EmptyParamterHandler(m_prcConnection_PluginsCompiled); if (this.m_prcConnection.PluginsManager != null) { this.m_prcConnection.PluginsManager.PluginVariableAltered += new PluginManager.PluginVariableAlteredHandler(Plugins_PluginVariableAltered); this.m_prcConnection.PluginsManager.PluginEnabled += new PluginManager.PluginEmptyParameterHandler(Plugins_PluginEnabled); this.m_prcConnection.PluginsManager.PluginDisabled += new PluginManager.PluginEmptyParameterHandler(Plugins_PluginDisabled); } if (this.m_prcConnection.PluginsManager != null) { this.uscPlugins.SetLoadedPlugins(this.m_prcConnection.PluginsManager.Plugins.LoadedClassNames); this.uscPlugins.SetEnabledPlugins(this.m_prcConnection.PluginsManager.Plugins.EnabledClassNames); } if (this.m_prcConnection.PluginConsole != null) { foreach (LogEntry leEntry in this.m_prcConnection.PluginConsole.LogEntries) { this.PluginConsole_WriteConsole(leEntry.Logged, leEntry.Text); } } if (this.m_prcConnection.CurrentServerInfo.ServerName.Length > 0) { this.m_prcConnection_ServerInfo(this.m_prcConnection.Game, this.m_prcConnection.CurrentServerInfo); } this.SetLocalization(this.m_prcConnection.Language); this.SetVersionInfoLabels(this.m_prcConnection.Game); }
private void m_prcClient_GameTypeDiscovered(PRoConClient sender) { this.Client.Game.TeamBalance += new FrostbiteClient.IsEnabledHandler(m_prcClient_TeamBalance); this.Client.Game.KillCam += new FrostbiteClient.IsEnabledHandler(m_prcClient_KillCam); this.Client.Game.MiniMap += new FrostbiteClient.IsEnabledHandler(m_prcClient_MiniMap); this.Client.Game.CrossHair += new FrostbiteClient.IsEnabledHandler(m_prcClient_CrossHair); this.Client.Game.ThreeDSpotting += new FrostbiteClient.IsEnabledHandler(m_prcClient_ThreeDSpotting); this.Client.Game.MiniMapSpotting += new FrostbiteClient.IsEnabledHandler(m_prcClient_MiniMapSpotting); this.Client.Game.ThirdPersonVehicleCameras += new FrostbiteClient.IsEnabledHandler(m_prcClient_ThirdPersonVehicleCameras); this.Client.Game.NameTag += new FrostbiteClient.IsEnabledHandler(Game_NameTag); this.Client.Game.OnlySquadLeaderSpawn += new FrostbiteClient.IsEnabledHandler(Game_OnlySquadLeaderSpawn); this.Client.Game.RegenerateHealth += new FrostbiteClient.IsEnabledHandler(Game_RegenerateHealth); this.Client.Game.Hud += new FrostbiteClient.IsEnabledHandler(Game_Hud); this.Client.Game.UnlockMode += new FrostbiteClient.UnlockModeHandler(Game_UnlockMode); // not used in BF4 //this.Client.Game.GunMasterWeaponsPreset += new FrostbiteClient.GunMasterWeaponsPresetHandler(Game_GunMasterWeaponsPreset); this.Client.Game.VehicleSpawnAllowed += new FrostbiteClient.IsEnabledHandler(Game_VehicleSpawnAllowed); this.Client.Game.VehicleSpawnDelay += new FrostbiteClient.LimitHandler(Game_VehicleSpawnDelay); this.Client.Game.BulletDamage += new FrostbiteClient.LimitHandler(Game_BulletDamage); this.Client.Game.RoundRestartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundRestartPlayerCount); this.Client.Game.RoundStartPlayerCount += new FrostbiteClient.LimitHandler(Game_RoundStartPlayerCount); this.Client.Game.SoldierHealth += new FrostbiteClient.LimitHandler(Game_SoldierHealth); this.Client.Game.PlayerManDownTime += new FrostbiteClient.LimitHandler(Game_PlayerManDownTime); this.Client.Game.PlayerRespawnTime += new FrostbiteClient.LimitHandler(Game_PlayerRespawnTime); this.Client.Game.GameModeCounter += new FrostbiteClient.LimitHandler(Game_GameModeCounter); // not used in BF4 //this.Client.Game.CtfRoundTimeModifier +=new FrostbiteClient.LimitHandler(Game_CtfRoundTimeModifier); this.Client.Game.RoundLockdownCountdown += new FrostbiteClient.LimitHandler(Game_RoundLockdownCountdown); this.Client.Game.RoundWarmupTimeout += new FrostbiteClient.LimitHandler(Game_RoundWarmupTimeout); this.Client.Game.IsHitIndicator += new FrostbiteClient.IsEnabledHandler(Game_IsHitIndicator); this.Client.Game.IsForceReloadWholeMags += new FrostbiteClient.IsEnabledHandler(Game_IsForceReloadWholeMags); }
private void item_PackageInstalling(PRoConClient sender, string uid) { this.AppendRemotePackageInstallStatus(uid, sender.HostNamePort, PackageManager.PACKAGE_STATUSCODE_INSTALLBEGIN, "Beginning installation..."); }