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/racing_ai_vehicle_methods4229938.go

37 lines
1.9 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package methods
// ============================================================================
// Racing AI opponent wire contracts (R190, ported from the Lyco fork's
// AetherEngineContracts.cs). All five carry the 4229938 suffix and live in
// Methods.Game next to ClientVehicleInitData4229938 (VehicleHackingMethods4229938.cs),
// which is REUSED here as the AddData payload — same 17-field layout the
// 载具骇入 (T1-16) work already proved on this line, with the safer defaults
// (LaneHandle = -1 keeps the explicit world transform, ControlType = 2
// registers with Aether without taking over driving, RandomFraction = 0.5).
//
// Field order IS the wire format (UxSerializer emits declaration order) —
// do not reorder. Each wrapper is Inline: the mid's UXRPCMethodArgs has a
// flat single-argument shape, so a 0xFF root marker would be misread.
// ============================================================================
//
// SyncAetherAIVehicleAddData (68916691):创建单台 Aether 车辆实体。
// 客户端 AetherCity.Manager.AetherVehicleManager.AddVehicleDataEntity 处理;
// 这是让 AI 对手车真正出现的实体注册包(BaseVehicle 之外的第二半)。
//
//
// UX.Game.ClientVehicleNpcInitData(4 字段)—— 给车辆绑定 NPC 司机。
// 字段/类型取自 IL2CPP 元数据(u64 / u32 / u64 / byte)。
// 客户端 AetherAI.Systems.City:AddAetherAIVehicleNpc 处理。
//
//
// SyncAetherAIVehicleNpcAdd (68685163):把 NPC 司机加到车上。
//
//
// SyncVehicleForceGo (68137373):把车辆的 AI 打开(通用入口)。
// 打开后由客户端自己的 VehicleAINext 沿 ZoneGraph 车道行驶,服务端不再推坐标。
//
//
// SyncAetherAIVehicleForceGo (68832908):ForceGo 的 Aether 专用孪生入口(CSharpOnly)。
// 通用入口未必被 Aether 车辆管理器认,两条都发(Lyco 实测结论)。
//