From 3588b97b83b7fa3b6ea1485c6ebb5969d5a3f671 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 17 Apr 2025 18:57:14 +0200 Subject: [PATCH] Added arma 3 --- GAMES.md | 1 + crates/lib/src/games/definitions.rs | 1 + crates/lib/src/games/valve.rs | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/GAMES.md b/GAMES.md index aae8e5d..de88490 100644 --- a/GAMES.md +++ b/GAMES.md @@ -32,6 +32,7 @@ requirements/information. | Rust | RUST | Valve | | | Counter-Strike | COUNTERSTRIKE | Valve GoldSrc | | | Arma 2: Operation Arrowhead | A2OA | Valve | Query port offset: 1. | +| Arma 3 | ARMA3 | Valve | | | Day of Infamy | DOI | Valve | | | Half-Life Deathmatch: Source | HLDS | Valve | | | Risk of Rain 2 | ROR2 | Valve | Query port offset: 1. | diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 1f57d0d..efd44c8 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -48,6 +48,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "alienswarm" => game!("Alien Swarm", 27015, Protocol::Valve(Engine::new(630))), "aoc" => game!("Age of Chivalry", 27015, Protocol::Valve(Engine::new(17510))), "a2oa" => game!("ARMA 2: Operation Arrowhead", 2304, Protocol::Valve(Engine::new(33930))), + "arma3" => game!("ARMA 3", 2303, Protocol::Valve(Engine::new(107_410))), "ase" => game!("ARK: Survival Evolved", 27015, Protocol::Valve(Engine::new(346_110))), "asrd" => game!("Alien Swarm: Reactive Drop", 2304, Protocol::Valve(Engine::new(563_560))), "armareforger" => game!("Arma Reforger", 17777, Protocol::Valve(Engine::new(1_874_880)), GatheringSettings { diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index 5059549..0b38562 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -9,6 +9,12 @@ game_query_mod!( Engine::new(33930), 2304 ); +game_query_mod!( + arma3, + "ARMA 3", + Engine::new(33930), + 2303 +); game_query_mod!(basedefense, "Base Defense", Engine::new(632_730), 27015); game_query_mod!(alienswarm, "Alien Swarm", Engine::new(630), 27015); game_query_mod!(aoc, "Age of Chivalry", Engine::new(17510), 27015);