public void AddCapturePoint(OPvPCapturePoint cp) { if (m_capturePoints.ContainsKey(cp.m_capturePointSpawnId)) { Log.outError(LogFilter.Outdoorpvp, "OutdoorPvP.AddCapturePoint: CapturePoint {0} already exists!", cp.m_capturePointSpawnId); } m_capturePoints[cp.m_capturePointSpawnId] = cp; }
public override void OnGameObjectRemove(GameObject go) { if (go.GetGoType() != GameObjectTypes.ControlZone) { return; } OPvPCapturePoint cp = GetCapturePoint(go.GetSpawnId()); if (cp != null) { cp.m_capturePoint = null; } }