AR-Development / PersistentEmpires-OpenSourced

GNU Affero General Public License v3.0
1 stars 15 forks source link

Inventory issues #45

Closed Snah79 closed 2 months ago

Snah79 commented 2 months ago

Revert disabling movement when inventory is opened Modified PlayerComponent

  1. OnBehaviorInitialize Only used inventories are deserielized from db (optimization) Check even entiies with scripts which deriver from PE_InventoryEntity. (like myownscript:PE_InventoryEntity will include myownscript also) Fixed error that no entitie was tied if chest wasnt from db (drag drop problem still working on distances grater then 10 for chests only)

  2. OnMissionTick Check distance from entity on server, if grater then 4f then run close inventory on server and force client to close opened inventory view.

  3. Reworked code so server only code now is withing #if SERVER tag and client only code is withing #if CLIENT

  4. Added regions for base class overrides, communication handlers and other functions.

Heavybob commented 2 months ago

I've tested the changes to inventory that you've pushed. They work fine and work as intended. I've not tested the wounding changes yet as it will require a second person to test them with.

mentalrob commented 1 month ago

Please rebase your fork and reopen the PR