Skip to content

Conversation

@HunterZ
Copy link
Owner

@HunterZ HunterZ commented Jan 23, 2026

No description provided.

- PlayerBasePvpZones.cs:
  - add data file support, including save throttling
  - add support for detecting which building/shelter/tugboat player is interacting with
  - clean up timer management a bit
  - suppress zone creation in CreateXYZData() if zone is toggled off
  - add preliminary `pbpz` command support
  - clean up data file on load
  - move tugboat end-of-life logic to a standalone method, with zone/sphere disconnect control
  - add logic for toggling zones on or off
  - add config settings for toggle features
  - add timed lockouts for zone toggle actions
- PlayerBasePvpZones.cs:
  - refactor shelter toggle search to use build privilege instead of raycast hits
  - add support for help and toggle subcommands
  - add support for toggleZones permission
  - manage NetworkableId's as ulong in toggle data file
  - add IsValid() checks to IsPlayerOwned() overloads
  - add GetToggleStates() encapsulation method
  - add feedback messages for commands
  - add support for damage-based zone toggle lockouts
  - check for player ownership of TC associated with destroyed building block
  - default ToggleData.ZoneEnabled to true
  - move common ToggleData cleanup logic to a CleanupToggleData() method
  - refactor CleanupToggleDict() to only remove defunct netIDs, as other cleanup will occur on startup zone creation checks
  - rename GetLockoutState() to GetToggleStates() and refactor to encapsulate lookup/creation/cleanup/save of zone toggle data
  - rename RecordZoneToggle() to SetZoneToggleData() and refactor to better handle toggle state changes in addition to setting lockouts
- PlayerBasePvpZones.cs:
  - bump version number
  - tweak toggle help message to mention auth
  - rename SetZoneToggleData() to SetToggleStates() for symmetry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant