ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.67k stars 621 forks source link

[HL25] the OAR train HUD sprite is not scaled properly #3510

Open UserPlayer89 opened 10 months ago

UserPlayer89 commented 10 months ago

20231119221237_1

this screenshot was captured by going back to c2a2 through the console but when I was playing HL1 as normal I noticed that the HUD indicator that pops up to show train speed/direction was much smaller compared to all the other HEV sprites and I think that's a rather strange inconsistency that should be addressed even if it's relatively minor. It could probably cause readability issues during On a Rail for people with larger resolutions.

FreeSlave commented 9 months ago

The game uses a sprite depending on the resolution: 640_train.spr, 1280_train.spr or 2560_train.spr. But 1280_train.spr and 2560_train.spr are the same size as 640_train.spr, thus it looks small on high resolutions.

The hud.txt file does reference train_back, train_stop, train_forward1, etc. for all resolutions and the corresponding sprites are provided in the game files. But the code doesn't use them for trains.