diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a1a397..c460440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Games: - [Mindustry](https://mindustrygame.github.io/) support. - Eco support (by @CosminPerRam). - [Call Of Duty: Black Ops 3](https://store.steampowered.com/agecheck/app/311210/) support. +- [Counter-Strike 2](https://store.steampowered.com/app/730/CounterStrike_2/) support. Crate: - Changed the serde feature to only enable serde derive for some types: serde and serde_json is now a dependecy by default. diff --git a/GAMES.md b/GAMES.md index 2f74691..c967cf3 100644 --- a/GAMES.md +++ b/GAMES.md @@ -80,6 +80,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Base Defense | BASEDEFENSE | Valve | Query port: 27015. Does not respond to the rules query. | | Zombie Panic: Source | ZPS | Valve | Query port: 27015. | | Call Of Duty: Black Ops 3 | CODBO3 | Valve | Query port: 27017. | +| Counter-Strike 2 | CS2 | Valve | | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 261e6d2..eb9a654 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -71,6 +71,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { check_app_id: true, }.into_extra()), "counterstrike" => game!("Counter-Strike", 27015, Protocol::Valve(Engine::new_gold_src(false))), + "cs2" => game!("Counter-Strike 2", 27015, Protocol::Valve(Engine::new(730))), "cscz" => game!("Counter Strike: Condition Zero", 27015, Protocol::Valve(Engine::new_gold_src(false))), "csgo" => game!("Counter-Strike: Global Offensive", 27015, Protocol::Valve(Engine::new(730))), "css" => game!("Counter-Strike: Source", 27015, Protocol::Valve(Engine::new(240))), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 2560376..0666b09 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -70,6 +70,7 @@ game_query_mod!( Engine::new_gold_src(false), 27015 ); +game_query_mod!(cs2, "Counter-Strike 2", Engine::new(730), 27015); game_query_mod!(creativerse, "Creativerse", Engine::new(280_790), 26901); game_query_mod!( cscz,