From a3bc8b79e5c4738c0be8971e53dff0edf2f9f26c Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Thu, 11 Jan 2024 01:48:05 +0200 Subject: [PATCH] feat(games): add zombie panic: source support --- CHANGELOG.md | 1 + GAMES.md | 1 + crates/lib/src/games/definitions.rs | 1 + crates/lib/src/games/valve.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c41da20..2542c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Games: - [ATLAS](https://store.steampowered.com/app/834910/ATLAS/) support. - [America's Army: Proving Grounds](https://store.steampowered.com/app/203290/Americas_Army_Proving_Grounds/) support. - [Base Defense](https://store.steampowered.com/app/632730/Base_Defense/) support. +- [Zombie Panic: Source](https://store.steampowered.com/app/17500/Zombie_Panic_Source/) support. - Added a valve protocol query example. - Made all of Just Cause 2: Multiplayer Response and Player fields public. diff --git a/GAMES.md b/GAMES.md index 5331c8d..a2ab39a 100644 --- a/GAMES.md +++ b/GAMES.md @@ -78,6 +78,7 @@ Beware of the `Notes` column, as it contains information about query port offset | ATLAS | ATLAS | Valve | Query port offset: 51800 | | America's Army: Proving Grounds | AAPG | Valve | Query port: 27020. Does not respond to the rules query. | | Base Defense | BASEDEFENSE | Valve | Query port: 27015. Does not respond to the rules query. | +| Zombie Panic: Source | ZPS | Valve | Query port: 27015. | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 284cb5d..df5f748 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -131,4 +131,5 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "redorchestra" => game!("Red Orchestra", 7759, Protocol::Unreal2), "unrealtournament2003" => game!("Unreal Tournament 2003", 7758, Protocol::Unreal2), "unrealtournament2004" => game!("Unreal Tournament 2004", 7778, Protocol::Unreal2), + "zps" => game!("Zombie Panic: Source", 27015, Protocol::Valve(Engine::new(17_500))), }; diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 18c718c..d70a030 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -148,3 +148,4 @@ game_query_mod!( } ); game_query_mod!(vrising, "V Rising", Engine::new(1_604_030), 27016); +game_query_mod!(zps, "Zombie Panic: Source", Engine::new(17_500), 27015);