OpenPerpetuum / PerpetuumServer

The Open Perpetuum Project's fork of the Perpetuum Standalone Server
https://openperpetuum.com
Other
44 stars 21 forks source link

Stronghold timelimit and anti-camp mechanics #303

Closed MikeJeffers closed 3 years ago

MikeJeffers commented 3 years ago

Closes: https://github.com/OpenPerpetuum/PerpetuumServer/issues/279 Requires: https://github.com/OpenPerpetuum/OPDB/pull/277

Introduces a timelimit for any configured stronghold to automatically despawn a player back to their homebase if they remain on the zone.

Update: Figured out how to augment the player entities DynamicProperties. Adding a timestamp of the expiration time will persist the despawn timer between logins to deal with disconnects and timer resetting.

MikeJeffers commented 3 years ago

Woops this should be a draft PR! I'll edit the title to reflect