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/weapon_action_methods4229938.go
T

20 lines
1.1 KiB
Go

package methods
//
// SyncSpiritRemoveWeaponAction (68663624) — retail's "take exactly this one weapon off the
// character", addressed by weapon instance id. Field order read off
// Assembly-CSharp-ULTIMATE/ux_rpc/ux_game_all.dump.cs:32253.
// This is NOT the same thing as SyncDestructibleObjectRemove. That one deletes a world entity, and
// because an absorbed weapon object is still attached to its Destructible, removing it makes the
// client throw the weapon it just picked up straight back onto the ground. This one only
// disarms the character, and leaves the world alone.
//
//
// SyncSpiritAddWeaponAction (68055102) — retail's "put this weapon into slot N". Field order read
// off Assembly-CSharp-ULTIMATE/ux_rpc/ux_game_all.dump.cs:32233.
// The point of using this instead of SyncSpiritWeaponDetail is that it is incremental: it adds one
// weapon to one slot and leaves the rest of the weapon manager alone. SyncSpiritWeaponDetail is a
// full 16-slot snapshot that rebuilds the manager, and a rebuild landing in the middle of the
// client's own absorb animation is what cost the character the weapon it had just caught.
//