OpenAG icon indicating copy to clipboard operation
OpenAG copied to clipboard

Half-Life 25th Anniversary Update

Open sabianroberts opened this issue 1 year ago • 8 comments

This PR merges some changes from the Half-Life 25th Anniversary Update. Changes include [but not limited to]:

  • Support for larger scale HUD on HD displays
  • Changes to view origin/angles
  • "Ghost shots" bug fix

Furthermore, a batch file was added so Windows developers and create the build files with ease.

sabianroberts avatar Oct 25 '24 19:10 sabianroberts

Do we want to keep a pre-25th anniversary update build? In that case the changes should be under a new define.

Since there's no serverside changes here, I don't think a pre-25th anniversary build is needed. The most notable change here is the larger HUD which is only going to benefit players especially those on 1440p+ screens. Furthermore 99% of mods are fully compatible with the HL25 engine.

Unless AG's full mod package has its own "hud.txt" the one from the valve folder is used and the HUD scaling works correctly.

sabianroberts avatar Oct 25 '24 20:10 sabianroberts

Unless AG's full mod package has its own "hud.txt" the one from the valve folder is used and the HUD scaling works correctly.

It does and that file needs to be updated

image

tmp64 avatar Oct 26 '24 01:10 tmp64

Thanks for noting! My ag/sprites/hud.txt got deleted somehow 🤔

sabianroberts avatar Oct 26 '24 01:10 sabianroberts

Do we want to keep a pre-25th anniversary update build? In that case the changes should be under a new define.

well we can create a branch for it?

larziwau avatar Nov 25 '24 10:11 larziwau

I think if two builds are needed then a define would be better to avoid having to update both versions of the code every time.

YaLTeR avatar Nov 25 '24 10:11 YaLTeR

Somewhere in the code you could somehow get the EXE version of the game (CVAR_GET_FLOAT("version")?)and use strcmp to make an if statement where if version >= HL25, define HL25 and use #ifdef HL25 where applicable.

sabianroberts avatar Dec 02 '24 00:12 sabianroberts

just found AG, does it still not support the HL25 client?

Glitch31415 avatar Dec 12 '24 21:12 Glitch31415

@Glitch31415 the game works fully on the HL25 client but its codebase hasn't been updated to match Half-Life 1's new features such as the larger scale HUD.

sabianroberts avatar Dec 12 '24 21:12 sabianroberts

Unless AG's full mod package has its own "hud.txt" the one from the valve folder is used and the HUD scaling works correctly.

It does and that file needs to be updated

We've created HD+ CTF sprites for AGCTF and an update hud.txt - it is attached to this comment.

20FB07~1

sprites.zip

sabianroberts avatar Jul 12 '25 16:07 sabianroberts