Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weapons: Spawning and mounting #4

Open
MeFisto94 opened this issue Dec 20, 2023 · 1 comment
Open

Weapons: Spawning and mounting #4

MeFisto94 opened this issue Dec 20, 2023 · 1 comment

Comments

@MeFisto94
Copy link
Member

  • A player should spawn/transfer it's loadout onto the server, so there are entityIds (or "handles") to the weapons they are currently carrying.
  • When equipping such a weapon, there will be another packet that maps hands to the handle (e.g. equip right hand: katana)
  • Other clients need to be able to spawn the weapons in game and make the NPC equip them, as a result.
    • Whether this packet contains the full weapon information each time or if the client also needs to cache the handles for a specific npc, remains to be discussed. But I think we can waste the bandwidth here for an easier implementation. However the client maybe already has a ref<WeaponObject> at hand anyway?
  • Damage is not part of the scope of this issue, maybe replicating attacks (shooting, aim angle replication, hitting animation for meele) is.
@MeFisto94
Copy link
Member Author

Implementation of handling weapon equip/unequip done in 8827df1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant