ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.72k stars 624 forks source link

player death animations affected by fps #352

Closed crustypig closed 2 months ago

crustypig commented 11 years ago

When using fps values above 100, the player death animation can sometimes leave behind a ghost of the player model which floats in the air. At 400fps for example, every time I am killed my corpse is floating in the air. Note: It obviously doesn't occur when a player is gibbed, but when shot with a shotgun or 9mmAR for example.

It seems the death animation isn't executed properly at high values of fps. In this picture you can see the effect.

ghost_bug

serfreeman1337 commented 11 years ago

do not use fps value more than 100 fps

crustypig commented 11 years ago

I use 100fps, but other players don't, and its a controversial subject within our community to limit fps - some servers are limited to 125fps but this bug still occurs at this value. If this bug cannot be fixed, it would be nice if we had a cvar which disabled corpses then this wouldn't be such an issue

shawns-valve commented 2 months ago

This was resolved for Half-Life Deathmatch in the 25th Anniversary update (November / December 2023 Steam build). The issue may still be present in other mods.

The relevant changes are in dll\player.cpp, changing m_iRespawnFrames to m_flRespawnTimer.