Skip to content

logical error - death and paycheck #720

@ghost

Description

Expected behaviour

when dead not getting a paycheck but instead the text "you missed a paycheck"

Actual behaviour

still getting a paycheck as by how "death" is implemented and checked

Steps to reproduce the behaviour

should be obvious - but k

  1. die / get killed
  2. wait up to (paycheck time here) before respawn
  3. see you still get your paycheck even when dead

RPT and/or extDB3 logs (if applicable)

not applicable

Mission version: 6.0.0

Launcher version: 1.5.146373

Game version: 1.98.146373

Branch: main / beta branch not specified

Ok - so a bit more although I guess all active devs know the issue:
The way "death" is implement is to copy the player as a corpse and respawn at the spawn island. The issue: "isAlive player" returns true as the player isn't dead but only a fixed camera is set on the corpse.
Possible solution: Set a flag on the player (isn't such already done?) and check it instead of isAlive to check if the player currently is considered "dead" or "alive".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions