new-frontiers-14 / frontier-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
GNU Affero General Public License v3.0
87 stars 521 forks source link

Add CanMove field to POI prototype #1892

Closed whatston3 closed 2 months ago

whatston3 commented 2 months ago

About the PR

Adds a "CanMove" field to POI definitions - defaults to false. When POIs are initialized, their linear and angular damping is set according to its value, either to 999999 or 0.05 (currently hardcoded).

Why / Balance

Adding a POI and forgetting to set the damping strengths is annoying. Also, makes a clearer distinction between shuttle-like and station-like POIs should we want to support them.

How to test

  1. Open Resources\Prototypes_NF\PointsOfInterest\nfsd.yml, set CanMove to true.
  2. Spawn in-game, buy a Harbormaster.
  3. Bully the NFSD, their station should move.
  4. Go bully another POI, shouldn't budge.

Media

Breaking changes

Changelog

Feature useful for development, shouldn't have visible changes in-game, no changelog.