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

FAQ: Add mention about ghost shots in clients #45

Open
rtxa opened this issue Sep 1, 2024 · 0 comments
Open

FAQ: Add mention about ghost shots in clients #45

rtxa opened this issue Sep 1, 2024 · 0 comments

Comments

@rtxa
Copy link
Owner

rtxa commented Sep 1, 2024

According to latest HLSDK 25th anniversary, there was a client issue with ghost shots

		// JoshA: Changed from PM_STUDIO_BOX to PM_NORMAL in prediction code as otherwise if you hit an NPC or player's
		// bounding box but not one of their hitboxes, the shot won't hit on the server but it will
		// play a hit sound on the client and not make a decal (as if it hit the NPC/player).
		// We should mirror the way the server does the test here as close as possible.
		//
		// I initially thought I was just fixing some stupid Half-Life bug but no,
		// this is *the* root cause of all the ghost shot bad prediction bugs in Half-Life Deathmatch!
		//
		// Also... CStrike was always using PM_NORMAL for all of these so it didn't have the problem.
		gEngfuncs.pEventAPI->EV_PlayerTrace( vecSrc, vecEnd, PM_NORMAL, -1, &tr );

https://github.com/ValveSoftware/halflife/blob/master/cl_dll/ev_hldm.cpp#L424

@rtxa rtxa added this to AG Mod X Sep 1, 2024
@rtxa rtxa converted this from a draft issue Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog/Ideas 🤔
Development

No branches or pull requests

1 participant