
You are viewing a potentially older version of this package. View Latest Version
LeaveMyBaseAlone
Sets structure HP, and npc base aggro to avoid griefing!LeaveMyBaseAlone Info
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"
});

