Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HL] Crossbow shoots at wrong angle underwater #3857

Open
Nesciuse opened this issue Oct 26, 2024 · 6 comments
Open

[HL] Crossbow shoots at wrong angle underwater #3857

Nesciuse opened this issue Oct 26, 2024 · 6 comments

Comments

@Nesciuse
Copy link

Nesciuse commented Oct 26, 2024

Haven't seen this mentioned anywhere. When shooting crossbow underwater it fires at wrong angle. Aiming up, down, forward works correctly but aiming at some angle fires the bolt wrongly. See video

https://youtu.be/fzWfx0z0JVQ

@HaajPaaj
Copy link

Someone can correct me if I'm wrong, but I believe this is an intentional game mechanic, not a bug. It's supposed to simulate gravity acting differently on the crossbow bolts underwater. This is further supported by the fact that when the crossbow is first obtained in the game, you are immediately dropped into a body of water, so this effect can be observed right away.

@Nesciuse
Copy link
Author

Nesciuse commented Nov 18, 2024

That's definitely not the case. The bolt is supposed to simply travel slower underwater not travel in different direction then where you aim. Couldn't figure out why it happens looking at the source code. This code

halflife/dlls/crossbow.cpp

Lines 419 to 428 in b1b5cf5

if (m_pPlayer->pev->waterlevel == 3)
{
pBolt->pev->velocity = vecDir * BOLT_WATER_VELOCITY;
pBolt->pev->speed = BOLT_WATER_VELOCITY;
}
else
{
pBolt->pev->velocity = vecDir * BOLT_AIR_VELOCITY;
pBolt->pev->speed = BOLT_AIR_VELOCITY;
}
sets up the velocity. Also this works properly in Half-Life Source

@SamVanheer
Copy link

Whether it was intentional or not is irrelevant, it's been this way for 26 years. Changing gameplay mechanics after that much time is a bad idea.

You can always fix it in a mod.

@HaajPaaj
Copy link

By that same line of logic, can't the broken behavior be restored with mods? I fail to see why fixing this error, if it truly is an error, would be a bad thing. If it goes against the intentions of the designers unintentionally, I would consider that an issue that could do with fixing.

@Nesciuse
Copy link
Author

@SamVanheer
It's not a gameplay mechanic but a simple bug that makes crossbow quite bad and unintuitive. Most people don't even know they are missing the ichtyosaurus most of the time because of this. Calling this gameplay mechanic is quite a reach. Did you even know about this if you claim fixing this after 26 years is a bad idea ? Did you even verify if this bug was present at release ?

@HaajPaaj
Copy link

If it isn't a gameplay mechanic, then I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@SamVanheer @kisak-valve @Nesciuse @HaajPaaj and others