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

Spray in singleplayer draws a wrong sprite after save-restore #239

Open
FreeSlave opened this issue Jan 15, 2022 · 2 comments
Open

Spray in singleplayer draws a wrong sprite after save-restore #239

FreeSlave opened this issue Jan 15, 2022 · 2 comments

Comments

@FreeSlave
Copy link
Member

FreeSlave commented Jan 15, 2022

The bahavior is observed in original Half-Life too. To reproduce:

  1. Delete tempdecals.wad to ensure that you don't have a spray from multiplayer settings.
  2. Start the game and load some map via console.
  3. Use spray on the wall. The lambda from decals.wad will appear.
  4. Quick save and reload
  5. Use spray again. The yellow blood decal will be drawn instead.

The problem is that decal is set to -1 on spawn https://github.com/FWGS/hlsdk-xash3d/blob/master/dlls/client.cpp#L198 https://github.com/FWGS/hlsdk-xash3d/blob/master/dlls/player.cpp#L4418 but after save-restore m_nCustomSprayFrames is set to 0.

Not sure how we should fix it if fix at all. Creating the issue just to let people know about the problem.

@lewa-j
Copy link
Member

lewa-j commented Jan 15, 2022

I assume this is consistent with steam half-life?

@FreeSlave
Copy link
Member Author

Yep, by original Half-Life I meant the current steam version.

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

No branches or pull requests

2 participants