// Award capture credit to players whose units contribute to a completed LocalMP capture. // Only the mission engine knows when a zone changes owner and which units it counted. // Without this module, the scoreboard and settlement miss completed captures. { "module": "local_mp_captures", "features": ["K-Kill, assist and capture scoring"], "requires": ["local_mp_core", "local_mp_kills", "local_mp_scores", "local_mp_awards"], "sites": { // cta_logic_action contains the zone-update timing diagnostic and the inline airfield completion path. "capture_cta_logic": { "variants": [{ "written_for": "2.61.0.37", "locate": { "method": "string_ref", "string": "update_capture_zones", "target": "function" } }] }, // CaptureZone::setArmy. Read the old owner before the native replicated setter runs. // 2.61.0.37: 0x11b7f70; 2.61.0.60: 0x11bcba0. "capture_set_owner": { "variants": [{ "written_for": "2.61.0.37", "locate": { "method": "signature", "pattern": "41 57 41 56 41 55 41 54 56 57 55 53 48 81 ec 28 01 00 00 0f 29 b4 24 10 01 00 00 0f b6 71 ?? 89 54 24 2c 39 f2 0f 84 ?? ?? ?? ?? 49 89 cd", "captures": { "owner": { "offset": 30, "type": "u8" } } } }] }, // The setArmy call made when the ordinary progress helper reaches the capturing team's limit. // 2.61.0.37: 0x11c2095; 2.61.0.60: 0x11c7605. "capture_complete_call": { "variants": [{ "written_for": "2.61.0.37", "locate": { "method": "signature", "pattern": "e8 ?? ?? ?? ?? 48 8b 0d ?? ?? ?? ?? 48 8b 05 ?? ?? ?? ?? 48 85 c0 74 ?? 80 3d ?? ?? ?? ?? 00 75 ?? 80 3d ?? ?? ?? ?? 00 75 ?? 48 8d 50 70", "captures": { "set_owner": { "offset": 1, "type": "rel32" } } } }] }, // sumCapturePower(army, zone, &count) walks eligible mission units for one team. // 2.61.0.37: 0x11b90a0; 2.61.0.60: 0x11bdd30. "capture_team_power": { "variants": [{ "written_for": "2.61.0.37", "locate": { "method": "signature", "pattern": "41 57 41 56 41 55 41 54 56 57 55 53 48 81 ec b8 00 00 00 0f 29 b4 24 a0 00 00 00 48 89 d7 89 4c 24 3c 4c 89 44 24 40 41 c7 00 00 00 00 00 48 b8 32 00 00 00 ff ff ff ff" } }] }, // sumCapturePower calls this helper after accepting a unit and increments its count. // 2.61.0.37: 0x11b9214 -> 0x11b8f10; 2.61.0.60: 0x11bdea4 -> 0x11bdba0. "capture_unit_power_call": { "variants": [{ "written_for": "2.61.0.37", "locate": { "method": "within", "in": "capture_team_power", "pattern": "ff 00 48 89 f9 48 89 ea e8 ?? ?? ?? ?? f3 0f 58 f0", "captures": { "function": { "offset": 9, "type": "rel32" } } } }] } } }