Skip to content

Make the player actor more flexible #85

@axiand

Description

@axiand

Please confirm the following

  • I have searched to ensure that my feature request is not a duplicate
  • My feature request will benefit the general community (i.e. it is not better off as a standalone mod)

Describe your feature

Add a new Player? MainPlayer property to the world scene. This would point to a single player actor instance. Then replace all Get<Player>() calls where relevant.

Give player actors the following properties:
bool Active (if false, silences all updates)
bool ReceiveInput (controls input code)
bool DoInteractions (controls interactions like springs, pickups, breakable blocks)
bool DoPhysics (controls player movement physics)

Why should we implement this?

These changes would get rid of the one-player assumption of the game allowing for more predictable behaviour with multiple players. Modders would be able to get a lot more potential out of using the player actor for things like multiplayer mods, fancy player clone gameplay, etc.

Optional

  • I will open (or have already opened) a pull request that implements this feature.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions