Credit completed zone captures to the units counted by the mission engine and send the local capture fact through the existing settlement flow. Filter hit markers and shell-change hints using the actual attacker and active view. TypeScript checks and the MSVC build passed. Verified exe, Quirrel, and native patches on 2.61.0.37, 2.61.0.58, 2.61.0.60, and 2.61.0.64. Rebuilt the .58 and .64 copies and verified local service health on .58. In-game verification is pending.
39 lines
1.9 KiB
JSON
39 lines
1.9 KiB
JSON
// Keep outgoing hit markers and shell advice tied to the firing unit on a LocalMP host.
|
|
// The local daScript send path bypasses the recipient filter. The native shell hint has its own dispatch.
|
|
// Without this module, impacts by other units can reach the local attack feedback paths.
|
|
{
|
|
"module": "local_mp_hit_feedback",
|
|
"features": ["K-Player damage notices"],
|
|
"requires": ["local_mp_core", "local_mp_damage_notifications"],
|
|
"sites": {
|
|
// CmdShowHitMark unicast wrapper calls the common daScript network event sender. The inline
|
|
// damage script and the interpreted wrapper use that same sender.
|
|
// 2.61.0.37: 0x1eaa106 -> 0x50a06e0; 2.61.0.60: 0x1eb79b6 -> 0x50b13c0.
|
|
"hit_mark_send": {
|
|
"variants": [{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "string_ref",
|
|
"string": "CmdShowHitMark",
|
|
"lea_at": 0,
|
|
"pattern": "48 8d 15 ?? ?? ?? ?? 66 48 0f 6e ca 66 0f 7f 8c 24 f0 00 00 00 66 0f 7f 84 24 00 01 00 00 41 0f 10 01 4c 8d 4c 24 70 4c 89 4c 24 40 4c 8d 4c 24 40 4c 89 4c 24 50 4c 8d 0d ?? ?? ?? ?? 4c 89 4c 24 48 c6 44 24 68 01 0f 11 44 24 58 48 8b 89 30 03 00 00 4c 8d 4c 24 48 4c 89 4c 24 30 4c 8d 4c 24 58 4c 89 4c 24 28 48 89 54 24 20 31 d2 49 89 c1 e8 ?? ?? ?? ??",
|
|
"captures": { "send": { "offset": 114, "type": "rel32" } }
|
|
}
|
|
}]
|
|
},
|
|
// The shell-change hint's call in Unit::onEvent, just before it queues enemy damage parts.
|
|
// 2.61.0.37: 0x1045fbe -> 0x183bcc0; 2.61.0.60: 0x104a8e4 -> 0x1844c30.
|
|
"hit_shell_hint_call": {
|
|
"variants": [{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "within",
|
|
"in": "unit_on_event",
|
|
"pattern": "e8 ?? ?? ?? ?? 48 8b 0d ?? ?? ?? ?? 4c 8d b4 24 00 01 00 00 4c 89 ea 4d 89 f0 e8 ?? ?? ?? ??",
|
|
"captures": { "notify": { "offset": 1, "type": "rel32" } }
|
|
}
|
|
}]
|
|
}
|
|
}
|
|
}
|