Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
This package has been marked as deprecated, and it's suggested another
alternative is used.
You are viewing a potentially older version of this package.
View all versions.
LeaveMyBaseAlone
Sets structure HP, and npc base aggro to avoid griefing!
| Date uploaded | 5 years ago |
| Version | 1.0.7 |
| Download link | Hexxen-LeaveMyBaseAlone-1.0.7.zip |
| Downloads | 262 |
| Dependency string | Hexxen-LeaveMyBaseAlone-1.0.7 |
This mod requires the following mods to function
denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.
Preferred version: 5.4.602README
LeaveMyBaseAlone Info
Put the mod into your client to effect structures v1.0.7 Fixed issues with update, and some functionailty- This mod is a fix to Griefing on public servers. It sets structure HP to a specified value from config. Saving the server will then persistantly save the structures hp's for anyone one else who joins, even on server stop/start.
code
//get actual structure object from server and set health
hview.GetZDO().Set("health", m_Structure.Value);
//hardcode monsters targetting to remove player bases.
m_monsterTargetRayMask = LayerMask.GetMask(new string[]
{
"Default",
"static_solid",
"Default_small",
"vehicle"
});