halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL:OF] Grapple Problems

Open x414e opened this issue 13 years ago • 11 comments

The grapple makes a ladder climbing sound when you use it. Also the alternate fire does not seem to work, I press it and instead of hanging I just drop down. This means I cannot get down from anywhere without taking fall damage.

x414e avatar Apr 15 '13 14:04 x414e

This happens because the player physics code plays ladders sounds if the player's movetype is MOVETYPE_FLY. The grapple sets the player's movetype to that when it latches onto something that it pulls players towards.

The second issue is probably just the difference between OP4's grapple and Sven Co-op's: the latter has the behavior that you describe, the former does not.

EDIT: I checked the WON Op4 binary. The difference is minor but important. WON:

fLadder = pmove->movetype == MOVETYPE_FLY && !( pmove->flags & FL_IMMUNE_LAVA);

Current SteamPipe:

fLadder = pmove->movetype == MOVETYPE_FLY;

The grapple sets FL_IMMUNE_LAVA to indicate that the player is not using a ladder here. It was removed, hence the ladder sounds.

This is HLE's code with the fix applied (as well as another unrelated fix): https://github.com/SamVanheer/HLEnhanced/commit/4770ecadb9f0ffb8ebf33cd7733851ec7e01151c

SamVanheer avatar Jul 07 '17 21:07 SamVanheer

@mikela-valve seems like an easy fix, and it restores original behavior.

SamVanheer avatar Apr 23 '19 18:04 SamVanheer

Fixed, will be included in the next update. I grep'ed the code base for FL_IMMUNE_LAVA and it looks like CS:CZ's zipline also uses it for the same purpose as the barnacle grapple so this should fix any problems with that as well.

mikela-valve avatar May 16 '19 00:05 mikela-valve

Fixed in beta 'Exe build: 11:12:36 May 21 2019 (8244)',

mikela-valve avatar May 21 '19 19:05 mikela-valve

Retested, it's fixed.

agrastiOs avatar May 21 '19 20:05 agrastiOs

@mikela-valve What about this? 🤔 This issue happens when you try grapple wall very close.

Here's a footage regarding bug:

https://streamable.com/yu8hs

BlackShadow avatar May 22 '19 16:05 BlackShadow

That's a preexisting bug and should be reported separately.

SamVanheer avatar May 22 '19 17:05 SamVanheer

Yeah, this bug is there since first release of the game. But didn't wanted to spam Issues tab so just posted here.

BlackShadow avatar May 22 '19 17:05 BlackShadow

Closing as fixed. @BlackShadow306 Thanks for trying to keep down the issue count but it's better to open that as another bug.

mikela-valve avatar Jun 02 '19 08:06 mikela-valve

Alternate fire still does not work. I did not even know there was one!

djearthquake avatar Jul 18 '19 01:07 djearthquake

Like i said before:

The second issue is probably just the difference between OP4's grapple and Sven Co-op's: the latter has the behavior that you describe, the former does not.

There is code for a secondary attack but all it does is detach the grapple, which should happen automatically when you release primary attack.

SamVanheer avatar Jul 18 '19 09:07 SamVanheer