Bug Tracker – Bug 1071

Don't set spectator flags on dead player objects

Last modified: 2016-09-19 22:24:01 CDT
Bug 1071 - (ARRAY(0x500c358)) Don't set spectator flags on dead player objects
(ARRAY(0x500c358))
Don't set spectator flags on dead player objects
Status: ASSIGNED
Product: Odamex
Classification: Unclassified
Component: Server & Client
0.7.x
All All
: P1 trivial
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-04-18 20:29:05 CDT by Kyle
Modified: 2016-09-19 22:24 CDT (History)
1 user (show)

See Also:


Attachments
don't set spectator flags on a dead player object (3.92 KB, patch)
2014-04-18 20:30:40 CDT, Kyle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle 2014-04-18 20:29:05 CDT
Currently in Odamex, when a player spectates, their associated mobj is made invisible.

There is no need to remove a corpse when a player spectates, and in the survival mode that I'm making, where players are forced to spectate if they run out of lives, this behavior causes the player to just disappear when they die on their last life.

The following patch works around this by adding a "deadspectator" flag that is set on the player when they spectate while dead. This alters the behavior of the respawning code, to make it silently respawn the spectator in the same position as their corpse, leaving it behind.
Comment 1 Kyle 2014-04-18 20:30:40 CDT
Created ﷒0﷓
don't set spectator flags on a dead player object
Comment 2 Mike Lightner 2014-05-14 20:58:33 CDT
r4867 applies this patch.
Comment 3 HeX_Vulture 2016-09-19 22:24:01 CDT
Is this implemented as intended?