ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.65k stars 616 forks source link

[CS1.6] Add Rich Presence #3708

Open Splatt581 opened 9 months ago

Splatt581 commented 9 months ago

Currently the Rich Presence feature only works for Half-Life, but Counter-Strike 1.6 fans would be very grateful if you introduced such a feature for our favorite game!

Splatt581 commented 8 months ago

Hmm, I noticed that the engine actually sends Rich Presence for CS 1.6 to the Steam:

appid 10:

"richPresence":{"steam_display":"#HL_RP_MainMenu","status":"#HL_Status_MainMenu","steam_player_group_size":"0","game:current_player_count":"0","game:max_player_count":"0","game:server_name":"Half-Life","game:pause_state":"#HL_RP_Unpaused"},"localizedString":null}}}}

But, unlike HL1, CS 1.6 does not have localization (the localizedString key is always null):

appid 70:

"richPresence":{"steam_display":"#HL_RP_MainMenu","status":"#HL_Status_MainMenu","steam_player_group_size":"0","game:current_player_count":"0","game:max_player_count":"0","game:server_name":"Half-Life","game:pause_state":"#HL_RP_Unpaused"},"localizedString":"Main Menu"}}}}

Valve, please add Rich Presence localization for CS 1.6 too!