Skip to content

Distinguish between the remote view player entity and the player character entity #326

@LevFendi

Description

@LevFendi

Now that a lot is being done in remote view in Space Age, we need to be more careful about making character-related alerts and effects reference the character position and the character inventories rather than those of the player. This matters in Space Age because the player in remote view controls a different entity that has a position and inventory of its own.

The good news is that we can easily access the character from "player.character" and we can easily check whether the player is currently directly controlling the character by reading "player.controller_type".

Here are a few of the places that might or do need to be modified to account for this:

  • Enemy presence alerts and rail alerts should reference the character position and work during any controller type
  • Cursor held item changes should care about whether the character is being controlled for all the checks that involve the character inventory
  • Player bump and stuck alerts and also the aim gun at nearest enemy feature should only work when controlling the character directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcursorTopic. Includes features like cursor skipping, cursor scanningspace agerequired to support the Space Age expansion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions