Skip to content

Commit

Permalink
- tweaked Hexen's weapon pieces so they do not floatbob into the floo…
Browse files Browse the repository at this point in the history
…r with the hardware renderer.
  • Loading branch information
coelckers committed May 19, 2021
1 parent 28dab38 commit f0d8bd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/hwrenderer/scene/hw_sprites.cpp
Expand Up @@ -583,7 +583,7 @@ void HWSprite::PerformSpriteClipAdjustment(AActor *thing, const DVector2 &thingp
const float NO_VAL = 100000000.0f;
bool clipthing = (thing->player || thing->flags3&MF3_ISMONSTER || thing->IsKindOf(NAME_Inventory)) && (thing->flags&MF_ICECORPSE || !(thing->flags&MF_CORPSE));
bool smarterclip = !clipthing && gl_spriteclip == 3;
if (clipthing || gl_spriteclip > 1)
if ((clipthing || gl_spriteclip > 1) && !(thing->flags2 & MF2_FLOATBOB))
{

float btm = NO_VAL;
Expand Down
9 changes: 9 additions & 0 deletions wadsrc_extra/static/filter/hexen/sprofs.txt
Expand Up @@ -375,3 +375,12 @@ THRWE0, 6, 16, iwad
THRWF0, 8, 19, iwad
THRWG0, 8, 19, iwad
THRWH0, 11, 19, iwad
WFR1A0, 6, 50, iwad
WFR2A0, 10, 28, iwad
WFR3A0, 6, 28, iwad
WMS1A0, 6, 28, iwad
WMS2A0, 6, 35, iwad
WMS3A0, 6, 32, iwad
WCH1A0, 15, 29, iwad
WCH2A0, 9, 30, iwad
WCH3A0, 11, 30, iwad

0 comments on commit f0d8bd0

Please sign in to comment.