You can send this to the plugin author:
In `RealPVE`, the setting in `data/RealPVE/RaidableBasesConfig.json`:
```json
"Is RaidableBases enabled?": false
```
does not fully disable the `RaidableBases` integration.
Currently, if the `RaidableBases` plugin is loaded, `ToggleRaidableBases(true)` still subscribes to hooks like `OnPlayerEnteredRaidableBase`, `OnRaidableBaseStarted`, etc., creates `_rbList`, and RealPVE still shows the purchase UI when a player enters a raid base.
Expected behavior: when `_rbsConfig.IsEnabled == false`, RealPVE should not show the raid base purchase UI, should not assign ownership through its own UI, and should not track raid bases in `_rbList`.
Suggested fix:
```csharp
private void ToggleRaidableBases(bool isLoaded)
{
if (!isLoaded || !_rbsConfig.IsEnabled)
{
Unsubscribe(nameof(OnPlayerEnteredRaidableBase));
Unsubscribe(nameof(OnPlayerExitedRaidableBase));
Unsubscribe(nameof(OnRaidableLootDestroyed));
Unsubscribe(nameof(OnRaidableDespawnUpdate));
Unsubscribe(nameof(OnRaidableBasePurchased));
Unsubscribe(nameof(OnRaidableBaseStarted));
Unsubscribe(nameof(OnRaidableBaseEnded));
foreach (var rbData in _rbList.Values.ToList())
rbData.Destroy();
return;
}
// existing enabled logic...
}
```
Also, it would be safer to guard the hooks directly:
```csharp
void OnPlayerEnteredRaidableBase(BasePlayer player, Vector3 pos)
{
if (!_rbsConfig.IsEnabled)
return;
// existing logic...
}
void OnRaidableBaseStarted(...)
{
if (!_rbsConfig.IsEnabled)
return;
// existing logic...
}
```
for me, when the supermarket event from crystal takes place on the server and there is pvemod, sometimes the damage is returned to the player after restarting the plugin, everything starts working normally.
and what is the problem in the OnEntityTakeDamage method line 6957 and line 6974 add the condition && !IsOnTournament(attacker.userID). I added it at my place and everything works
in general, I have finalized the plugin. Now turrets can shoot at the player if they do not have a master. that is, any turrets placed by a non-player will attack other players. If anything, I made changes to the CanBeTargeted methods
Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.