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.
108 lines
3.5 KiB
JSON
108 lines
3.5 KiB
JSON
// Combat events on the LocalMP host (native/wto-net/src/local_mp_events.c): assists,
|
|
// effective and ineffective hits, and severe damage, reported as award facts.
|
|
// Without it: assists and damage events score nothing in LocalMP battles.
|
|
{
|
|
"module": "local_mp_events",
|
|
"features": [
|
|
"K-Kill, assist and capture scoring",
|
|
"L-Battle awards"
|
|
],
|
|
"requires": [
|
|
"local_mp_core",
|
|
"local_mp_awards",
|
|
"local_mp_kills"
|
|
],
|
|
"sites": {
|
|
// dispatchAssist.
|
|
// 2.61.0.37: 0x35beb0
|
|
"dispatch_assist": {
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "signature",
|
|
"pattern": "41 57 41 56 41 55 41 54 56 57 55 53 48 83 ec 78 0f 29 7c 24 60 0f 29 74 24 50 0f 28 f3 4c 89 c6 48 89 d7 48 89 cb 48 8b 05 ?? ?? ?? ?? 48 85 c9 7e ?? 48 85 c0"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// Flushes effective / ineffective hits. The site key also identifies this capture in version records.
|
|
// 2.61.0.37: 0xff85ea
|
|
"caller_hit_crit": {
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "signature",
|
|
"pattern": "8b 0d ?? ?? ?? ?? f7 c1 00 00 08 00 75 ?? f7 c1 00 00 00 01 75 ?? 0f b6 8f 10 10 00 00 39 4e 1c 74 ?? 41 20 c0 0f b6 86 49 01 00 00 0f 57 db f3 0f 5f 9e 30 01 00 00 48 8b 4e 58 85 ed f3 0f 5d 1d ?? ?? ?? ?? 88 44 24 30 0f 9f 44 24 28 44 88 44 24 20 48 89 fa 49 89 f0 e8 ?? ?? ?? ??",
|
|
"captures": {
|
|
"call": {
|
|
"offset": 90,
|
|
"type": "rel32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// A caller of the severe damage dispatch.
|
|
// 2.61.0.37: 0xe55afa
|
|
"caller_severe_damage": {
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "signature",
|
|
"pattern": "66 83 be b0 06 00 00 ff 0f 85 ?? ?? ?? ?? 48 89 f1 e8 ?? ?? ?? ?? 84 c0 0f 84 ?? ?? ?? ?? 48 8d 9e b0 06 00 00 48 8b 4f 58 48 89 f2 49 89 f8 e8 ?? ?? ?? ?? 48 89 f1 48 89 fa e8 ?? ?? ?? ?? 0f b6 ae d4 06 00 00",
|
|
"captures": {
|
|
"call": {
|
|
"offset": 48,
|
|
"type": "rel32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// A caller of the naval damage dispatch.
|
|
// 2.61.0.37: 0xd048ea
|
|
"caller_naval_damage": {
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "signature",
|
|
"pattern": "66 83 b9 90 0f 00 00 01 77 ?? 66 83 ff ff 74 ?? 0f b7 c7 0f 57 d2 f3 0f 2a d0 f3 0f 59 15 ?? ?? ?? ?? eb ?? f3 0f 10 15 ?? ?? ?? ?? 48 8b 94 24 c0 03 00 00 0f b6 7c 24 5b 41 89 f9 e8 ?? ?? ?? ?? 0f 57 c0 0f 2e f0 0f 96 c0 40 08 f8 a8 01 75 ?? 48 8b 96 e8 0a 00 00 4c 8b 84 24 c0 03 00 00 49 8b 48 58 0f 28 de e8 ?? ?? ?? ??",
|
|
"captures": {
|
|
"call": {
|
|
"offset": 104,
|
|
"type": "rel32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// Offender assist already reported.
|
|
// 2.61.0.37: 0x465896 (cmp byte ptr [r14 + 0x148], 0; jne 0x465620)
|
|
"offender_assist": {
|
|
"variants": [
|
|
{
|
|
"written_for": "2.61.0.37",
|
|
"locate": {
|
|
"method": "within",
|
|
"in": "iground_award_assists",
|
|
"pattern": "41 80 be ?? ?? ?? ?? 00 0f 85 ?? ?? ?? ??",
|
|
"captures": {
|
|
"assist_sent": {
|
|
"offset": 3,
|
|
"type": "u32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|