This repository has been archived on 2026-10-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Ananta-ps/pkg/protocol/methods/police_wanted_methods4229938.go
T

25 lines
1.7 KiB
Go
Raw Normal View History

package methods
// 开放世界「通缉 / 出警 / 追捕 / 逮捕」链路的 S2C 契约(捐赠端 miyuki_fix 移植,2026-09-23)。
//
// ⛑️ 每一条都对照过客户端自己的解包表 lua/LuaGen/AutoGen/RPCDeserializeAuto.lua
// (本地副本 补丁和工具/_ref_lua/RPCDeserializeAuto.lua),不是照抄捐赠端猜的字段:
// mid 68709329 = ReadList7Bit(Auto.Reader[520]) + ReadComplex(Auto.Reader[521])
// mid 68332836 = ReadList7Bit(u64)
// mid 68839124 = u64 agentId + u64 targetPid + byte ArrestType
// mid 68841232 = u32 level
// mid 68664037 = u64 vehicleUId
// mid 68277671 = 空体
// mid 68586100 / 68696969 = CSharpOnly(无 lua reader,按捐赠端实机抓包形状)
// Auto.Reader[520] = Id(u64) VehicleId(u32) Position(struct UXVector3)
// Facing(single) EulerAngles(struct UXVector3)
// Auto.Reader[521] = ChaseRange ChaseDirectlyRange ApprehendRange (single×3)
// NavConfigId ChaseDirectlyConfigId (u32×2)
// PatrolSpeed ChaseSpeed ChaseDirectlySpeed (single×3)
// Auto.Reader[520] — 一台出警警车的生成信息。
// Auto.Reader[521] — 警车 AI 的追捕参数(客户端自己的车辆 AI 吃这套)。
// SyncSpawnPoliceVehicles(68709329) — 两参数,故顶层 Inline(无 marker)。
// SyncDestroyPoliceVehicles(68332836) — 撤走警车。
// SyncPoliceDispatchVehicleChase(68586100) — 让警车咬住玩家所在的那台车。CSharpOnly。
// SyncPoliceDispatchVehicleChaseSt(68696969) — 解除咬车。CSharpOnly。
// SyncPoliceBeginArrest(68839124) — 逮捕演出;ArrestType 是 byte,别写成 int。